Hi All, I'm building image for UDOO Quad from Android 6.0.1 sources using instructions from UDOO's build from sources web page ( https://www.udoo.org/docs/Advanced_Topics/Compile_Android_From_Source.html ). Build stopped with error listed below. Anyone seen this before? Google did not return any hits. Build env: Ubuntu 14.04.3. Thx, John target SharedLib: bossacjni (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so) /home/jc/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9.x-google/../../../../arm-linux-androideabi/bin/ld: error: cannot find -llog external/bossacjni/Samba.cpp:186: error: undefined reference to '__android_log_print' external/bossacjni/Samba.cpp:217: error: undefined reference to '__android_log_print' external/bossacjni/Samba.cpp:228: error: undefined reference to '__android_log_print' external/bossacjni/Samba.cpp:259: error: undefined reference to '__android_log_print' collect2: error: ld returned 1 exit status make: *** [out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so] Error 1 make: *** Waiting for unfinished jobs.... #### make failed to build some targets (05:48:16 (hh:mm:ss)) ####
Fixed by editing <top>/external/bossacjni/Android.mak. Made changes below. Completed built successfully! Yay!! -John Per instructions from: http://stackoverflow.com/questions/28004255/cant-print-log-messages-from-jni-with-android-studio Edit: <top>/external/bossacjni/Android.mak # LOCAL_LDLIBS := -llog LOCAL_LDLIBS := -ldl -llog