Hi Xuhaiyan,

The error that you are getting is because CMake does not find the Android
NDK, you need to add -DANDROID_NDK=<path-to-the-android-ndk> to your cmake
command.

Regards,
Rafa.


2015-01-02 4:34 GMT+01:00 Haiyan Xu <[email protected]>:

> Hi everybody,
> first of all, happy new year.
> i get the flowing info when i try to build latest osg for android in
> ubuntu 14.04
>
> xmj@xmj-HP-Compaq-6530b-VA078PA-AB2:~$ cd osggit
> xmj@xmj-HP-Compaq-6530b-VA078PA-AB2:~/osggit$ cd
> build_android_static_gles2/
> xmj@xmj-HP-Compaq-6530b-VA078PA-AB2:~/osggit/build_android_static_gles2$
> cmake ..
> -DCMAKE_TOOLCHAIN_FILE=../PlatformSpecifics/Android/android.toolchain.cmake
>  -DOPENGL_PROFILE="GLES2"   -DDYNAMIC_OPENTHREADS=OFF
>  -DDYNAMIC_OPENSCENEGRAPH=OFF   -DANDROID_NATIVE_API_LEVEL=15
> -DANDROID_ABI="armeabi armeabi-v7a"
> -DCMAKE_INSTALL_PREFIX=/cygdrive/d/osg334gles2r10c
> 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-2.8/Modules/CMakeDetermineSystem.cmake:90 (include)
>   CMakeLists.txt:52 (PROJECT)
>
>
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be built correctly.
> Missing variable is:
> CMAKE_C_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be built correctly.
> Missing variable is:
> CMAKE_C_COMPILER
> CMake Error: Could not find cmake module file:
> /home/xmj/osggit/build_android_static_gles2/CMakeFiles/
> 2.8.12.2/CMakeCCompiler.cmake
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER
> CMake Error: Could not find cmake module file:
> /home/xmj/osggit/build_android_static_gles2/CMakeFiles/
> 2.8.12.2/CMakeCXXCompiler.cmake
> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
> -- Configuring incomplete, errors occurred!
>
> can someone give me some help?
>
> ...
>
>
> Thank you!
>
> Cheers,
> xuhaiyan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=62217#62217
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Rafael Gaitán Linares
CTO at Mirage Technologies S.L - http://www.mirage-tech.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to