查看: 1958|回复: 1

osg 3.3.4 for android in ubuntu14.04

[复制链接]

该用户从未签到

发表于 2015-1-2 11:39:22 | 显示全部楼层 |阅读模式

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?

该用户从未签到

发表于 2015-8-26 15:41:42 | 显示全部楼层
我的也是这个问题,好像都没人回答啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表