Hello folks,

I am trying to compile ImageMagick on Mac OS X 10.3.9 and I am running onto the following problem:

/bin/sh ./libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./magick -I./wand -I./ltdl -I./ltdl -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2 -g -O2 -Wall -W -D_THREAD_SAFE -MT magick/magick_libMagick_la-type.lo -MD -MP -MF magick/.deps/magick_libMagick_la-type.Tpo -c -o magick/magick_libMagick_la-type.lo `test -f 'magick/type.c' || echo './'`magick/type.c
magick/type.c: In function `LoadFontConfigFonts':
magick/type.c:663: error: `FC_WIDTH' undeclared (first use in this function) magick/type.c:663: error: (Each undeclared identifier is reported only once
magick/type.c:663: error: for each function it appears in.)
magick/type.c:709: error: `FC_WIDTH_ULTRACONDENSED' undeclared (first use in this function) magick/type.c:711: error: `FC_WIDTH_EXTRACONDENSED' undeclared (first use in this function) magick/type.c:713: error: `FC_WIDTH_CONDENSED' undeclared (first use in this function) magick/type.c:715: error: `FC_WIDTH_SEMICONDENSED' undeclared (first use in this function) magick/type.c:717: error: `FC_WIDTH_NORMAL' undeclared (first use in this function) magick/type.c:719: error: `FC_WIDTH_SEMIEXPANDED' undeclared (first use in this function) magick/type.c:721: error: `FC_WIDTH_EXPANDED' undeclared (first use in this function) magick/type.c:723: error: `FC_WIDTH_EXTRAEXPANDED' undeclared (first use in this function) magick/type.c:725: error: `FC_WIDTH_ULTRAEXPANDED' undeclared (first use in this function) magick/type.c:728: error: `FC_WEIGHT_THIN' undeclared (first use in this function) magick/type.c:730: error: `FC_WEIGHT_EXTRALIGHT' undeclared (first use in this function) magick/type.c:734: error: `FC_WEIGHT_NORMAL' undeclared (first use in this function) magick/type.c:742: error: `FC_WEIGHT_EXTRABOLD' undeclared (first use in this function)
magick/type.c:622: warning: unused parameter `exception'
make[2]: *** [magick/magick_libMagick_la-type.lo] Error 1

The reason seems to be that I have a very old X11 with an old fontconfig (without the defines) in /usr/X11R6 and a new fontconfig in /usr/local. I would like to make sure the newer one is picked up, but at least the older one's include file is picked up. I can do that by putting a full path for fontconfig.h in type.c but then I also want to make sure /usr/local/lib/libfontconfig.a is used (statically) and not the dynamic one in /usr/X11R6.

How can I make sure this happens?

Thanks,

G

_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to