emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imagemagick support on W32


From: Christoph
Subject: Re: imagemagick support on W32
Date: Thu, 30 Sep 2010 20:32:20 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

I found the linker problem. This is the correct way to configure:

configure.bat --no-cygwin --enable-checking --with-gcc --distfiles D:/devel/emacs/libXpm-3.5.8/src/libXpm.dll --cflags -IC:/Progra~2/GnuWin32/include --cflags -ID:/devel/emacs/libXpm-3.5.8/include --cflags -ID:/devel/emacs/libXpm-3.5.8/src --cflags -IC:/Progra~2/ImageMagick-6.6.4-Q16/include --ldflags -LC:/Progra~2/ImageMagick-6.6.4-Q16 --ldflags -lCORE_RL_magick_ --ldflags -lCORE_RL_wand_

i.e.

-LC:/Progra~2/ImageMagick-6.6.4-Q16

not

-LC:/Progra~2/ImageMagick-6.6.4-Q16/lib

Now the only problem is this:

Line 8631 of image.c:

return CHECK_LIB_AVAILABLE (&imagemagick_type, init_imagemagick_functions, libraries);

Where is init_imagemagick_functions defined?

For example, init_png_functions is defined in image.c, but init_imagemagick_functions is not.

Therefore, the linker complains about a missing reference to init_imagemagick_functions when linking with ImageMagick support on Windows.

I added a stub for this function in my code and now it compiles and links fine, but it will most likely blow up at runtime.

Christoph



reply via email to

[Prev in Thread] Current Thread [Next in Thread]