<div dir="ltr"><div><div><div><div>Hi all,<br></div>I'm trying to compile Olsrv2 for Android using<br></div>Andorid-ndk-r8e<br></div>and following the example found in cmake/cross/android_on_linux.cmake<br></div><div>The make command usually stop at 1%<br>

</div>Only after adding those paths I was able to reach (just) 4%<br><div><br>export PATH=$PATH:/locale/ANDROID/bin:~/adt-bundle-linux-x86/sdk/platform-tools/:/locale/ANDROID/android-ndk-r8e:/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin:/locale/ANDROID/android-ndk-r8e/platforms/android-14/arch-arm/usr/include:/locale/ANDROID/android-ndk-r8e/platforms/android-14/arch-arm/usr/lib:<br>

<br>export C_INCLUDE_PATH=C_INCLUDE_PATH:/locale/ANDROID/android-ndk-r8e/platforms/android-14/arch-arm/usr/include:/locale/ANDROID/android-ndk-r8e/platforms/android-14/arch-arm/usr/lib:<br><br></div><div>Does anyone had a similar problem? <br>

Here is the result of the last make (usually was .o files instead of .obj, but with same results):<br><br>Scanning dependencies of target oonf_common<br>[  1%] Building C object src-api/common/CMakeFiles/oonf_common.dir/autobuf.c.obj<br>

[  1%] Building C object src-api/common/CMakeFiles/oonf_common.dir/avl_comp.c.obj<br>[  2%] Building C object src-api/common/CMakeFiles/oonf_common.dir/avl.c.obj<br>[  2%] Building C object src-api/common/CMakeFiles/oonf_common.dir/daemonize.c.obj<br>

[  3%] Building C object src-api/common/CMakeFiles/oonf_common.dir/netaddr.c.obj<br>[  3%] Building C object src-api/common/CMakeFiles/oonf_common.dir/netaddr_acl.c.obj<br>[  4%] Building C object src-api/common/CMakeFiles/oonf_common.dir/string.c.obj<br>

[  4%] Building C object src-api/common/CMakeFiles/oonf_common.dir/template.c.obj<br>Linking C shared library ../../liboonf_common.so<br>/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: CMakeFiles/oonf_common.dir/autobuf.c.obj: incompatible target<br>

/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: CMakeFiles/oonf_common.dir/avl_comp.c.obj: incompatible target<br>

/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: CMakeFiles/oonf_common.dir/avl.c.obj: incompatible target<br>

/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: CMakeFiles/oonf_common.dir/daemonize.c.obj: incompatible target<br>

/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: CMakeFiles/oonf_common.dir/netaddr.c.obj: incompatible target<br>

/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: CMakeFiles/oonf_common.dir/netaddr_acl.c.obj: incompatible target<br>

/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: CMakeFiles/oonf_common.dir/string.c.obj: incompatible target<br>

/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: CMakeFiles/oonf_common.dir/template.c.obj: incompatible target<br>

/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc<br>/locale/ANDROID/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl<br>

collect2: error: ld returned 1 exit status<br>make[2]: *** [liboonf_common.so] Error 1<br>make[1]: *** [src-api/common/CMakeFiles/oonf_common.dir/all] Error 2<br>make: *** [all] Error 2<br><br><br></div><div>Thanks in advance,<br>

</div>Karoly</div>