Cygwin下编译skyeye0.1.1.src出错
XP上安装了最新的Cygwin1.5.10,试着编译skyeye0.1.1.src。按照buildskyeyeoncygwin.txt上的步骤做,但是configure过后,在make的最后链接阶段出错:gcc -g -O2 -o gdb.exe main.o libgdb.a rdi-share/libangsd.a../sim/arm/li
bsim.a ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a../lib
iberty/libiberty.a -lncurses -lm../libiberty/libiberty.a -lintl /usr/lib/l
ibiberty.a /usr/lib/mingw/libcrtdll.a /usr/lib/w32api/libmsvcp60.a `gtk-config -
-libs`
libgdb.a(remote-rdi.o)(.text+0x1c1): In function `arm_rdi_open':
/home/shang/skyeye/gdb/remote-rdi.c:256: undefined reference to `_Adp_OpenDevice
'
libgdb.a(remote-rdi.o)(.text+0x286):/home/shang/skyeye/gdb/remote-rdi.c:277: und
efined reference to `_angel_RDI_open'
libgdb.a(remote-rdi.o)(.text+0x2b5):/home/shang/skyeye/gdb/remote-rdi.c:287: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0x2d1):/home/shang/skyeye/gdb/remote-rdi.c:292: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0x2ed):/home/shang/skyeye/gdb/remote-rdi.c:297: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0x309):/home/shang/skyeye/gdb/remote-rdi.c:302: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0x325):/home/shang/skyeye/gdb/remote-rdi.c:307: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0x341):/home/shang/skyeye/gdb/remote-rdi.c:313: mor
e undefined references to `_angel_RDI_info' follow
libgdb.a(remote-rdi.o)(.text+0x38b): In function `arm_rdi_open':
/home/shang/skyeye/gdb/remote-rdi.c:324: undefined reference to `_angel_RDI_open
'
libgdb.a(remote-rdi.o)(.text+0x3bc):/home/shang/skyeye/gdb/remote-rdi.c:332: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0x3db):/home/shang/skyeye/gdb/remote-rdi.c:339: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0x539):/home/shang/skyeye/gdb/remote-rdi.c:283: und
efined reference to `_Adp_CloseDevice'
libgdb.a(remote-rdi.o)(.text+0x676): In function `arm_rdi_create_inferior':
/home/shang/skyeye/gdb/remote-rdi.c:425: undefined reference to `_angel_RDI_info
'
libgdb.a(remote-rdi.o)(.text+0x701):/home/shang/skyeye/gdb/remote-rdi.c:414: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0x754): In function `arm_rdi_close':
/home/shang/skyeye/gdb/remote-rdi.c:457: undefined reference to `_angel_RDI_clos
e'
libgdb.a(remote-rdi.o)(.text+0x76e):/home/shang/skyeye/gdb/remote-rdi.c:464: und
efined reference to `_Adp_CloseDevice'
libgdb.a(remote-rdi.o)(.text+0x7ba): In function `arm_rdi_resume':
/home/shang/skyeye/gdb/remote-rdi.c:498: undefined reference to `_angel_RDI_exec
ute'
libgdb.a(remote-rdi.o)(.text+0x900): In function `arm_rdi_fetch_registers':
/home/shang/skyeye/gdb/remote-rdi.c:598: undefined reference to `_angel_RDI_CPUr
ead'
libgdb.a(remote-rdi.o)(.text+0x98f):/home/shang/skyeye/gdb/remote-rdi.c:568: und
efined reference to `_angel_RDI_CPUread'
libgdb.a(remote-rdi.o)(.text+0xad6): In function `arm_rdi_store_registers':
/home/shang/skyeye/gdb/remote-rdi.c:646: undefined reference to `_angel_RDI_CPUw
rite'
libgdb.a(remote-rdi.o)(.text+0xb42): In function `arm_rdi_xfer_memory':
/home/shang/skyeye/gdb/remote-rdi.c:672: undefined reference to `_angel_RDI_writ
e'
libgdb.a(remote-rdi.o)(.text+0xb7f):/home/shang/skyeye/gdb/remote-rdi.c:680: und
efined reference to `_angel_RDI_read'
libgdb.a(remote-rdi.o)(.text+0xbce): In function `arm_rdi_files_info':
/home/shang/skyeye/gdb/remote-rdi.c:700: undefined reference to `_angel_RDI_info
'
libgdb.a(remote-rdi.o)(.text+0xc0f):/home/shang/skyeye/gdb/remote-rdi.c:712: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0xc42):/home/shang/skyeye/gdb/remote-rdi.c:719: und
efined reference to `_angel_RDI_info'
libgdb.a(remote-rdi.o)(.text+0xd23): In function `arm_rdi_kill':
/home/shang/skyeye/gdb/remote-rdi.c:733: undefined reference to `_angel_RDI_open
'
libgdb.a(remote-rdi.o)(.text+0xda7): In function `arm_rdi_insert_breakpoint':
/home/shang/skyeye/gdb/remote-rdi.c:770: undefined reference to `_angel_RDI_setb
reak'
libgdb.a(remote-rdi.o)(.text+0xe61): In function `arm_rdi_remove_breakpoint':
/home/shang/skyeye/gdb/remote-rdi.c:803: undefined reference to `_angel_RDI_clea
rbreak'
libgdb.a(remote-rdi.o)(.text+0x13ac): In function `_initialize_remote_rdi':
/home/shang/skyeye/gdb/remote-rdi.c:1062: undefined reference to `_Adp_SetLogfil
e'
libgdb.a(remote-rdi.o)(.text+0x13b9):/home/shang/skyeye/gdb/remote-rdi.c:1063: u
ndefined reference to `_Adp_SetLogEnable'
libgdb.a(remote-rdi.o)(.text+0x11f0): In function `rdilogfile_command':
/home/shang/skyeye/gdb/remote-rdi.c:1024: undefined reference to `_Adp_SetLogfil
e'
libgdb.a(remote-rdi.o)(.text+0x126d): In function `rdilogenable_command':
/home/shang/skyeye/gdb/remote-rdi.c:1042: undefined reference to `_Adp_SetLogEna
ble'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/shang/skyeye/gdb'
make: *** Error 2 用Cygwin搞Linux开发困难太多,建议用VMWare。
VMware是一个虚拟机软件,可以将你的电脑虚拟为若干个虚拟机,
每个虚拟机都分配有CPU,Memory,HDD,ODD,FDD,NetWork等等。
每个虚拟机就相当于一个裸机。然后你可以像使用一个真正的裸机一样安装你想要的操作系统。
对我们搞开发的简单来说,就是可以同时在一个机子上运行很多操作系统。而且互不干扰。
例如在Windows系统上跑Linux。
有类似功能的软件还有微软的Vertual PC.不过它的新版本不支持虚拟Linux;
Linux下的开源软件Wine,
再就是VMware,有linux版和Windows版本。
具体更多的信息请大家自己去google一下。
-----------------------
目前我正准备抛弃Cygwin,拥抱VMWare. 看看
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=81475
页:
[1]