LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 949|回复: 3

glade做的程序图片不能显示

[复制链接]
发表于 2006-10-29 12:33:34 | 显示全部楼层 |阅读模式
在用glade作界面的时候能显示 好好的  那个图片本来在/home/gcs/下,编译后图片本身也被复制到了 /home/gcs/Projects/dfdfdfd/pixmaps 下  但是打开/home/gcs/Projects/dfdfdfd/src中的程序时 图片根本不能显示

不过在用Anjuta 编译的时候提示Couldn't find pixmap file: 。
 楼主| 发表于 2006-10-29 13:53:17 | 显示全部楼层
sir上本来有一篇,但是那个是说版本问题,我的是ubuntu6.06 估计不会是版本问题。
google了一上午,才找到点,还看不懂。那位帮翻译解释一下。谢谢。
也是郁闷,google的大多是英文的网页,难道中国的glade和外国的不一样,还是中国人聪明的多?

Yes, this is a known "bug". Glade generated code seems to look for
> pixmaps in the default gnome directory (/usr/share/pixmaps/david).
> This should be solved by putting there the pixmaps,  or linking
> /usr/share/local/pixmaps/david to /usr/share/pixmaps/david, or using
> the --prefix=/usr in the configure (this would install david binary
> in /usr/bin and pixmaps in /usr/share/pixmaps/david, but you'll need
> to be root to do the "make install"). We decided not to put the
> pixmaps in /usr/share/.... by default because the users don't have
> write access to that directory. Anyway, this is a thing to fix.

https://listas.hispalinux.es/pipermail/diasce/2002-July/001112.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-29 14:09:29 | 显示全部楼层
感谢:QQ群良人行,回家再试,现在在网吧没环境〉

你问的情况,没有试过,
不过那段英文就是讲,Glade默认查找pixmaps的路径是在gnome的文件夹 /usr/ share/pixmaps/david, 可以把pixmaps放在那里,或者链接 /usr/ share/local/pixmaps/david 到 /usr/ share/pixmaps/david来解决,或者在安装david的时候用configure配置的时候用--prefix加参数来改变默认路径,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-1 14:28:07 | 显示全部楼层
郁闷,根本就没有那个目录。
没办法,舍弃GLADE和auj,一行一行打代码喽~~~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表