当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : *** Building libunique ***的Couldn't find include 'Gtk-2.0.gi
帖子发表于 : 2009-09-25 16:34 
头像

注册: 2007-01-30 7:13
帖子: 1446
送出感谢: 4
接收感谢: 0 次
用jhbuild编译gnome 2.28遇到这个问题, 请指点:

引用:
*** Building libunique *** [4/164]
make
Making all in build
Making all in autotools
Making all in unique
GEN stamp-uniquemarshal.h
GEN uniquemarshal.c
Making all in bacon
CC uniquebackend-bacon.o
CC uniquefactory-bacon.o
CC uniquemessage-bacon.o
LINK libunique-bacon.la
Making all in dbus
GEN uniquebackend-bindings.h
GEN uniquebackend-glue.h
CC uniquefactory-dbus.o
CC uniquebackend-dbus.o
LINK libunique-dbus.la
CC uniqueapp.o
CC uniquebackend.o
CC uniquemessage.o
CC uniquemarshal.o
LINK libunique-1.0.la
Traceback (most recent call last):
File "/opt/gnome2/bin/g-ir-scanner", line 38, in <module>
sys.exit(scanner_main(sys.argv))
File "/opt/gnome2/lib/gobject-introspection/giscanner/scannermain.py", line 277, in scanner_main
transformer.register_include(include_obj)
File "/opt/gnome2/lib/gobject-introspection/giscanner/transformer.py", line 111, in register_include
filename = self._find_include(include)
File "/opt/gnome2/lib/gobject-introspection/giscanner/transformer.py", line 129, in _find_include
% (girname, searchdirs))
ValueError: Couldn't find include 'Gtk-2.0.gir' (search path: ['/opt/gnome2/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gdm/gir-1.0', '/opt/gnome2/share/gir-1.0', '/usr/share/gir-1.0', '/opt/gnome2/share/gir-1.0'])
make[4]: *** [Unique-1.0.gir] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Error during phase build of libunique: ########## Error running make *** [4/164]

[1] Rerun phase build
[2] Ignore error and continue to install
[3] Give up on module
[4] Start shell
[5] Reload configuration
[6] Go to phase "wipe directory and start over"
[7] Go to phase "configure"
[8] Go to phase "clean"
[9] Go to phase "distclean"
choice:


页首
 用户资料  
 
2 楼 
 文章标题 : Re: *** Building libunique ***的Couldn't find include 'Gtk-2.0.gi
帖子发表于 : 2009-09-26 21:34 
头像

注册: 2007-01-30 7:13
帖子: 1446
送出感谢: 4
接收感谢: 0 次
解决这个问题需要两个包, 首先要安装gobject-introspection-0.6.5或者更新版本, 然后再安装gir-repository-0.6.5或者更新版本, 然后再
代码:
jhbuild build --start-at=libunique


在编译安装gobject-introspection-0.6.5出现如下错误:

引用:
==================
All 3 tests passed
==================
make[4]: Leaving directory `/home/linux/gobject-introspection-0.6.5/tests/invoke'
make[3]: Leaving directory `/home/linux/gobject-introspection-0.6.5/tests/invoke'
make[2]: Leaving directory `/home/linux/gobject-introspection-0.6.5/tests/invoke'
Making check in offsets
make[2]: Entering directory `/home/linux/gobject-introspection-0.6.5/tests/offsets'
make check-am
make[3]: Entering directory `/home/linux/gobject-introspection-0.6.5/tests/offsets'
make liboffsets.la gitestoffsets
make[4]: Entering directory `/home/linux/gobject-introspection-0.6.5/tests/offsets'
make[4]: `liboffsets.la' is up to date.
make[4]: `gitestoffsets' is up to date.
make[4]: Leaving directory `/home/linux/gobject-introspection-0.6.5/tests/offsets'
make check-local
make[4]: Entering directory `/home/linux/gobject-introspection-0.6.5/tests/offsets'
GEN offsets-1.0.gir
/usr/bin/libtool: line 852: echo: write error: Bad file descriptor
liboffsets.la: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Traceback (most recent call last):
File "../../tools/g-ir-scanner", line 38, in <module>
sys.exit(scanner_main(sys.argv))
File "/home/linux/gobject-introspection-0.6.5/giscanner/scannermain.py", line 310, in scanner_main
glibtransformer.get_get_type_functions())
File "/home/linux/gobject-introspection-0.6.5/giscanner/dumper.py", line 217, in compile_introspection_binary
return dc.run()
File "/home/linux/gobject-introspection-0.6.5/giscanner/dumper.py", line 127, in run
self._link(bin_path, o_path)
File "/home/linux/gobject-introspection-0.6.5/giscanner/dumper.py", line 212, in _link
subprocess.check_call(args)
File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-o', '/home/linux/gobject-introspection-0.6.5/tests/offsets/tmp-introspectieXYcJ/offsets-1.0', '-L.', 'liboffsets.la', '../../girepository/libgirepository-1.0.la', '-pthread', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-ldl', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/home/linux/gobject-introspection-0.6.5/tests/offsets/tmp-introspectieXYcJ/offsets-1.0.o']' returned non-zero exit status 1
make[4]: *** [offsets-1.0.gir] Error 1
make[4]: Leaving directory `/home/linux/gobject-introspection-0.6.5/tests/offsets'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/linux/gobject-introspection-0.6.5/tests/offsets'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/home/linux/gobject-introspection-0.6.5/tests/offsets'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/linux/gobject-introspection-0.6.5/tests'
make: *** [check-recursive] Error 1
linux@ubuntu:~/gobject-introspection-0.6.5$


you'll need to have installed Gjs: http://live.gnome.org/Gjs
http://live.gnome.org/GObjectIntrospection/FromHereToThere

代码:
./configure
make

然后遇到下面提示说SpiderMonkey版本太老

引用:
checking for JS_CallTracer in -lmozjs... no
configure: error: SpiderMonkey is too old, Firefox 3 is required
linux@ubuntu:~/gjs-0.2$


那就接着找新版本的SpiderMonkey
http://www.mozilla.org/js/spidermonkey/

安装向导: https://developer.mozilla.org/en/SpiderMonkey_Build_Documentation 1.8版本, 还没发布, 官方网站不能取得源码, 用下面的链接安装1.7版本
http://dt.in.th/2008-03-03.spidermonkey-linux.html

ftp://ftp.mozilla.org/pub/mozilla.org/js/

http://avidemux.org/admWiki/index.php?title=Compile_SpiderMonkey


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译