Page 1 of 1

compile errors

Posted: 2009-01-13T23:48:02-07:00
by rroze
I am trying to install ImageMagic on a puppy linux (4.12) operating system, on a Dell m1330 laptop. I downloaded, uncompressed, untarred, ran configure, and then make, as outlined in the instructions. My compiler is: gcc (GCC) 4.2.2.

Unfortunately, I get alot of errors, and I don't know if some are benign, but "make check" spits these errors out as well. And, the utilities (like convert) don't get copied to /usr/local/bin.

Any ideas about what I'm doing wrong?
Thanks, Robert

Code: Select all

# make check
make  check-am
make[1]: Entering directory `/mnt/sda4/downloads/ImageMagick-6.4.8-5'
/bin/sh ./libtool --silent --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./config  -I./ltdl -I./ltdl  -I/usr/include/freetype2 -I/usr/include/libxml2  -fopenmp -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-type.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-type.Tpo -c -o magick/magick_libMagickCore_la-type.lo `test -f 'magick/type.c' || echo './'`magick/type.c
magick/type.c:61:36: error: fontconfig/fontconfig.h: No such file or directory
magick/type.c: In function 'LoadFontConfigFonts':
magick/type.c:657: error: 'FcChar8' undeclared (first use in this function)
magick/type.c:657: error: (Each undeclared identifier is reported only once
magick/type.c:657: error: for each function it appears in.)
magick/type.c:658: error: 'family' undeclared (first use in this function)
magick/type.c:659: error: 'file' undeclared (first use in this function)
magick/type.c:659: warning: left-hand operand of comma expression has no effect
magick/type.c:660: error: 'style' undeclared (first use in this function)
magick/type.c:660: warning: left-hand operand of comma expression has no effect
magick/type.c:662: error: 'FcConfig' undeclared (first use in this function)
magick/type.c:663: error: 'font_config' undeclared (first use in this function)
magick/type.c:665: error: 'FcFontSet' undeclared (first use in this function)
magick/type.c:666: error: 'font_set' undeclared (first use in this function)
magick/type.c:668: error: 'FcObjectSet' undeclared (first use in this function)
magick/type.c:669: error: 'object_set' undeclared (first use in this function)
magick/type.c:671: error: 'FcPattern' undeclared (first use in this function)
magick/type.c:672: error: 'pattern' undeclared (first use in this function)
magick/type.c:674: error: 'FcResult' undeclared (first use in this function)
magick/type.c:675: error: expected ';' before 'status'
magick/type.c:692: warning: implicit declaration of function 'FcInitLoadConfigAndFonts'
magick/type.c:693: error: expected expression before ')' token
magick/type.c:695: error: expected expression before ')' token
magick/type.c:696: warning: implicit declaration of function 'FcObjectSetBuild'
magick/type.c:696: error: 'FC_FAMILY' undeclared (first use in this function)
magick/type.c:696: error: 'FC_STYLE' undeclared (first use in this function)
magick/type.c:696: error: 'FC_SLANT' undeclared (first use in this function)
magick/type.c:696: error: 'FC_WEIGHT' undeclared (first use in this function)
magick/type.c:697: error: 'FC_FILE' undeclared (first use in this function)
magick/type.c:698: error: expected expression before ')' token
magick/type.c:700: warning: implicit declaration of function 'FcPatternCreate'
magick/type.c:701: error: expected expression before ')' token
magick/type.c:703: warning: implicit declaration of function 'FcFontList'
magick/type.c:704: warning: implicit declaration of function 'FcPatternDestroy'
magick/type.c:706: warning: implicit declaration of function 'FcObjectSetDestroy'
magick/type.c:708: error: expected expression before ')' token
magick/type.c:710: warning: implicit declaration of function 'FcConfigDestroy'
magick/type.c:715: error: 'status' undeclared (first use in this function)
magick/type.c:715: warning: implicit declaration of function 'FcPatternGetString'
magick/type.c:716: error: 'FcResultMatch' undeclared (first use in this function)
magick/type.c:742: warning: implicit declaration of function 'FcPatternGetInteger'
magick/type.c:744: error: 'FC_SLANT_ITALIC' undeclared (first use in this function)
magick/type.c:746: error: 'FC_SLANT_OBLIQUE' undeclared (first use in this function)
magick/type.c:791: warning: implicit declaration of function 'FcFontSetDestroy'
make[1]: *** [magick/magick_libMagickCore_la-type.lo] Error 1
make[1]: Leaving directory `/mnt/sda4/downloads/ImageMagick-6.4.8-5'
make: *** [install] Error 2
# 


Re: compile errors

Posted: 2009-01-14T06:40:47-07:00
by magick
Did you install the development version of Fontconfig? Try that or add --without-fontconfig to your configure script command line to disable fontconfig support within ImageMagick.

Re: compile errors

Posted: 2009-01-14T22:54:25-07:00
by rroze
Hi, thanks for the tip. I think it got rid of the fontconfig problem, but there are other errors now. It looked like the config script couldn't find my X11 information, so I ended up using this set of options:

./configure --without-fontconfig --x-includes=/usr/X11R7/include --x-libraries=/usr/X11R7/lib

Now, I get the following errors:

Code: Select all

# make check
make  check-am
make[1]: Entering directory `/mnt/sda4/downloads/ImageMagick-6.4.8-5'
cd PerlMagick && make CC='gcc -std=gnu99'
make[2]: Entering directory `/mnt/sda4/downloads/ImageMagick-6.4.8-5/PerlMagick'
Manifying blib/man3/Image::Magick.3
Can't open blib/man3/Image::Magick.3 for writing: Invalid argument
 at /usr/lib/perl5/5.8.8/ExtUtils/Command/MM.pm line 132
make[2]: *** [manifypods] Error 22
make[2]: Leaving directory `/mnt/sda4/downloads/ImageMagick-6.4.8-5/PerlMagick'
make[1]: *** [all-perl] Error 2
make[1]: Leaving directory `/mnt/sda4/downloads/ImageMagick-6.4.8-5'
make: *** [check] Error 2
Is it failing to create man pages? If so, can I tell it not to make any man pages? There's already very nice usage documentation on this webpage :D .

Thanks, Robert

Re: compile errors

Posted: 2009-01-14T22:57:45-07:00
by magick
Add --without-perl to the configure script command line assuming you do not intend to use PerlMagick. You can also add --prefix=/some/path if you do not intend to install ImageMagick in the usual location (/usr/local).

Re: compile errors

Posted: 2009-01-15T21:26:38-07:00
by rroze
OK, I was planning to interface with bash script anyway. I used the no-perl option, and it compiles fine.

Thanks for your help!
Robert