QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2642|回复: 16

skyeye在configure时出错,请高手指正

[复制链接]
发表于 2004-7-24 08:53:59 | 显示全部楼层 |阅读模式
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.1.3... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
configure: error: Cannot find GTK: Is gtk-config in path?
configure: error: ../../../skyeye/sim/arm/configure failed for arm

这个说明我哪里错了,gtk-devel 已经装了啊?!
发表于 2004-7-24 11:08:35 | 显示全部楼层
好像是gtk+的问题
在新版本的gtk+中采用的是`pkg-config gtk+-2.0 --cflags`
旧版本的 GTK+ 使用 `gtk-config --cflags `
所以configure时找不到gtk-config这个script。
可以自己写个gtk-config.
回复

使用道具 举报

发表于 2004-7-24 11:10:21 | 显示全部楼层
当然也可以找个旧版的GTK1.2装上,也可以用吧 :)
回复

使用道具 举报

 楼主| 发表于 2004-7-25 09:06:15 | 显示全部楼层
我试了装gtk1.2 但是它说我已经装了,但是为什么“checking for GTK - version >= 1.1.3... no ”,找不到呢,我比较费解!?:(
回复

使用道具 举报

 楼主| 发表于 2004-7-25 09:09:22 | 显示全部楼层
另外“checking for gtk-config... /usr/bin/gtk-config ”这句话不是说明已经找到了gtk-config了吗???
回复

使用道具 举报

 楼主| 发表于 2004-7-25 15:08:42 | 显示全部楼层
"可以自己写个gtk-config"怎么写啊,我不会,救命啊
回复

使用道具 举报

发表于 2004-7-25 21:01:22 | 显示全部楼层
你在什么版本下装的?
先用
whereis gtk-config
找下有没有gtk-config
pkg-config gtk+-2.0 --cflags 能用吗?
回复

使用道具 举报

 楼主| 发表于 2004-7-26 09:19:22 | 显示全部楼层
RH9 skyeye0.7.4
gtk-devel-1.2.10-346.i386.rpm
回复

使用道具 举报

 楼主| 发表于 2004-7-26 09:39:16 | 显示全部楼层
whereis gtk-config
找到在/usr/bin/gtk-config
pkg-config gtk+-2.0 --cflags 得到如下结果:
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

这个感觉不能用,这几天搞得这个头都大了,谢谢你的回应,不知道其他人有没有人也遇到我这种情况!希望遇到的及时回应给我,和我联系!![email protected]
回复

使用道具 举报

发表于 2004-7-27 00:12:56 | 显示全部楼层
如果你不用LCD仿真,即不用gtk,可以看看

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=75401
回复

使用道具 举报

 楼主| 发表于 2004-7-27 08:48:03 | 显示全部楼层
我试过了,但是configure时,without gtk还是错误啊
回复

使用道具 举报

 楼主| 发表于 2004-7-27 09:50:29 | 显示全部楼层
without时configure通过了,但是接着make又出错了,我得内核2.6.7
/usr/bin/ld:cannot find -lXi
collect2:ld returned 1 exit status
make[2]:***[run]Error 1.

我想知道如果需要LCD仿真,我应该怎么办,怎么解决configure出错,请大侠贴个正确完整的解决方案!谢谢!
回复

使用道具 举报

发表于 2004-7-28 19:00:16 | 显示全部楼层
你执行
gtk-config --version

gtk-config --cflag
的结果是什么?
回复

使用道具 举报

 楼主| 发表于 2004-7-30 09:59:32 | 显示全部楼层
gtk-config --version
1.2.10
gtk-config --cflags
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
gtk-config --libs
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm

我的gtk-config确实有啊
回复

使用道具 举报

 楼主| 发表于 2004-8-2 18:30:44 | 显示全部楼层
怎么没人帮帮我啊??
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-27 14:20 , Processed in 0.092781 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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