Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1557735
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: LINUX

2011-01-15 14:36:34

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
阅读(3170) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~