当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 6 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : (解决)ubuntu6.06编译GTK2.12出错
帖子发表于 : 2008-08-04 0:13 

注册: 2008-02-01 17:18
帖子: 106
送出感谢: 0 次
接收感谢: 0 次
自己编译GTK2.12, configure通过了,但是编译出错, 请教怎么解决?
出错信息如下:
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la
gcc -g -O2 -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o ./.libs/libgtk-x11-2.0.so -L/usr/local/lib /home/klose/gtk/gtk+-2.12.11/gdk/.libs/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so /usr/local/lib/libpango-1.0.so /usr/local/lib/libcairo.so /usr/lib/libfreetype.so -lz -lpng12 -lfontconfig -lXext -lXrender -lX11 -lXinerama -lXrandr -lXcursor -lXfixes /home/klose/gtk/gtk+-2.12.11/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so -lm
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_title'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_is_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_description'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_size'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_free'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_extents_to_pixels'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_new'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_layout_get_lines_readonly'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_iter_is_begin'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_move'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_sort_changed_iter'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_iter_next'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_swap'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_register_static_simple'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_dpgettext'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_pdf_surface_create'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_surface_set_fallback_resolution'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_slice_copy'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_get_user_special_dir'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_source_is_destroyed'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_remove'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_once_init_leave'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_load_from_file'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_layout_iter_get_line_readonly'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_visited'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_language_get_default'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_modified'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_timeout_add_seconds_full'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_key_file_set_double'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_foreach'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_iter_is_end'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_mime_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_is_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_layout_get_line_readonly'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_hash_table_remove_all'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_has_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_main_current_source'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_key_file_get_double'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_applications'
/home/klose/gtk/gtk+-2.12.11/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `pango_color_to_string'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_iter_get_position'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_ps_surface_set_size'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_uris'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_new'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_description'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_title'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_surface_get_type'
../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so: undefined reference to `g_ascii_strtoll'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_sort_iter'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_get_iter_at_pos'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_set'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_to_file'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_insert_before'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_add_group'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_pdf_surface_create_for_stream'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_add_application'
/home/klose/gtk/gtk+-2.12.11/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `pango_cairo_show_error_underline'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_remove_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_get_end_iter'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_matrix_transform_rectangle'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_mime_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_move_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_free'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_assertion_message_expr'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_get_begin_iter'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_get_length'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_hash_table_get_keys'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_once_init_enter_impl'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_pdf_surface_set_size'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_iter_get_sequence'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_groups'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_app_info'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_get'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_layout_iter_get_run_readonly'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_assertion_message'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_added'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_sequence_iter_prev'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/home/klose/gtk/gtk+-2.12.11/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/klose/gtk/gtk+-2.12.11/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/klose/gtk/gtk+-2.12.11/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/klose/gtk/gtk+-2.12.11'
make: *** [all] Error 2


最后由 klose911 编辑于 2008-08-04 18:47,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-08-04 2:37 

注册: 2007-05-13 15:20
帖子: 333
送出感谢: 0 次
接收感谢: 0 次
Is pango cairo glib up to date??


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-08-04 3:10 

注册: 2008-02-01 17:18
帖子: 106
送出感谢: 0 次
接收感谢: 0 次
自己编译安装了glib-2.16.5, pango-1.20.5, cairo-1.2.6
已经ldconfig了,不然configure没法通过的


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-08-04 14:03 
头像

注册: 2005-08-14 19:53
帖子: 3998
送出感谢: 1
接收感谢: 2
换个源,8.04或者8.10的。整体升级把。。。恐怖的工程


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2008-08-04 18:46 

注册: 2008-02-01 17:18
帖子: 106
送出感谢: 0 次
接收感谢: 0 次
问题找到了!
必须先编译安装cairo, 不然随后编译的pango对cairo不支持,次序弄反了。
等到编译gtk对于部分需要cairo支持的文件还是链接为于/usr/lib原来安装过的pango, 而不是新安装于/usr/local/lib的pango。
讨厌的是configure时候由于pkg能够找到新的pango的版本信息,所以即使部分使用原来的pango, configure还是可以通过的!


页首
 用户资料  
 
6 楼 
 文章标题 : Re: (解决)ubuntu6.06编译GTK2.12出错
帖子发表于 : 2009-05-09 17:26 

注册: 2009-05-09 17:24
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
5楼正解 :em11


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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