<p dir="ltr">Hi Andy,</p>
<p dir="ltr">The toolchain for cmake in osg is probably not updated since the ndk r10e. Unfortunately I'm not working anymore in Android and I don't have time for take a look at it.</p>
<p dir="ltr">I used the toolchain file from the opencv project, so probably updating it with that file will fix that problem</p>
<p dir="ltr">Best regards,<br>
Rafa.<br>
</p>
<br><div class="gmail_quote"><div dir="ltr">El jue., 27 oct. 2016 10:11, Andy Tai <<a href="mailto:atai@atai.org">atai@atai.org</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">Hi, I followed this page to build OpenSceneGraph 3.4 for Android.<br class="gmail_msg"><a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4" class="gmail_msg" target="_blank">http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4</a><br class="gmail_msg"><br class="gmail_msg"></div>It builds successfully with NDK r10e.<br class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">However, with the current NDK release, r13. I got these error in the cmake stage, on an Fedora 23 GNU/Linux x86-64 system:<br class="gmail_msg"><br class="gmail_msg">cmake `pwd`/../osg.git/  -DCMAKE_TOOLCHAIN_FILE=`pwd`/../osg.git/PlatformSpecifics/Android/android.toolchain.cmake           -DOPENGL_PROFILE="GLES2" -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF          -DANDROID_NATIVE_API_LEVEL=15 -DCMAKE_INSTALL_PREFIX=/share/software/open_scene_graph/installed-android-armeabi-v7a  -DBUILD_OSG_EXAMPLES=true <br class="gmail_msg">CMake Error at PlatformSpecifics/Android/android.toolchain.cmake:663 (message):<br class="gmail_msg">  Could not find any working toolchain in the NDK.  Probably your Android NDK<br class="gmail_msg">  is broken.<br class="gmail_msg">Call Stack (most recent call first):<br class="gmail_msg">  /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:98 (include)<br class="gmail_msg">  CMakeLists.txt:114 (PROJECT)<br class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg">CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage<br class="gmail_msg">CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage<br class="gmail_msg">-- Configuring incomplete, errors occurred!<br class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">NDK r13 uses clang as the default compiler, instead of gcc.  Would that be related to the error?  Thanks for any help on this.<br class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg">-- <br class="gmail_msg"><div class="m_-3183374320625438731gmail-m_2185232345780489965gmail_signature gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg">Andy Tai, <a href="mailto:atai@atai.org" class="gmail_msg" target="_blank">atai@atai.org</a>, Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010<br class="gmail_msg">Year 2016 民國105年<br class="gmail_msg">自動的精神力是信仰與覺悟<br class="gmail_msg">自動的行為力是勞動與技能</div></div></div></div></div></div></div></div>
</div></div></div></div>
_______________________________________________<br class="gmail_msg">
osg-users mailing list<br class="gmail_msg">
<a href="mailto:osg-users@lists.openscenegraph.org" class="gmail_msg" target="_blank">osg-users@lists.openscenegraph.org</a><br class="gmail_msg">
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br class="gmail_msg">
</blockquote></div>