jarod8016b 发表于 2015-12-31 09:18:13

给Mac OS X 10.7.5安装GTK+

1.到官网直接下载安装脚本进行安装。
curl -o http://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh

2.分别执行以下命令进行安装。


# sh gtk-osx-build-setup.sh
# jhbuild bootstrap
# jhbuild build meta-gtk-osx-bootstrap
# jhbuild build
3.如果在执行安装脚本时出现如下提示:


Checking out jhbuild (2.32.4) from git...
From git://git.gnome.org/jhbuild
* tag               2.32.4   -> FETCH_HEAD
Installing jhbuild...
Installing jhbuild configuration...
Installing gtk-osx moduleset files...
PATH does not contain /Users/youname/.local/bin, it is recommended that you add that.此时,只需要把Home目录下的.local/bin目录添加进系统变量中PATH就行:

PATH=$HOME/.local/bin:$PATH
export PATH


4.再如果提示autoconf版本太低,就直接中断再执行多一次jhbuild bootstrap即可:


checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl... /usr/bin/perl
checking whether /usr/bin/perl supports ithreads... yes
checking for tex... no
checking whether autoconf is installed... yes
checking whether autoconf works... yes
checking whether autoconf is recent enough... no
configure: error: Autoconf 2.62 or better is required.
*** Error during phase configure of automake-1.11: ########## Error running ./configure --prefix /Users/youname/gtk/inst --libdir '/Users/youname/gtk/inst/lib'    ***

Rerun phase configure
Ignore error and continue to build
Give up on module
Start shell
Reload configuration
Go to phase "wipe directory and start over"
Go to phase "clean"
Go to phase "distclean"
页: [1]
查看完整版本: 给Mac OS X 10.7.5安装GTK+