bobzeng 发表于 2004-4-20 09:55:57

运行target sim时遇到的问题

我执行完make dep    make后生成了romfs.img文件,在linux-2.4.x下有linux文件。在uClinux-dist下建立了skyeye.conf文件
然后执行skyeye linux-2.4.x/llinux
再执行target sim 时 提示说Undefined target command
这是怎么回事,我没有找到elf格式的文件,可是编译内核时没有提示错误

chyyuu 发表于 2004-4-21 01:40:15

编译skyeye出错了。
请看置顶的常见问题解答

bobzeng 发表于 2004-4-22 11:30:38

又有新问题

./configure --target=arm-elf --prefix=/usr/local --without-gtk-prefix --without-gtk-exec-prefix --disable-gtktest
我在编译skyeye之前加上了这条命令,
但是make时,出现了一对错误,主要是和lcd相关的文件出错。
可是./configure时,没有这些问题。我装的是redhat 7.2

chyyuu 发表于 2004-4-22 11:35:52

请把你执行./configure --target=arm-elf --prefix=/usr/local --without-gtk-prefix --without-gtk-exec-prefix --disable-gtktest 的输出信息显示一下
我看看是什么错。

bobzeng 发表于 2004-4-22 15:35:19

谢谢!
不过我把linux卸了,正准备装redhat9,但盘质量太差了。我马上装回7.2再试一下

chyyuu 发表于 2004-4-22 16:25:03

最好完全安装。
我以前就是在rh7.2上开发的,应该没有问题。

bobzeng 发表于 2004-4-24 10:46:02

我完全安装了RedHat7.2,从新编译skyeye,我在/目录下建了一个workstation目录,将skyeye压缩文件解压在这个目录下,然后进入skyeye目录,运行./configure --target=arm-elf --prefix=/usr/local --without-gtk-prefix --without-gtk-exec-prefix --disable-gtktest
然后make
出现如下错误提示:

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
skyeye_lcd.c: In function `lcd_enable':
skyeye_lcd.c:145: warning: passing arg 1 of `gtk_window_set_title' from incompatible pointer type
skyeye_lcd.c:165: parse error before `color'
skyeye_lcd.c:199: `color' undeclared (first use in this function)
skyeye_lcd.c:199: (Each undeclared identifier is reported only once
skyeye_lcd.c:199: for each function it appears in.)
make: *** Error 1
make: *** Error 2
make: *** Error 2

bobzeng 发表于 2004-4-24 10:48:15

我完全安装了RedHat7.2./configure --target=arm-elf --prefix=/usr/local --without-gtk-prefix --without-gtk-exec-prefix --disable-gtktest
在/workstation/skyeye下执行完这条命令后,我执行make出现如下错误: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
skyeye_lcd.c: In function `lcd_enable':
skyeye_lcd.c:145: warning: passing arg 1 of `gtk_window_set_title' from incompatible pointer type
skyeye_lcd.c:165: parse error before `color'
skyeye_lcd.c:199: `color' undeclared (first use in this function)
skyeye_lcd.c:199: (Each undeclared identifier is reported only once
skyeye_lcd.c:199: for each function it appears in.)
make: *** Error 1
make: *** Error 2
make: *** Error 2

bobzeng 发表于 2004-4-24 10:48:59

我完全安装了RedHat7.2./configure --target=arm-elf --prefix=/usr/local --without-gtk-prefix --without-gtk-exec-prefix --disable-gtktest
在/workstation/skyeye下执行完这条命令后,我执行make出现如下错误:

bobzeng 发表于 2004-4-24 10:49:39

我完全安装了RedHat7.2./configure --target=arm-elf --prefix=/usr/local --without-gtk-prefix --without-gtk-exec-prefix --disable-gtktest
在/workstation/skyeye下执行完这条命令后,我执行make出现如下错误: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
skyeye_lcd.c: In function `lcd_enable':
skyeye_lcd.c:145: warning: passing arg 1 of `gtk_window_set_title' from incompatible pointer type
skyeye_lcd.c:165: parse error before `color'
skyeye_lcd.c:199: `color' undeclared (first use in this function)
skyeye_lcd.c:199: (Each undeclared identifier is reported only once
skyeye_lcd.c:199: for each function it appears in.)
make: *** Error 1
make: *** Error 2
make: *** Error 2

ksh 发表于 2004-4-27 16:42:29

你没有装gtk的包或者gtk包的路径不对,建议你把gtk相关的包再安装一下。

chyyuu 发表于 2004-4-30 22:02:23

rh7.2好像没有gtk+2.0的软件包。你可以安装一个试试。
比较彻底的办法还是用rh9
建议还是用rh9吧。我这里没有rh7.2了,无法测试,
sorry.让你又多装了一次。
页: [1]
查看完整版本: 运行target sim时遇到的问题