Compile ImageMagick on Windows
Posted: 2009-08-14T23:30:11-07:00
Ok, I've been attempting to build ImageMagick with VC6 so I can use the results to build a php_imagick.dll that will work with the VC6 build of PHP 5.3.0.
I realize Mikko has a VC9 build, but considering Apache, MySQL and PHP all use VC6 for their primary distribution, this would be the least common denominator and would clear up a host of issues people are currently having with php_imagick.dll.
I'm having no luck. So far I've built all combinations of ImageMagick 6.5.4.10 but only the dynamic build creates the dll and lib files I need to build the PHP extention. Unfortunately the resulting extention doesn't seem to work. I can build the extention and it does appear in phpinfo(), but it won't load or manipulate existing images. I can create images with draw function or using text, but when I attempt to load an existing image to resize, change type or anything else, it doesn't seem to work nor does it produce an error in Event Viewer or Apache logs.
In an attempt to track down the issue I attempted to build a self installing binary using VC6. However, since ImageMagickObject requires VC7.1, I couldn't complete that with VC6 exclusively. The project in the ATL folder doesn't seem build and the Advanced Build Instructions on the site doesn't seem to cover this option, only the ATL7 option is covered which obviously won't work on a VC6 build.
I guess my question would be, how do I create a self installing binary with VC6 and VC9? Do I have to have VC7.1 as well or is there a patch to allow us to build ImageMagickObject with VC6 or VC9?
I realize Mikko has a VC9 build, but considering Apache, MySQL and PHP all use VC6 for their primary distribution, this would be the least common denominator and would clear up a host of issues people are currently having with php_imagick.dll.
I'm having no luck. So far I've built all combinations of ImageMagick 6.5.4.10 but only the dynamic build creates the dll and lib files I need to build the PHP extention. Unfortunately the resulting extention doesn't seem to work. I can build the extention and it does appear in phpinfo(), but it won't load or manipulate existing images. I can create images with draw function or using text, but when I attempt to load an existing image to resize, change type or anything else, it doesn't seem to work nor does it produce an error in Event Viewer or Apache logs.
In an attempt to track down the issue I attempted to build a self installing binary using VC6. However, since ImageMagickObject requires VC7.1, I couldn't complete that with VC6 exclusively. The project in the ATL folder doesn't seem build and the Advanced Build Instructions on the site doesn't seem to cover this option, only the ATL7 option is covered which obviously won't work on a VC6 build.
I guess my question would be, how do I create a self installing binary with VC6 and VC9? Do I have to have VC7.1 as well or is there a patch to allow us to build ImageMagickObject with VC6 or VC9?