Hi, everything works fine for me following the same instructions with the same osg/ndk versions. Maybe your toolchain is actually broken.
Martino Il giorno gio 27 ott 2016 alle ore 17:34 Rafa Gaitan <rafa.gai...@gmail.com> ha scritto: > Hi Andy, > > 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. > > I used the toolchain file from the opencv project, so probably updating it > with that file will fix that problem > > Best regards, > Rafa. > > El jue., 27 oct. 2016 10:11, Andy Tai <a...@atai.org> escribió: > > Hi, I followed this page to build OpenSceneGraph 3.4 for Android. > > http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4 > > It builds successfully with NDK r10e. > > > However, with the current NDK release, r13. I got these error in the cmake > stage, on an Fedora 23 GNU/Linux x86-64 system: > > 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 > CMake Error at PlatformSpecifics/Android/android.toolchain.cmake:663 > (message): > Could not find any working toolchain in the NDK. Probably your Android > NDK > is broken. > Call Stack (most recent call first): > /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:98 (include) > CMakeLists.txt:114 (PROJECT) > > > CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage > CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage > -- Configuring incomplete, errors occurred! > > > NDK r13 uses clang as the default compiler, instead of gcc. Would that be > related to the error? Thanks for any help on this. > > > -- > Andy Tai, a...@atai.org, Skype: licheng.tai, Line: andy_tai, WeChat: > andytai1010 > Year 2016 民國105年 > 自動的精神力是信仰與覺悟 > 自動的行為力是勞動與技能 > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org