Custom coders don't compile on Linux.
Posted: 2011-04-16T06:32:55-07:00
MagickCoderKit and any other custom coder based on it don't compile on Linux because of missing header files (at least).
./configure passes without problems, but make does not:
(ImageMagick 6.6.9-5 Q16)
Copying all headers from IM sources into /usr/local/include/ImageMagick/magick/ solve the problem, but still I think all headers needed to build custom coders should be copied there during installation (as it used to be or as it is still in Windows).
./configure passes without problems, but make does not:
Code: Select all
MagickCoderKit-1.0.0$ make
depbase=`echo mgk.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./config -I. -I.. -I/usr/local/include/ImageMagick -g -O2 -MT mgk.lo -MD -MP -MF $depbase.Tpo -c -o mgk.lo mgk.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./config -I. -I.. -I/usr/local/include/ImageMagick -g -O2 -MT mgk.lo -MD -MP -MF .deps/mgk.Tpo -c mgk.c -fPIC -DPIC -o .libs/mgk.o
mgk.c:42:27: error: magick/studio.h: No such file or directory
In file included from /usr/local/include/ImageMagick/magick/pixel.h:25,
from /usr/local/include/ImageMagick/magick/color.h:25,
from /usr/local/include/ImageMagick/magick/image.h:25,
from /usr/local/include/ImageMagick/magick/blob.h:25,
from mgk.c:43:
/usr/local/include/ImageMagick/magick/colorspace.h:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MagickBooleanType'
In file included from /usr/local/include/ImageMagick/magick/pixel.h:26,
(...)
Copying all headers from IM sources into /usr/local/include/ImageMagick/magick/ solve the problem, but still I think all headers needed to build custom coders should be copied there during installation (as it used to be or as it is still in Windows).