![]() ![]() I used the Google Nexus-S AOSP to build a binary that I intended to run on Samsung S3 phone. Somehow after struggling for more than a day with make files and trying different options including -sysroot & -dynamic-linker options etc., I finally tried to compile it within the Android AOSP tree. I had similar issues as I was trying to compile I2C-tools for debugging I2C bus on Android. This answer adds a bit more details to answer. Users/jackiegleason/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/././././arm-linux-androideabi/bin/ld: error: cannot find -ldl Users/jackiegleason/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/././././arm-linux-androideabi/bin/ld: error: cannot find -lc Users/jackiegleason/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/././././arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory Users/jackiegleason/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/././././arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory ![]() arm-linux-androideabi-gcc hello.c -sysroot=~/Development/Android/android-ndk-r8c/platforms/android-9/arch-arm Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/././././arm-linux-androideabi/bin/ld: error: cannot find -ldlĬan someone help me with what I am doing wrong? Am I missing a link or something? Android.mk is not an option. Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/././././arm-linux-androideabi/bin/ld: error: cannot find -lc Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/././././arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/././././arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory ~/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc hello.c -o hello -ffreestandingĪnd I get. So due to a lack of gcc knowledge (but some Google ability) I find this and try it. Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/./lib/gcc/arm-linux-androideabi/4.6/include/stdint.h:3:26: fatal error: stdint.h: No such file or directory ~/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc hello.c -o hello I am trying to compile the following class using the Android GCC compiler. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |