Linux下编译安装GTK+

1、编译安装glib

wget http://ftp.gnome.org/pub/gnome/sources/glib/2.24/glib-2.24.2.tar.bz2
tar -xjvf glib-2.24.2.tar.bz2
cd glib-2.24.2/
./configure --prefix=/usr
make -j && make install

2、安装atk,cairo,tiff

sudo apt-get install sudo apt-get install libatk1.0-dev libcairo2-dev libtiff-dev

3、编译安装Pango

wget http://ftp.gnome.org/pub/gnome/sources/pango/1.28/pango-1.28.1.tar.gz
tar -xzvf pango-1.28.1.tar.gz
cd pango-1.28.1/
./configure --prefix=/usr
make -j
sudo make install

4、安装GNU gettext

#gettext是做什么用的呢?貌似是Linux下的i18n工具
wget http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz
tar -zxvf gettext-0.18.1.1.tar.gz
./configure --prefix=/usr
make -j && sudo make install

5、编译安装GTK

wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.20/gtk+-2.20.1.tar.gz
tar -xzvf gtk+-2.20.1.tar.gz
./configure --prefix=/usr
make -j
sudo make install

Leave a Reply

Your email address will not be published. Required fields are marked *