本文主要是介绍SUSE笔记:安装GTK+,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
http://wandering.blog.51cto.com/467932/103304/
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
这篇关于SUSE笔记:安装GTK+的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!