CMake error at CMakeLists.txt:30 (project): No CMAKE_C_COMPILER could be found

后端 未结 19 2116
抹茶落季
抹茶落季 2020-11-22 12:57

I\'m trying make a Visual Studio solution with CMake to compile the latest version of aseprite and CMake keeps giving me the:

No CMAKE_C_COMPILER could be fo         


        
19条回答
  •  感情败类
    2020-11-22 13:32

    Look in the Cmakelists.txt if you find ARM you need to install C++ for ARM

    It's these packages:

    C++ Universal Windows Platform for ARM64 "Not Required"

    Visual C++ Compilers and libraries for ARM "Not Required"

    Visual C++ Compilers and libraries for ARM64 "Very Likely Required"

    Required for finding Threads on ARM 
    enable_language(C) 
    enable_language(CXX)
    

    Then the problems

    No CMAKE_C_COMPILER could be found.

    No CMAKE_CXX_COMPILER could be found.

    Might disappear unless you specify c compiler like clang, and maybe installing clang will work in other favour.

    You can with optional remove in cmakelists.txt both with # before enable_language if you are not compiling for ARM.

提交回复
热议问题