JhbuildGnome

来自MagicLinux 百科
跳到导航 跳到搜索

jhbuild是啥?

JHBuild is a build script for building Gnome from CVS. Unlike some build scripts, jhbuild makes use of dependency information, so it will only build what is needed to build the packages you want.

jhbuild's homepage:http://www.jamesh.id.au/software/jhbuild/

取得jhbuild

$ mkdir -p ~/cvs/gnome2
$ cd ~/cvs/gnome2
$ cvs -d :pserver:[email protected]:/cvs/gnome login
Logging in to :pserver:[email protected]:/cvs/gnome
CVS password: ENTER
$ cvs -d :pserver:[email protected]:/cvs/gnome get jhbuild

安装jhbuild

$ cd ~/cvs/gnome2/jhbuild
$ make install

上面的命令将会把jhbuild工具安装到~/bin底下。

--Ricetons 16:21 2006年3月26日 (CST)

创建~/.jhbuildrc文件

最好的办法还是复制一个现成的来用:

$ cd ~/
$ wget http://ftp.gnome.org/pub/GNOME/teams/releng/2.14.0/sample-tarball.jhbuildrc
$ mv sample-tarball.jhbuildrc .jhbuildrc

修改~/.jhbuildrc文件和其它几个文件中的参数

~/.jhbuildrc

我只改了一个prefix参数,指定GNOME安装到哪个目录:

prefix = '/usr'

~/cvs/gnome2/jhbuild/jhbuild/modtypes/tarball.py

在~/cvs/gnome2/jhbuild/jhbuild/modtypes/tarball.py中可以指定使用哪个工具来下载软件包,默认是wget。

res = buildscript.execute(['wget', self.source_url,

安装所有依赖的软件包

jhbuild的正确运行依赖于以下包组(MGC 2.0 Final上都带了):

 gettext >= 0.10.40
 libtool >= 1.5
 autoconf >= 2.58
 automake 1.4-p6
 automake 1.6.x
 automake 1.7.x
 automake 1.8.x
 pkg-config >= 0.14
 python >= 2.2
 audiofile

请确认自己的系统上已经安装了这些软件。 如果有一些没有安装,可以使用这个命令来解决:

$ jhbuild bootstrap

正式编译安装gnome-2.14

激动人心的时刻,isn't it?

$ jhbuild -m http://ftp.gnome.org/pub/GNOME/teams/releng/2.14.0/gnome-2.14.0.modules build

jhbuild默认将下载的tar包放在该目录下:

~/cvs/tarball-gnome/pkgs

错误

出错了建议先看看这里:

http://www.gnome.org/~newren/tutorials/developing-with-gnome/html/ch04s03.html

XML::Simple perl module

checking for XML::Simple... configure: error: XML::Simple perl module is required for icon-naming-utils

缺少XML-Simple,可到这里下载最新版本: http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-Simple-2.14.tar.gz