Error starting clion after upgrading to macos monterey (macbook pro m1)
Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEPENDS_USE_COMPILER=FALSE -G "CodeBlocks - Unix Makefiles" /Users/nikitasahanin/CLionProjects/3laba52
CMake Warning at /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.20/Modules/Platform/Darwin-Initialize.cmake:303 (message):
Ignoring CMAKE_OSX_SYSROOT value:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk
because the directory does not exist.
Call Stack (most recent call first):
/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.20/Modules/CMakeSystemSpecificInitialize.cmake:21 (include)
CMakeLists.txt:2 (project)
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:
/Library/Developer/CommandLineTools/usr/bin/cc
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_CXX_COMPILER:
/Library/Developer/CommandLineTools/usr/bin/c++
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/Users/nikitasahanin/CLionProjects/3laba52/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/Users/nikitasahanin/CLionProjects/3laba52/cmake-build-debug/CMakeFiles/CMakeError.log".
Cannot resolve compiler path '/Library/Developer/CommandLineTools/usr/bin/c++'
Cannot read /Users/nikitasahanin/CLionProjects/3laba52/cmake-build-debug/CMakeFiles/3.20.2/CMakeCCompiler.cmake
Cannot read /Users/nikitasahanin/CLionProjects/3laba52/cmake-build-debug/CMakeFiles/3.20.2/CMakeCXXCompiler.cmake
[Previous CMake output restored: 26.10.2021, 19:13]
请先登录再写评论。
Hello!
Please open the Terminal, and run the following command:
xcode-select --install. After that in CLion please doTools | CMake | Reset Cache and Reload Project. Does it help?yes, thanks))