<div dir="ltr"><div><div>Hi,<br><br></div>everything works fine for me following the same instructions with the same osg/ndk versions.<br>Maybe your toolchain is actually broken.<br><br></div>Martino<br></div><br><div class="gmail_quote"><div dir="ltr">Il giorno gio 27 ott 2016 alle ore 17:34 Rafa Gaitan <<a href="mailto:rafa.gaitan@gmail.com">rafa.gaitan@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="gmail_msg">Hi Andy,</p>
<p dir="ltr" class="gmail_msg">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" class="gmail_msg">I used the toolchain file from the opencv project, so probably updating it with that file will fix that problem</p>
<p dir="ltr" class="gmail_msg">Best regards,<br class="gmail_msg">
Rafa.<br class="gmail_msg">
</p>
<br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">El jue., 27 oct. 2016 10:11, Andy Tai <<a href="mailto:atai@atai.org" class="gmail_msg" target="_blank">atai@atai.org</a>> escribió:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" 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_8434769941324144328m_-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>
_______________________________________________<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>