[root@localhost ImageMagick-6.4.0]# make
make all-am
make[1]: Entering directory `/usr/local/ImageMagick-6.4.0'
/bin/sh ./libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./config -g -O2 -Wall -W -pthread -MT coders/coders_art_la-art.lo -MD -MP -MF coders/.deps/coders_art_la-art.Tpo -c -o coders/coders_art_la-art.lo `test -f 'coders/art.c' || echo './'`coders/art.c
mv -f coders/.deps/coders_art_la-art.Tpo coders/.deps/coders_art_la-art.Plo
/bin/sh ./libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-animate.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-animate.Tpo -c -o magick/magick_libMagickCore_la-animate.lo `test -f 'magick/animate.c' || echo './'`magick/animate.c
In file included from ./magick/animate-private.h:26,
from magick/animate.c:44:
./magick/xwindow-private.h:27:21: error: X11/Xos.h: No such file or directory
./magick/xwindow-private.h:28:22: error: X11/Xlib.h: No such file or directory
./magick/xwindow-private.h:29:23: error: X11/Xatom.h: No such file or directory
./magick/xwindow-private.h:30:28: error: X11/cursorfont.h: No such file or directory
./magick/xwindow-private.h:31:24: error: X11/keysym.h: No such file or directory
./magick/xwindow-private.h:32:27: error: X11/Xresource.h: No such file or directory
./magick/xwindow-private.h:33:23: error: X11/Xutil.h: No such file or directory
In file included from ./magick/animate-private.h:26,
from magick/animate.c:44:
./magick/xwindow-private.h:142: error: expected specifier-qualifier-list before 'Pixmap'
./magick/xwindow-private.h:192: error: expected specifier-qualifier-list before 'XFontStruct'
./magick/xwindow-private.h:215: error: expected specifier-qualifier-list before 'XColor'
./magick/xwindow-private.h:240: error: expected specifier-qualifier-list before 'XrmDatabase'
./magick/xwindow-private.h:346: error: expected specifier-qualifier-list before 'Window'
./magick/xwindow-private.h:451: error: expected specifier-qualifier-list before 'Display'
./magick/xwindow-private.h:507: error: expected ')' before 'const'
./magick/xwindow-private.h:512: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XMakeCursor'
./magick/xwindow-private.h:515: error: expected ')' before '*' token
./magick/xwindow-private.h:519: error: expected ')' before '*' token
./magick/xwindow-private.h:531: error: expected ')' before '*' token
./magick/xwindow-private.h:568: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XWindowByID'
./magick/xwindow-private.h:573: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
./magick/xwindow-private.h:576: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XGetResourceDatabase'
./magick/xwindow-private.h:579: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
./magick/xwindow-private.h:582: error: expected ')' before '*' token
./magick/xwindow-private.h:585: warning: type defaults to 'int' in declaration of 'XColor'
./magick/xwindow-private.h:585: error: expected ';', ',' or ')' before '*' token
In file included from magick/animate.c:44:
./magick/animate-private.h:29: error: expected ')' before '*' token
./magick/animate-private.h:32: error: expected ')' before '*' token
In file included from magick/animate.c:68:
./magick/widget.h:30: error: expected ')' before '*' token
./magick/widget.h:36: error: expected ')' before '*' token
./magick/widget.h:40: error: expected ')' before '*' token
magick/animate.c:237: error: expected ')' before '*' token
magick/animate.c:241: error: expected ')' before '*' token
magick/animate.c: In function 'AnimateImages':
magick/animate.c:276: error: 'Display' undeclared (first use in this function)
magick/animate.c:276: error: (Each undeclared identifier is reported only once
magick/animate.c:276: error: for each function it appears in.)
magick/animate.c:277: error: 'display' undeclared (first use in this function)
magick/animate.c:282: error: 'XrmDatabase' undeclared (first use in this function)
magick/animate.c:283: error: expected ';' before 'resource_database'
magick/animate.c:294: warning: implicit declaration of function 'XOpenDisplay'
magick/animate.c:295: error: expected expression before ')' token
magick/animate.c:298: warning: implicit declaration of function 'XDisplayName'
magick/animate.c:299: warning: format '%s' expects type 'char *', but argument 8 has type 'int'
magick/animate.c:304: warning: implicit declaration of function 'XSetErrorHandler'
magick/animate.c:304: error: 'XError' undeclared (first use in this function)
magick/animate.c:305: error: 'resource_database' undeclared (first use in this function)
magick/animate.c:305: warning: implicit declaration of function 'XGetResourceDatabase'
magick/animate.c:307: warning: implicit declaration of function 'XGetResourceInfo'
magick/animate.c:309: error: 'XResourceInfo' has no member named 'image_geometry'
magick/animate.c:310: error: 'XResourceInfo' has no member named 'immutable'
magick/animate.c:312: warning: implicit declaration of function 'XAnimateImages'
magick/animate.c:314: warning: implicit declaration of function 'XCloseDisplay'
magick/animate.c:315: warning: implicit declaration of function 'XDestroyResourceInfo'
magick/animate.c: At top level:
magick/animate.c:358: error: expected ')' before '*' token
magick/animate.c:722: error: expected ')' before '*' token
magick/animate.c:1179: error: expected ')' before '*' token
magick/animate.c:2828: error: expected ')' before '*' token
make[1]: *** [magick/magick_libMagickCore_la-animate.lo] Error 1
make[1]: Leaving directory `/usr/local/ImageMagick-6.4.0'
make: *** [all] Error 2
重新发送以下错误信息
######
重发错误
/magick_libMagickCore_la-animate.lo
######
./magick/xwindow-private.h:27:21: error: X11/Xos.h: No such file or directory
上面不是有这句么 X11找不到嘛 我也整了好久 只要在ocnfigure 的时候wintout x11 就可以了
./configure --without-x
make && make install