天嵌 ARM开发社区

 找回密码
 注册
查看: 3746|回复: 4

移植cgic库错误

[复制链接]
adokaixin 发表于 2010-3-21 21:20:17 | 显示全部楼层 |阅读模式
编译cgic出现错误,怎么回事啊?希望高手帮助,谢谢啊

[root@localhost cgic205]# vi Makefile
[root@localhost cgic205]# make
gcc cgictest.o -o cgictest.cgi -L./ -lcgic
/usr/bin/ld: cgictest.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: cgictest.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: cgictest.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: cgictest.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: cgictest.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: cgictest.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: cgictest.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: cgictest.o: Relocations in generic ELF (EM: 40)
cgictest.o: could not read symbols: File in wrong format
collect2: ld 返回 1
make: *** [cgictest.cgi] 错误 1
fuzhuo20 发表于 2010-3-21 23:19:11 | 显示全部楼层
为什么移植还是用gcc
不是用arm-linux-gcc
是不是Makefile不对或是没有设定环境变量?
回复

使用道具 举报

亚瑟王 发表于 2010-3-22 12:24:19 | 显示全部楼层
没有修改对地方吧。天嵌科技的光盘中提供了cgic的源码,在“Linux资源-》linux源码包-》apps_20091208.tar.bz2”压缩包中。
回复

使用道具 举报

steany 发表于 2010-6-8 20:53:00 | 显示全部楼层
1# adokaixin

请问这个问题,你现在解决好了吗?我也遇到了同样的问题
回复

使用道具 举报

亚瑟王 发表于 2010-6-10 17:56:16 | 显示全部楼层
4楼的是使用天嵌科技提供的源码编译的吗?天嵌科技提供的源码是使用交叉编译器arm-linux-gcc编译的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-19 01:06 , Processed in 2.038048 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表