Page 1 of 1

How to load ImageMagick in Apache2

Posted: 2015-09-07T03:21:31-07:00
by TheNobleSix
Hello guys! I wrote an Apache2 module that use some functions declared in wand/magick_wand.h. I installed MagickWand usind "sudo apt-get install libmagickwand-dev" and it works perfectly outside Apache. I built my module using apxs:

"sudo apxs -i -a -c -I /usr/include/ImageMagick/ -n iiw_module iiw_module.c parsing.c resizing.c"

The compilation goes fine... I guess... And the module is available... But when I try to restart the Apache2 service I got the "undefined symbol" error for a function of MagickWand.

I have search for days for resolving this problem...
Thank you very much in advance!

Re: How to load ImageMagick in Apache2

Posted: 2015-09-07T03:57:48-07:00
by TheNobleSix
Made it! We needed "-lMagickWand" flag...