免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4220 | 回复: 6
打印 上一主题 下一主题

pango安装后图形界面字符不能正常显示 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-10-19 11:57 |只看该作者 |倒序浏览
本打算安装GTK,所需的包安装比较顺利,就安装pango后,重启系统发现linux的图形界面上的字符都不能正常显示,都是小方块。终端的输入的命令和输出结果都能正常显示。gtk要求pango1.20以上,我换过好几个版本都是这样,这是为什么呀?

论坛徽章:
0
2 [报告]
发表于 2010-10-19 12:03 |只看该作者
补充一下,我所有包都是使用--prefix=/usr安装的。pango也是。pango 如果使用默认的/usr/local/就没有上面的问题,但gtk安装不了了。修改环境变量也一样,编译时候总是说pango版本太低。我还改过/etc/ld.so.conf,运行ldconfig.

另外,我的glib,atk,cairo等包都安装到/usr/下了。

论坛徽章:
0
3 [报告]
发表于 2010-10-20 09:58 |只看该作者
本帖最后由 sylmdl 于 2010-10-20 10:02 编辑

现在我把panggo安装到/usr/local目录下,系统正常。然后再装gtk2.91 (2.22也一样的错误),configure成功,make时出现下面的错误。各位帮帮忙,分析一下吧。

论坛徽章:
0
4 [报告]
发表于 2010-10-20 10:01 |只看该作者
gtkpaned.c: In function 'gtk_paned_set_saved_focus':
gtkpaned.c:1750: warning: dereferencing type-punned pointer will break strict-aliasing rules
gtkpaned.c:1756: warning: dereferencing type-punned pointer will break strict-aliasing rules
gtkpaned.c: In function 'gtk_paned_set_first_paned':
gtkpaned.c:1766: warning: dereferencing type-punned pointer will break strict-aliasing rules
gtkpaned.c:1772: warning: dereferencing type-punned pointer will break strict-aliasing rules
gtkpaned.c: In function 'gtk_paned_set_last_child1_focus':
gtkpaned.c:1782: warning: dereferencing type-punned pointer will break strict-aliasing rules
gtkpaned.c:1788: warning: dereferencing type-punned pointer will break strict-aliasing rules
gtkpaned.c: In function 'gtk_paned_set_last_child2_focus':
gtkpaned.c:1798: warning: dereferencing type-punned pointer will break strict-aliasing rules
gtkpaned.c:1804: warning: dereferencing type-punned pointer will break strict-aliasing rules
mv -f .deps/gtkpaned.Tpo .deps/gtkpaned.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/usr/lib\" -DGTK_DATADIR=\"/usr/share\" -DGTK_DATA_PREFIX=\"/usr\" -DGTK_SYSCONFDIR=\"/usr/etc\" -DGTK_VERSION=\"2.91.0\" -DGTK_BINARY_VERSION=\"3.0.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"file,lpr\" -DGTK_PRINT_PREVIEW_COMMAND=\""evince --unlink-tempfile --preview --print-settings %s %f"\" -I.. -I../gtk -I.. -I../gdk -I../gdk -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_ENABLE_DEBUG -DG_ERRORCHECK_MUTEXES -pthread -I/usr/local/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0        -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES    -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -g -O2 -g -Wall -MT gtkpango.lo -MD -MP -MF .deps/gtkpango.Tpo -c -o gtkpango.lo gtkpango.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/usr/lib\" -DGTK_DATADIR=\"/usr/share\" -DGTK_DATA_PREFIX=\"/usr\" -DGTK_SYSCONFDIR=\"/usr/etc\" -DGTK_VERSION=\"2.91.0\" -DGTK_BINARY_VERSION=\"3.0.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"file,lpr\" "-DGTK_PRINT_PREVIEW_COMMAND=\"evince --unlink-tempfile --preview --print-settings %s %f\"" -I.. -I../gtk -I.. -I../gdk -I../gdk -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_ENABLE_DEBUG -DG_ERRORCHECK_MUTEXES -pthread -I/usr/local/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -g -O2 -g -Wall -MT gtkpango.lo -MD -MP -MF .deps/gtkpango.Tpo -c gtkpango.c  -fPIC -DPIC -o .libs/gtkpango.o
gtkpango.c:42: error: expected specifier-qualifier-list before 'PangoRenderer'
gtkpango.c:49: error: expected specifier-qualifier-list before 'PangoRendererClass'
gtkpango.c: In function '_gtk_fill_layout_renderer_get_type':
gtkpango.c:52: error: 'PANGO_TYPE_RENDERER' undeclared (first use in this function)
gtkpango.c:52: error: (Each undeclared identifier is reported only once
gtkpango.c:52: error: for each function it appears in.)
gtkpango.c: At top level:
gtkpango.c:55: error: expected ')' before '*' token
gtkpango.c:68: error: expected ')' before '*' token
gtkpango.c:81: error: expected ')' before '*' token
gtkpango.c:100: error: expected ')' before '*' token
gtkpango.c:135: error: expected ')' before '*' token
gtkpango.c:149: error: expected ')' before '*' token
gtkpango.c: In function '_gtk_fill_layout_renderer_class_init':
gtkpango.c:196: error: 'PangoRendererClass' undeclared (first use in this function)
gtkpango.c:196: error: 'renderer_class' undeclared (first use in this function)
gtkpango.c:196: warning: implicit declaration of function 'PANGO_RENDERER_CLASS'
gtkpango.c:198: error: 'gtk_fill_layout_renderer_draw_glyphs' undeclared (first use in this function)
gtkpango.c:199: error: 'gtk_fill_layout_renderer_draw_glyph_item' undeclared (first use in this function)
gtkpango.c:200: error: 'gtk_fill_layout_renderer_draw_rectangle' undeclared (first use in this function)
gtkpango.c:201: error: 'gtk_fill_layout_renderer_draw_trapezoid' undeclared (first use in this function)
gtkpango.c:202: error: 'gtk_fill_layout_renderer_draw_error_underline' undeclared (first use in this function)
gtkpango.c:203: error: 'gtk_fill_layout_renderer_draw_shape' undeclared (first use in this function)
gtkpango.c: In function '_gtk_pango_fill_layout':
gtkpango.c:225: error: 'GtkFillLayoutRenderer' has no member named 'cr'
gtkpango.c:226: warning: implicit declaration of function 'pango_renderer_draw_layout'
gtkpango.c:226: warning: implicit declaration of function 'PANGO_RENDERER'
make[4]: *** [gtkpango.lo] Error 1
make[4]: Leaving directory `/root/gtk+-2.91.0/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/gtk+-2.91.0/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/gtk+-2.91.0/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gtk+-2.91.0'
make: *** [all] Error 2

论坛徽章:
0
5 [报告]
发表于 2010-10-21 16:38 |只看该作者
: 'PANGO_TYPE_RENDERER' undeclared (first use in this function)
类似很多 无定义,有可能是版本低,但我觉得可能度比较大的是 /usr 没搜索到,装这个尽量/usr/local把
内部的函数查找 要慢慢通过gcc来调,ldconf也未必有效

论坛徽章:
0
6 [报告]
发表于 2010-10-22 12:44 |只看该作者
我又重新安装了。所有的包都在/usr/local目录下。也修改了环境变量。但gtk make的错还是出现,而且与上面的一样。

我安装的包有:  gettest-0.18.1.1 ; glib-2.27.0; atk-1.32.0; pixman-0.18.4; cairo-1.10.0; pango-1.27.2; gdk-pixbuf-2.22.0

是不是还缺少什么东西呢?

请帮忙分析一下,多谢了。

论坛徽章:
0
7 [报告]
发表于 2011-03-12 10:40 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP