centos7 系统下安装libgdiplus 编译(make)遇到错误(error)! who can help me?
zhudk opened this issue · 0 comments
who can help me? I use this comand :
yum install autoconf automake libtool gcc-c++ -y
yum install freetype-devel fontconfig libXft-devel -y
yum install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel -y
yum install glib2-devel cairo-devel -y
yum install git -y
git clone https://github.com/mono/libgdiplus.git
cd libgdiplus
./autogen.sh --prefix=/usr
make
------这个步骤 this process make error 如下:-------------------
Configuration summary
-
Installation prefix = /usr
-
Cairo = 1.6.4 (system)
-
Text = cairo
-
EXIF tags = yes
-
X11 = yes
-
Codecs supported:
- TIFF: yes
- JPEG: yes
- GIF: yes
- PNG: yes
NOTE: if any of the above say 'no' you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.
Now type make' to compile [root@0082159cawcsywzvpapp0002 libgdiplus]# make (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /root/libgdiplus/missing autoheader) rm -f stamp-h1 touch config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged Git submodules updated successfully make all-recursive make[1]: Entering directory
/root/libgdiplus'
Making all in src
make[2]: Entering directory /root/libgdiplus/src' CC jpegcodec.lo In file included from /usr/local/lib/glib-2.0/include/glibconfig.h:9:0, from /usr/local/include/glib-2.0/glib/gtypes.h:32, from /usr/local/include/glib-2.0/glib/galloca.h:32, from /usr/local/include/glib-2.0/glib.h:30, from gdiplus-private.h:36, from codecs-private.h:34, from jpegcodec.c:29: /usr/local/include/glib-2.0/glib/gmacros.h:280:15: error: expected identifier before '(' token #define FALSE (0) ^ make[2]: *** [jpegcodec.lo] Error 1 make[2]: Leaving directory
/root/libgdiplus/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/libgdiplus'
make: *** [all] Error 2