tsuibin
deepin
2013-06-14 17:41 你编译的是一个arm应用,那么需要的是库的arm版本
你至少需要自己准备一套工具链
你至少需要自己准备一套工具链
Reply Like 0 View the author
你编译的是一个arm应用,那么需要的是库的arm版本
你至少需要自己准备一套工具链
稍等,我也编译一下
确实出问题了
/usr/bin/ld: vl.o: undefined reference to symbol 'timer_settime@@GLIBC_2.3.3'
/usr/bin/ld: note: 'timer_settime@@GLIBC_2.3.3' is defined in DSO /lib/x86_64-linux-gnu/librt.so.1 so try adding it to the linker command line
/lib/x86_64-linux-gnu/librt.so.1: could not read symbols: 无效的操作
collect2: 错误: ld 返回 1
make[1]: *** [qemu] 错误 1
make: *** [subdir-i386-softmmu] 错误 2
[quote]确实出问题了
/usr/bin/ld: vl.o: undefined reference to symbol 'timer_settime@@GLIBC_2.3.3'
/usr/bin/ld: note: 'timer_settime@@GLIBC_2.3.3' is defined in DSO /lib/x86_64-linux-gnu/librt.so.1 so try adding it to the linker command line
/lib/x86_64-linux-gnu/librt.so.1: could not read symbols: 无效的操作
collect2: 错误: ld 返回 1
make[1]: *** [qemu] 错误 1
make: *** [subdir-i386-softmmu] 错误 2
[quote]稍等,我也编译一下
[quote][quote]稍等,我也编译一下
你在什么地方,我送你一块2440的开发板吧
这是因为gcc升级引起的, ld (link) 现在的规则更加严谨了, 需要你完善编译脚本
在你编译的地方加上 -lrt 不过应该不至这一个库缺少。 你先玩玩,不行我再看看具体要怎么改
LIBS+=-lrt
最近 在研究嵌入式os 需要用虚拟机,qemu ,当然 仓库里的qemu-system-arm 本身可以虚拟很多板子,但就是不包含mini2440 然后qemu有个专门对于mini2440的分支,
我把它
git clone git://repo.or.cz/qemu/mini2440.git qemu 下来
然后:./configure --target-list=arm-softmmu
这都没问题:
然后:make -j4
编译到最后链接时出现如下问题:
AR arm-softmmu/libqemu.a
LINK arm-softmmu/qemu-system-arm
/usr/bin/ld: vl.o: undefined reference to symbol 'timer_settime@@GLIBC_2.3.3'
/usr/bin/ld: note: 'timer_settime@@GLIBC_2.3.3' is defined in DSO /lib/x86_64-linux-gnu/librt.so.1 so try adding it to the linker command line
/lib/x86_64-linux-gnu/librt.so.1: could not read symbols: 无效的操作
collect2: 错误: ld 返回 1
make[1]: *** [qemu-system-arm] 错误 1
make: *** [subdir-arm-softmmu] 错误 2
我的系统是 deepin-linux 12.12 64位 RC
先谢谢大家了!!