编译出错(libgdiplus-2.4),如何解决?

编译打包和其他
回复
头像
benetcs
帖子: 27
注册时间: 2007-01-24 20:20
来自: 山西省

编译出错(libgdiplus-2.4),如何解决?

#1

帖子 benetcs » 2009-06-29 10:58

代码: 全选

checking if compiler recognizes -pthread... yes
checking for sigsetjmp... yes
checking for visibility __attribute__... yes
checking for TIFFReadScanline in -ltiff... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking for jpeglib.h... yes
checking for DGifOpenFileName in -lgif... no
configure: WARNING: *** GIF loader will not be built (giflibrary not found) ***
checking for DGifOpenFileName in -lungif... no
configure: WARNING: *** GIF loader will not be built (ungiflibrary not found) ***
checking for libpng12... yes
checking for LIBEXIF... no
./configure: line 23229: test: too many arguments
configure: error: "Failed to compile with X11/Xlib.h include.  You must fix your compiler paths"
找了半天也没有找到giflibrary相关的文件,高手指点一下!
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

Re: 编译出错(libgdiplus-2.4),如何解决?

#2

帖子 HuntXu » 2009-06-29 12:17

libgif-dev,找找?
HUNT Unfortunately No Talent...
头像
benetcs
帖子: 27
注册时间: 2007-01-24 20:20
来自: 山西省

Re: 编译出错(libgdiplus-2.4),如何解决?

#3

帖子 benetcs » 2009-06-29 14:29

谢谢!搞定了
头像
benetcs
帖子: 27
注册时间: 2007-01-24 20:20
来自: 山西省

Re: 编译出错(libgdiplus-2.4),如何解决?

#4

帖子 benetcs » 2009-06-30 9:37

在libgdiplus configure的时候有一个经典错误:

代码: 全选

configure: error: "Failed to compile with X11/Xlib.h include. You must fix your compiler paths"
解决办法(注意不要在/路径操作):

代码: 全选

   1. cd /data/soft/mono
   2. wget http://ftp.ntu.edu.tw/cygwin/release/X11/xorg-x11-devel/xorg-x11-devel-6.8.99.901-1.tar.bz2
   3. tar -zxvf xorg-x11-devel-6.8.99.901-1.tar.bz2
   4. cp -r etc/* /etc
   5. cp -r usr/* /usr
   6. rm -r etc               #不删也好,别把/etc删了
   7. rm -r usr               #不删也好,别把/usr删了
   8. cd /etc/postinstall
   9. ./xorg-x11-devel.sh
按此方法出现如下错误:

代码: 全选

cp: 无法以非目录来覆盖目录 “/usr/include/X11”
cp: 无法以目录 “usr/X11R6/bin” 来覆盖非目录 “/usr/X11R6/bin”
不知如何解决???
zwx_yal
帖子: 2
注册时间: 2009-10-16 14:53

Re: 编译出错(libgdiplus-2.4),如何解决?

#5

帖子 zwx_yal » 2009-10-16 14:54

我解决了,sudo apt-get install xorg-dev
回复