How to load ImageMagick in Apache2

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
TheNobleSix
Posts: 2
Joined: 2015-09-07T03:15:40-07:00
Authentication code: 1151

How to load ImageMagick in Apache2

Post 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!
TheNobleSix
Posts: 2
Joined: 2015-09-07T03:15:40-07:00
Authentication code: 1151

Re: How to load ImageMagick in Apache2

Post by TheNobleSix »

Made it! We needed "-lMagickWand" flag...
Post Reply