我已按照此链接中的说明操作:http://www.vtk.org/Wiki/VES/Developers_Guide
我已经下载了VES,Andoid ndk-r8b,Android Studio(有Android sdk),adb,ant。
按照说明操作:
export ANDROID_NDK=/home/ahrgm/Downloads/android-ndk-r8b
cmake -P configure.cmake
cd build
make -j4
出现以下错误:
加载初始缓存文件 /home/ahrgm/VES/CMake/toolchains/TryRunResults.cmake CMake错误 /home/ahrgm/VES/CMake/toolchains/android.toolchain.cmake:745 (消息):在NDK中找不到任何工作工具链。 可能你的Android NDK坏了。呼叫堆栈(最近的呼叫 第一):/ usr / share / cmake-2.8 / Module / BrushDetermineSystem.cmake:93 (包括)CMakeLists.txt:3(项目)
CMake错误:错误需要内部CMake变量未设置,cmake可能 不能正确建造。缺少的变量是: CMAKE_C_COMPILER_ENV_VAR CMake错误:内部CMake需要错误 变量未设置,cmake可能无法正确构建。失踪 变量是:CMAKE_C_COMPILER CMake错误:找不到cmake模块 文件: /home/ahrgm/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Build/vtk-android/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake CMake错误:错误需要内部CMake变量未设置,cmake可能 不能正确建造。缺少的变量是: CMAKE_CXX_COMPILER_ENV_VAR CMake错误:内部CMake需要错误 变量未设置,cmake可能无法正确构建。失踪 变量是:CMAKE_CXX_COMPILER CMake错误:找不到cmake 模块文件: /home/ahrgm/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Build/vtk-android/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake CMake错误:在EnableLanguage CMake之后未设置CMAKE_C_COMPILER 错误:在EnableLanguage之后未设置CMAKE_CXX_COMPILER - 配置不完整,发生错误! make [2]: * [CMakeExternals / Stamp / vtk-android / vtk-android-configure]错误1 make [1]:* [CMakeFiles / vtk-android.dir / all]错误2 make:*** [all] 错误2
我该如何解决这个问题?