|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-11 11:31 UTC] mkoppanen@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
Description: ------------ The file config.w32 is asking for more libraries than needed. In fact latest versions of ImageMagick do not produce the following libraries: CORE_RL_coders_.lib and CORE_RL_filters_.lib. I am adding in reproduce the config.w32 file that works for me. I compiled successfully the extension with it in VC6. Reproduce code: --------------- ARG_WITH("imagick", "ImageMagick support", "no"); if (PHP_IMAGICK != "no") { if (CHECK_HEADER_ADD_INCLUDE("wand/magick-wand.h", "CFLAGS_IMAGICK", PHP_PHP_BUILD + "\\include\\imagemagick;" + PHP_IMAGICK) && CHECK_LIB("CORE_RL_wand_.lib", "imagick", PHP_PHP_BUILD + "\\lib\\imagemagick;" + PHP_IMAGICK) ) { ADD_FLAG("CFLAGS_IMAGICK", "/D _VISUALC_ /D NeedFunctionPrototypes /D _LIB"); EXTENSION('imagick', 'imagick_class.c imagickdraw_class.c imagickpixel_class.c imagickpixeliterator_class.c imagick_helpers.c imagick.c'); AC_DEFINE('HAVE_IMAGICK', 1); } else { WARNING("imagick not enabled; libraries and headers not found"); } } Expected result: ---------------- If one use the config.w32 file above, the extension will compile fine. If one use yours, there will be errors (libraries not found, which are not needed anyway).