04.28.2011--***--编译安装(步骤):glib;pango;atk;cairo;gtk+;

[1]

http://www.google.com.hk/search?hl=en&source=hp&q=%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85+glib&aq=f&oq=&aqi=

http://www.google.com.hk/search?hl=en&source=hp&q=debian+%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85Atk+Cairo+Pango&aq=f&oq=&aqi=

http://www.google.com.hk/search?hl=en&source=hp&q=configure:+error:+***+Didn't+find+any+of+FreeType,+X11,+or+Win32.&aq=f&oq=&aqi=

http://www.google.com.hk/search?hl=en&safe=active&q=pango+%E5%AE%89%E8%A3%85++Didn%27t+find+any+of+FreeType%2C+X11%2C+or+Win32.&aq=f&aqi=&aql=&oq=

http://www.google.com.hk/search?hl=en&source=hp&q=X+development+libraries+debian+%E5%AE%89%E8%A3%85&aq=f&oq=&aqi=

http://www.google.com.hk/search?hl=en&safe=active&q=fribidi.c+++pango&btnG=Search&aq=f&aqi=&aql=&oq=

http://www.google.com.hk/search?hl=en&safe=active&q=glib+++Nothing+to+be+done+for+%60install-exec-am%27.&btnG=Search&aq=f&aqi=&aql=&oq=

[2]

http://forum.ubuntu.org.cn/viewtopic.php?f=86&t=75537&start=0

文章标题 : [教学]关于安装GTK+-2.12.0所出现的一系列问题的解决方案

 安装需要的文件 gtk+-2.12.0
要先安装的文件 atk-1.19.6 cairo-1.4.10 glib-2.14.0 pango-1.18.1
文件容易找 就是速度要慢一点
大家可以在这里下载
http://ftp.gnome.org/pub/GNOME/sources/
一般都是最新的 速度看你的了


GTK的一般安装步骤

现来了解下面的意思
./configure --prefix=/usr
意思是要求最终编译安装的文件将放在/usr目录下的相关子目录如/usr/lib,/usr/bin等,
而如果你使用默认值如:
./configure
则一般会默认为安装在/usr/local目录下相关子目录,这时一般需要你设置PKG_CONFIG_PATH等
所以,总而言之,言而总之,要装最新的gtk+2.6用下列方法就可以;
步骤:
1)安装glib-2.14.0:
cd glib-2.14.0
./configure --prefix=/usr
make
make install
2)安装pango-1.18.1
cd pango-1.18.1
./configure --prefix=/usr
make
make install
3)安装atk-1.19.6
cd atk-1.19.6
./configure --prefix=/usr
make
make install
4)安装cairo-1.4.10
cd cairo-1.4.10
./configure --prefix=/usr
make
make instal
5)最后安装gtk+-2.12.0
cd gtk+-2.12.0
./configure --prefix=/usr
make
make install

安装GTK是为了skyeye能支持LCD的仿真,但是没想到一个GTK居然如此难搞定,经历一番艰苦的摸索,终于还是MAKE成功了。。

正确安装顺序:
1.glib:这步我装了一天的了,终端./configure的时候总是出现下面的错误
*** 'pkg-config --modversion glib-2.0' returned 2.14.0, but GLIB (2.12.11)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.13.5 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.

参考网上的资料 是因为系统自带的GLIB的原因

处理的方法如下:
cd glib-2.14.0
make uninstall 反安装
#rm /usr/bin/glib* //删除系统自带
#rm /usr/local/lib/glib-2.0 //同上[/color]

重新编译安装 glib-2.14.0 还在/usr/local目录下, 然后设置环境变量
#export LD_LIBRARY_PATH=/usr/local/lib
#export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
make install

2.atk-1.19.6

3.cairo-1.2.4

4.pango-1.18.1

5.gtk+-2.12.0


最后由 densefog 编辑于 2007-09-17 0:20,总共编辑了 3 次

[3]

http://archive.cnblogs.com/a/1996208/

源码-编译-安装GLIB-GTK

[4]

http://www.unibia.com/unibianet/developer/glib-2-and-gio-fam-backend-install-stuck-or-stalls-freebsd

glib-2 and gio-fam-backend install stuck or stalls on FreeBSD

[5]

http://packages.debian.org/zh-cn/wheezy/libxft-dev

软件包: libxft-dev (2.2.0-2)

[6]

http://packages.debian.org/zh-cn/lenny/xorg-dev

软件包: xorg-dev (1:7.3+20)

[7]

http://forum.ubuntu.org.cn/viewtopic.php?f=80&t=119512&p=1580777

[8]

http://www.linuxfans.org/bbs/thread-53675-1-1.html

打开软件包管理器,选择安装X开发工具

呵呵我原来这样就 可以了,我用另外一种方法也可以了,
$PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
$export PKG_CONFIG_PATH
这样就可以用FreeType了就可以装下去了

[9]

http://packages.ubuntu.com/zh-cn/dapper-updates/amd64/libfreetype6-dev

软件包: libfreetype6-dev (2.1.10-1ubuntu2.10)

[10]

[11]

[12]

posted @ 2011-04-28 11:07  陳聽溪  阅读(1857)  评论(0)    收藏  举报