当前时区 GMT+8, 现在时间是 2008-9-7 18:10 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 我在Cygwin下成功安装了skyeye
liangalei
注册会员
Rank: 2


UID 141291
精华 3
积分 100
帖子 34
阅读权限 20
注册 2004-7-18
来自 China
状态 离线
发表于 2005-3-10 16:26  资料  短消息  加为好友 
而如果在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
注册会员
Rank: 2


UID 141291
精华 3
积分 100
帖子 34
阅读权限 20
注册 2004-7-18
来自 China
状态 离线
发表于 2005-3-10 16:28  资料  短消息  加为好友 
请大家、斑竹主持一下,给我们讲讲“原理”性的东东,不然整天在这“瞎”编译:-)

顶部
liangalei
注册会员
Rank: 2


UID 141291
精华 3
积分 100
帖子 34
阅读权限 20
注册 2004-7-18
来自 China
状态 离线
发表于 2005-3-11 15:45  资料  短消息  加为好友 
感谢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
新手上路
Rank: 1


UID 188774
精华 0
积分 65
帖子 26
阅读权限 10
注册 2005-4-12
状态 离线
发表于 2005-4-13 12:03  资料  短消息  加为好友  QQ

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

顶部
paniven
新手上路
Rank: 1



UID 188860
精华 1
积分 63
帖子 23
阅读权限 10
注册 2005-4-13
来自 Shenzhen,China
状态 离线
发表于 2005-4-14 16:46  资料  短消息  加为好友  添加 paniven 为MSN好友 通过MSN和 paniven 交谈 QQ
make[2]: 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[2]: *** [armsym.o] Error 1
make[2]: Leaving directory `/skyeye/sim/arm'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/skyeye/sim'
make: *** [all-sim] Error 2


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

顶部
paniven
新手上路
Rank: 1



UID 188860
精华 1
积分 63
帖子 23
阅读权限 10
注册 2005-4-13
来自 Shenzhen,China
状态 离线
发表于 2005-4-17 16:11  资料  短消息  加为好友  添加 paniven 为MSN好友 通过MSN和 paniven 交谈 QQ
Cygwin1.5.10完全版  哪里有下啊?

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP