CLion Installation: Cmake compilers not found, GDB not found

前端 未结 3 1381
忘掉有多难
忘掉有多难 2021-02-05 09:38

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

3条回答
  •  广开言路
    2021-02-05 09:53

    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.

提交回复
热议问题