Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10475761
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:15:51

wandering 发表于 2007-04-07 17:50:57


SUSE笔记:安装GTK+
======================


shell> mkdir -p /opt/gtk
shell> export LD_LIBRARY_PATH=/opt/gtk/lib:$LD_LIBRARY_PATH
shell> export PKG_CONFIG_PATH=/opt/gtk/lib/pkgconfig:$PKG_CONFIG_PATH

*** 注:上面这3行可是相当重要啊!!! ***


pkg-config
------------

shell> tar zxvf pkg-config-0.21.tar.gz
shell> cd pkg-config-0.21/
shell> ./configure
shell> make
shell> make uninstall
shell> su -c "make install" root


glib-2.0
----------

shell> tar jxvf glib-2.13.0.tar.bz2
shell> cd glib-2.13.0/
shell> ./configure --prefix=/opt/gtk
shell> make
shell> su -c "make uninstall" root
shell> su -c "make install" root

*** 注:安装路径是 /opt/gtk ***


libpng
--------

shell> tar zxvf libpng-1.2.16.tar.gz
shell> cd libpng-1.2.16/
shell> ./configure --prefix=/opt/gtk
shell> make
shell> su -c "make uninstall" root
shell> su -c "make install" root

还有一种安装方法可以参考:
shell> make -f scripts/makefile.linux
shell> make -f scripts/makefile.linux install


JPEG
------

shell> tar zxvf jpegsrc.v6b.tar.gz
shell> cd jpeg-6b/
shell> ./configure --prefix=/opt/gtk/ --enable-shared --enable-static
shell> make
shell> su -c "make uninstall" root
shell> su -c "make install" root

*** 注:jpeg默认不share library,因此要手工指定--enable-shared,一般安装lib时这一点都是要注意的。 ***


TIFF
------

shell> tar zxvf tiff-3.8.2.tar.gz
shell> cd tiff-3.8.2/
shell> ./configure --prefix=/opt/gtk
shell> make
shell> su -c "make uninstall" root
shell> su -c "make install" root



atk
-----

shell> tar zxvf atk-1.18.0.tar.gz
shell> cd atk-atk-1.18.0/
shell> ./configure --prefix=/opt/gtk
shell> make
shell> su -c "make uninstall" root
shell> su -c "make install" root


cairo
-------

shell> tar zxvf cairo-1.4.2.tar.gz
shell> cd cairo-1.4.2/
shell> ./configure --prefix=/opt/gtk/ --with-x --enable-win32=no
shell> make
shell> su -c "make uninstall" root
shell> su -c "make install" root


pango
-------

shell> tar jxvf pango-1.16.1.tar.bz2
shell> cd pango-1.16.1/
shell> ./configure --prefix=/opt/gtk/ --libdir=/opt/gtk/lib --with-x
shell> make
shell> su -c "make uninstall" root
shell> su -c "make install" root


gtk+
------

shell> tar jxvf gtk+-2.10.11.tar.bz2
shell> cd gtk+-2.10.11/
shell> ./configure --prefix=/opt/gtk/ --with-x --without-libjpeg
shell> su -c "make uninstall" root
shell> su -c "make install" root





关键词(Tag): linux install suse gtk

阅读(1124) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~