CLion Installation: Cmake compilers not found, GDB

2019-03-18 05:00发布

I'm switching from VS to CLion and they said I needed to install Cygwin and CMake. I then installed both of them. I tried use bundled, but CLion still gives me these errors make: not found C Compiler: not found C++ Compiler: not found GDB: not found.

I have installed CMake under the path C:\Users\Gaga\Downloads\cmake-3.4.1 but I don't see a cmake.exe, the closest thing is cmake.cxx.

Without these I'm not able to compile anything, please help

enter image description here

标签: clion
3条回答
欢心
2楼-- · 2019-03-18 05:40

The workaround would be to use MinGW. If you download it from the website it should come with cmake, and take care of the errors.

http://mingw.org/

When extract it and go to the installer you should check something like gcc and then from the top left corner something like 'install packages'

Be sure not to accidentally download the source, which I did, which would lead you toward this error: CLion: CMake Errors Source directory does not exist

Edit: So over a year later, I've learned a little more about Cygwin and mingw beyond what the internet says. CLion needs a "Unix-like" environment. If you use CLion on MacOS or a Linux it's already Unix based. Anything that is "POSIX" compliant will work. CygWin is a terminal emulator for windows where Unix commands like mkdir work. MinGW is something similar but not posix. Comes with GCC tho. I'm still a noob.

查看更多
闹够了就滚
3楼-- · 2019-03-18 05:49

I had the same problem. While installing cygwin, need to select the packages of cmake, gcc, gdb Got the answer from the below link.

Select Packages while installing cygwin

After the installation go to the configuration page and select the cygwin directory. CLion will identify the configuration and you are done...

查看更多
Melony?
4楼-- · 2019-03-18 06:04

In the "Use specified" field I put C:\cygwin64\bin\cmake.exe your path may be different. Just ensure you have CMake, Make, gdb and gcc installed already in Cygwin (using the Cygwin setup.exe not via the CMake website) but I believe Clion checks if you have them installed after inputting the path. enter image description here

查看更多
登录 后发表回答