[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.

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/
CMake Error at PlatformSpecifics/Android/android.toolchain.cmake:663
  Could not find any working toolchain in the NDK.  Probably your Android
  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:
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