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
# 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.
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.
PATH=$HOME/.local/bin:$PATH
export 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 ' *** [ 8/ 12]
[ 1] Rerun phase configure
[ 2] Ignore error and continue to build
[ 3] Give up on module
[ 4] Start shell
[ 5] Reload configuration
[ 6] Go to phase " wipe directory and start over "
[ 7] Go to phase " clean "
[ 8] Go to phase " distclean "
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 ' *** [ 8/ 12]
[ 1] Rerun phase configure
[ 2] Ignore error and continue to build
[ 3] Give up on module
[ 4] Start shell
[ 5] Reload configuration
[ 6] Go to phase " wipe directory and start over "
[ 7] Go to phase " clean "
[ 8] Go to phase " distclean "