Help me solve these Error
Answered
Run Build Command(s):/usr/bin/cmake.exe cmTC_07474/fast && CMake Error: The source directory "/cygdrive/g/C++/cmake-build-debug/CMakeFiles/CMakeTmp/cmTC_07474/fast" does not exist.
Please sign in to leave a comment.
Issue in detail...
C:\Users\HP\AppData\Local\JetBrains\CLion2020.1\cygwin_cmake\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/usr/bin/cmake.exe -DCMAKE_C_COMPILER=/usr/bin/gcc.exe -DCMAKE_CXX_COMPILER=/usr/bin/c++.exe -G "CodeBlocks - Unix Makefiles" /cygdrive/g/C++
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/gcc.exe
-- Check for working C compiler: /usr/bin/gcc.exe -- broken
CMake Error at /cygdrive/c/Users/HP/AppData/Local/JetBrains/CLion2020.1/cygwin_cmake/share/cmake-3.16.5/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/usr/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/g/C++/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/cmake.exe cmTC_8dd53/fast && CMake Error: The source directory "/cygdrive/g/C++/cmake-build-debug/CMakeFiles/CMakeTmp/cmTC_8dd53/fast" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/cygdrive/g/C++/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/cygdrive/g/C++/cmake-build-debug/CMakeFiles/CMakeError.log".
Hello!
Please empty the "Make", "C Compiler" and "C++ Compiler" fields in `File | Settings | Build, Execution, Deployment | Toolchains` and let CLion detect them. Here is the instruction: https://www.jetbrains.com/help/clion/quick-tutorial-on-configuring-clion-on-windows.html#Cygwin.
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/cygdrive/c/Users/HP/AppData/Local/Temp/cmake_check_environment/_build11050481726926874357/CMakeFiles/CMakeOutput.log".
Error code: 1
Then all this error are printed
Have you installed all required packages mentioned in https://www.jetbrains.com/help/clion/quick-tutorial-on-configuring-clion-on-windows.html#Cygwin?