我正在尝试构建一个开源项目。 https://github.com/atefm/Android-Object-Detection
花了很多时间,但我无法建立它。每次我得到Cmake错误。我已经阅读了一些StackOverflow答案,但他们没有帮助,或者我不明白我到底应该做什么。我对JNI很新,所以我对本机构建过程不太了解。请帮助我下面是我得到的错误。如果您需要更多详细信息,请发表评论。
Build command failed.
Error while executing '/home/rudra/Android/Sdk/cmake/3.6.4111459/bin/cmake' with arguments {-H/home/rudra/Downloads/Projects/CVTEST/Android-Object-Detection-master/app -B/home/rudra/Downloads/Projects/CVTEST/Android-Object-Detection-master/app/.externalNativeBuild/cmake/release/armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=/home/rudra/Android/Sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/rudra/Downloads/Projects/CVTEST/Android-Object-Detection-master/app/build/intermediates/cmake/release/obj/armeabi -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/home/rudra/Android/Sdk/cmake/3.6.4111459/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/home/rudra/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=21 -DCMAKE_CXX_FLAGS=-fexceptions}
-- Configuring incomplete, errors occurred!
(include) CMakeLists.txt
Open File
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Build command failed.
Error while executing '/home/rudra/Android/Sdk/cmake/3.6.4111459/bin/cmake' with arguments {-H/home/rudra/Downloads/Projects/CVTEST/Android-Object-Detection-master/app -B/home/rudra/Downloads/Projects/CVTEST/Android-Object-Detection-master/app/.externalNativeBuild/cmake/debug/armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=/home/rudra/Android/Sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/rudra/Downloads/Projects/CVTEST/Android-Object-Detection-master/app/build/intermediates/cmake/debug/obj/armeabi -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/home/rudra/Android/Sdk/cmake/3.6.4111459/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/home/rudra/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=21 -DCMAKE_CXX_FLAGS=-fexceptions}
-- Configuring incomplete, errors occurred!
(include) CMakeLists.txt
Open File
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage