Gtk+-2.20.1编译
软件包:Gtk+-2.20.1.tar.gz(下载地址:)
环境:ubuntu10.04 + i486-linux-gcc-4.4.3
$ export PREFIX=/home/loongson/mylib/
$ ./configure --prefix=$PREFIX
configure: error: Package requirements (glib-2.0 >= 2.23.6 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6 gdk-pixbuf-2.0 >= 2.21.0) were not met:
出错信息:
No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' found
No package 'gdk-pixbuf-2.0' found
解决方法:
$sudo apt-get install libatk1.0-dev
软件包将被安装:
(libatk1.0-dev libglib2.0-dev
)
$sudo apt-get install libpango1.0-dev
软件包将被安装:
( build-essential cvs debhelper dpkg-dev fakeroot g++ g++-4.4 gettext
html2text intltool-debian libcairo2-dev libdirectfb-dev libdirectfb-extra
libjpeg62-dev libmail-sendmail-perl libpango1.0-dev libpng12-dev
libstdc++6-4.4-dev libsys-hostname-long-perl libsysfs-dev
libxcb-render-util0-dev libxcb-render0-dev po-debconf xz-utils
)
$sudo apt-get install libgdk-pixbuf2-ruby
软件包将被安装:
libgdk-pixbuf2-ruby libgdk-pixbuf2-ruby1.8 libglib2-ruby1.8 libruby1.8
$./configure
configure: WARNING: *** TIFF loader will not be built (TIFF library not found) ***
configure: error:
*** Checks for TIFF loader failed. You can build without it by passing
*** --without-libtiff to configure but some programs using GTK+ may
*** not work properly
解决方法:
$./configure –without-libtiff
$make
$make install
阅读(645) | 评论(0) | 转发(0) |