本文主要是介绍CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题详情:
Build command failed.
Error while executing process C:\software\android\as\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HE:\download\workspace\phone-ruishi\ryx-ruishi\app -BE:\download\workspace\phone-ruishi\ryx-ruishi\app\.externalNativeBuild\cmake\debug\armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=C:\software\android\as\sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\download\workspace\phone-ruishi\ryx-ruishi\app\build\intermediates\cmake\debug\obj\armeabi -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:\software\android\as\sdk\cmake\3.6.4111459\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=C:\software\android\as\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_PLATFORM=android-16 -DCMAKE_CXX_FLAGS=}
(include) CMakeLists.txt
Open File
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Build command failed.
Error while executing process C:\software\android\as\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HE:\download\workspace\phone-ruishi\ryx-ruishi\app -BE:\download\workspace\phone-ruishi\ryx-ruishi\app\.externalNativeBuild\cmake\release\armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=C:\software\android\as\sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\download\workspace\phone-ruishi\ryx-ruishi\app\build\intermediates\cmake\release\obj\armeabi -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=C:\software\android\as\sdk\cmake\3.6.4111459\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=C:\software\android\as\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_PLATFORM=android-16 -DCMAKE_CXX_FLAGS=}
(include) CMakeLists.txt
Open File
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
解答:android ndk坏了,重新下载个别的版本试试
这篇关于CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!