如何配置linaro-gcc

时间:2018-03-28 08:52:14

标签: eclipse gcc linaro

现在我正在使用gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf并使用eclipse进行交叉编译。但是当构建时,我会得到像

这样的错误
home/osboxes/artik5/opt/toolchains/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.5.0/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: No such file or directory
/home/osboxes/artik5/opt/toolchains/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.5.0/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory
/home/osboxes/artik5/opt/toolchains/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.5.0/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/arm-linux-gnueabihf/libpthread.so.0
makefile:209: recipe for target 'hc' failed
/home/osboxes/artik5/opt/toolchains/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.5.0/../../../../arm-linux-gnueabihf/bin/ld: cannot find /usr/lib/arm-linux-gnueabihf/libpthread_nonshared.a

任何人都可以帮我解决这个问题。我在/home/osboxes/artik5/opt/toolchains/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/li b

中找到了crt1.o,crti.o,libpthread.so.0和libpthread_nonshared.a

1 个答案:

答案 0 :(得分:0)

rt1.o,crti.o和crtn.o以及libc.a都伴随着你的glibc。 你需要使用sqlite3_mutex_enter()选项告诉gcc在哪里搜索由glibc创建的二进制文件。