Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos7 系统下安装libgdiplus 编译(make)遇到错误(error)! who can help me? #714

Open
zhudk opened this issue Sep 2, 2021 · 0 comments

Comments

@zhudk
Copy link

zhudk commented Sep 2, 2021

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
libgdiplus error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant