打印

运行target sim时遇到的问题

运行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格式的文件,可是编译内核时没有提示错误

TOP

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

TOP

又有新问题

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

TOP

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

TOP

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

TOP

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

TOP

我完全安装了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[2]: *** [skyeye_lcd.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-sim] Error 2

TOP

我完全安装了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[2]: *** [skyeye_lcd.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-sim] Error 2

TOP

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

TOP

我完全安装了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[2]: *** [skyeye_lcd.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-sim] Error 2

TOP

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

TOP

rh7.2好像没有gtk+2.0的软件包。你可以安装一个试试。
比较彻底的办法还是用rh9
建议还是用rh9吧。我这里没有rh7.2了,无法测试,
sorry.让你又多装了一次。

TOP