Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake was unable to find a build program corresponding to "Unix Makefiles" [duplicate]

Tags:

brand new to coding. I've installed CLion and I plan to start coding on C++. I've also installed Cygwin. I've researched for the last hour or so on how a compiler works and how to use it, but when I selected the compiler on Clion I get the errors

"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"

and

"CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage"

I've looked for some answers, but they all seem very vague or not quite the answers I'm looking for. I would really appreciate it if somebody could help me as I'm eager to start coding but this is setting me back. Thank you.

like image 501
AcousticScarf Avatar asked Jan 09 '18 01:01

AcousticScarf


1 Answers

At first glance it seems to me you are missing a compiler. Do you have a compiler installed g++ or windows equivelent. You mentioned you are using cygwin if you are planning to use gcc/g++ etc take a look at this tutorial

https://www.jetbrains.com/help/clion/quick-tutorial-on-configuring-clion-on-windows.html

You can install them via Cygwin

like image 102
jstuartmilne Avatar answered Sep 20 '22 13:09

jstuartmilne