RE: [PHP-WIN] Re: Build and load Gmagick in PHP 7.0 on Windows 10, making Apache to stop service

From: Date: Sun, 22 Apr 2018 15:05:28 +0000
Subject: RE: [PHP-WIN] Re: Build and load Gmagick in PHP 7.0 on Windows 10, making Apache to stop service
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-31451@lists.php.net to get a copy of this message
> -----Original Message----- > From: Christoph M. Becker <cmbecker69@gmx.de> > Sent: Friday, April 20, 2018 7:44 PM > To: kitmingzoe@gmail.com; php-windows@lists.php.net > Subject: [PHP-WIN] Re: Build and load Gmagick in PHP 7.0 on Windows 10, > making Apache to stop service > > On 20.04.2018 at 08:29, Zom wrote: > > > 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? > > Having a backtrace[1] might be helpful. > > [1] > <https://bugs.php.net/bugs-generating-backtrace-win32.php> > Perhaps it's just GraphicsMagick DLL not being on the path for the Apache process. Useful were to first start Apache on console, adding those dep dlls to the pth before. GraphicsMagick itself is unfortunately not a good build experience. I tried it several times with the latest versions and there's always some issue, fe it refuses to generate x64 projects, etc. Perhaps it's some issue on my side, though. Thanks Anatol

« previous php.windows (#31451) next »