crtbegin_dynamic.o: No such file: No such file or directory


在源码的 out/target/product/godbox/obj/lib 下是有这些o的,但还是会报错,

arm-linux-androideabi-gcc: unrecognized option '-nostlib'  这个写错了。应该是-nostdlib 
/homesec/android2/zhangbin/053work3/hi050src/HiSTBAndroidV400R001C00SPC050B012/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory


/homesec/android2/zhangbin/053work3/hi050src/HiSTBAndroidV400R001C00SPC050B012/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
collect2: ld returned 1 exit status
C compiler test failed.


在 

LDFLAGS中 加入-nostdlib ,不会 crtbegin_dynamic.o: No such file: No such file or directory 错误



参考

http://blog.csdn.net/turui/article/details/7190690


说明:

Android 使用的是bionic的交叉工具链

Android 的交叉工具链c开工代码为:crtbegin_dynamic.o

Makefile 中的几个传递给连接器的参数不能少

-nostlib 不加会引起 crtbegin_dynamic.o: No such file: No such file or directory 错误


你可能感兴趣的:(Android)