|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-09-24 09:30 UTC] k at ailis dot de
Description: ------------ It looks like the newest GraphicsMagick (currently 1.1.3) also has a "Wand" (whatever this means"). There is a libGraphicsMagickWand library installed by GraphicsMagick but the imagick extension uses this Wand only if ImageMagick > 6.0.0 was detected. Therfor I'm not able to compile imagick. I get undefined references to DrawAllocateWand and DestroyDrawingWand. I think adding a check for GraphicsMagick 1.1.3 will fix this problem. But I don't know how to do this myself, I hate this autoconf stuff ;-) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 13:00:01 2025 UTC |
Here is a patch to solve the problem. It checks for GraphicsMagick 1.1.3 or higher and then does the same as for ImageMagick 6.0.0: diff -Nur imagick.orig/config.m4 imagick/config.m4 --- imagick.orig/config.m4 2004-06-28 15:16:15.000000000 +0200 +++ imagick/config.m4 2004-09-25 19:23:34.000000000 +0200 @@ -97,7 +97,11 @@ AC_MSG_RESULT(yes. Adding compatibility options) AC_DEFINE(IMAGICK_NEEDS_WAND,1,[ ]) PHP_ADD_LIBRARY_WITH_PATH(Wand, $IMAGEMAGICK_DIR/lib, IMAGICK_SHARED_LIBADD) - else + elif test "$imagemagick_version" -ge 1001003 && test "$MAGICK_NAME" == "GraphicsMagick"; then + AC_MSG_RESULT(yes. Adding compatibility options for GraphicsMagick) + AC_DEFINE(IMAGICK_NEEDS_WAND,1,[ ]) + PHP_ADD_LIBRARY_WITH_PATH(GraphicsMagickWand, $IMAGEMAGICK_DIR/lib, IMAGICK_SHARED_LIBADD) + else AC_MSG_RESULT(no) fi PHP_EXTENSION(imagick, $ext_shared)