[osg-users] Android build failure with Android NDK r13

Andy Tai atai at atai.org
Thu Oct 27 01:11:05 PDT 2016


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, atai at atai.org, Skype: licheng.tai, Line: andy_tai, WeChat:
andytai1010
Year 2016 民國105年
自動的精神力是信仰與覺悟
自動的行為力是勞動與技能
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161027/a3ddedc1/attachment-0002.htm>


More information about the osg-users mailing list