<div dir="ltr">I have yet to make any effort to port OLSRd2 and the underlying framework to a different system than linux, so I am not really surprised about this.<div><br></div><div>Help is always welcome.</div><div><br></div>
<div>Henning Rogge</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 7, 2014 at 5:05 PM, Karoly Szabo <span dir="ltr"><<a href="mailto:szabo.karoly.a@gmail.com" target="_blank">szabo.karoly.a@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
<br>--<br>
Olsr-dev mailing list<br>
<a href="mailto:Olsr-dev@lists.olsr.org">Olsr-dev@lists.olsr.org</a><br>
<a href="https://lists.olsr.org/mailman/listinfo/olsr-dev" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-dev</a><br></blockquote></div><br></div>