liangalei 发表于 2005-3-10 16:26:50

而如果在sim/arm/Makefile中加一行:

CSEARCH = -I. -I$(srcdir) -I../common -I$(srccom) \
-I../../include -I$(srcroot)/include \
-I../../bfd -I$(srcroot)/bfd \
-I../../opcodes -I$(srcroot)/opcodes \
-I../../intl -I$(srcroot)/intl\
-I../../include/gdb\
-I/usr/include/sys                        <------------------(ADD THIS LINE)-------<
ALL_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(CFLAGS)


则报告如下错误(看来很严重!)

gcc -c -DHAVE_CONFIG_H               -DDEFAULT_INLINE=0         -DMODET `gtk-config --cflags`   -I. -I. -I..
/common -I./../common -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../op
codes -I../../intl -I./../../intl -I../../include/gdb -I/usr/include/sys -g -O2 skyeye_mach_s3c4510b.c
In file included from armdefs.h:60,
               from skyeye_mach_s3c4510b.c:39:
skyeye_config.h:176: error: parse error before "FILE"
skyeye_config.h:176: warning: no semicolon at end of struct or union
skyeye_config.h:180: error: parse error before '}' token
skyeye_config.h:180: warning: data definition has no type or storage class

liangalei 发表于 2005-3-10 16:28:21

请大家、斑竹主持一下,给我们讲讲“原理”性的东东,不然整天在这“瞎”编译:-)

liangalei 发表于 2005-3-11 15:45:32

感谢shang97的文章,我昨天在cygwin上也编译成功了!

基本步骤:
(0) 环境描述:cygwin-1.5.12, windows 2000;
(1) 安装cygwin的gtk+-devel包:否则报gtk-config脚本找不到;
(2) 安装gtk+-1.2.10.x(即老版本gtk+):否则报cyggtk-1-2-0.dll找不到;
(3) 安装gettext-dev(而不仅仅是gettext):否则报gettext, msgfmt错误;
(4) 于是configure通过;
(5) 修改gdb/Makefile(参考shang79的文章):否则make的时候,ld报_gtk_init等入口找不到;
(6) make   <-----成功

===============================================
ftp://166.111.66.183/pub/embed/skyeye/test/testsuits/ep7312
下载ep7312_with_lcd
===============================================
运行:
skyeye vmlinuxcolor
===============================================
..........(skyeye终于起来了,但是又遇到一个IRQ问题)...........
(1)LCD出来了(但是没有小企鹅)
(2)console显示linux启动
..........
Sash command shell (version 1.1.1)
/>
Program received signal SIGINT, Interrupt.
do_IRQ (irq=13, regs=0xc0141e5c) at irq.c:206
206   irq.c: No such file or directory.
      in irq.c
(SkyEye) lslsls
Undefined command: "lslsls".Try "help".
(SkyEye)

clock09 发表于 2005-4-13 12:03:19

:twisted:
是不是只能在win2000下才能在cygwin下成功安装skyeye?

paniven 发表于 2005-4-14 16:46:45

make: Entering directory `/skyeye/sim/arm'
gcc -c -DHAVE_CONFIG_H -DDEFAULT_INLINE=0 -DMODET `pkg-c
onfig gtk+-2.0 --cflags` -I. -I. -I../common -I./../common -I../../include -I.
/../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../opcodes -I../
../intl -I./../../intl -I../../include/gdb -g -O2 armsym.c
armsym.c:20: search.h: No such file or directory
make: *** Error 1
make: Leaving directory `/skyeye/sim/arm'
make: *** Error 2
make: Leaving directory `/skyeye/sim'
make: *** Error 2


如上:找不到search.h不知何故?
在“armsym.c”中有
#include <search.h>
这行;
是不是函数库没装好呢?

paniven 发表于 2005-4-17 16:11:51

Cygwin1.5.10完全版哪里有下啊?
页: 1 [2]
查看完整版本: 我在Cygwin下成功安装了skyeye