|
my input method of ubuntu is broken ,so just use english.
as the note of latest osg version, i build osg for android as following setting:
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=/home/xmj/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?
|
|