Build and load Gmagick in PHP 7.0 on Windows 10, making Apache to stop service
| From: | Zom | Date: | Fri, 20 Apr 2018 06:29:20 +0000 |
| Subject: | Build and load Gmagick in PHP 7.0 on Windows 10, making Apache to stop service | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-31449@lists.php.net to get a copy of this message | ||
Hi all,
I built a gmagick extension for PHP 7.0 (VC14 x64 Thread Safe) on Windows 10.
PHP 7.0 is the only version I use.
I followed the steps in
https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2and
built the
php_gmagick.dll. Then I copied to the extension folder of php, enabled it in
php.ini, and restarted Apache. I tested the extentsion by checking
phpinfo.php from browser (chrome). It took a long time to load until Apache
stopped service automatically. If I disable gmagick and restart Apache the
phpinfo.php shows normally.
There is no requirement of Graphicsmagick and Gmagick version, so I wonder if
the version I picked might affect the building of extension.
This is my building environment:
- Windows 10 Pro 64 bit
- Visual C++ 14.0 (Visual Studio 2015)
- PHP SDK downloaded fromhttps://github.com/OSTC/php-sdk-binary-tools
- PHP source (PHP 7.0 (7.0.29)) downloaded fromhttps://windows.php.net/
- PHP dependencies is fetched by calling phpsdk_deps -u
- Gmagick 2.0.4RC1 downloaded fromhttp://pecl.php.net/
- Graphicsmagick 1.3.27 source downloaded from Graphicsmagick official page
- I invoked phpsdk-vc14-x64.bat during the building process
Is there anything wrong with the building environment?Where should I look to
troubleshooting?
Any other issues I should pay attention when building Gmagick on Windows?
Thanks!
Z