Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fail to run cmake with cygwin

Tags:

c++

c

cygwin

cmake

I am having a problem with cmake under cygwin. I installed the cygwin's CMake package AND the normal CMake package (in windows) and every time I run CMake to configure a project it displays the following:

$ 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.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/LordEvil/build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/LordEvil/build/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CMake Error: The source directory "/home/LordEvil/build/tool." does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

What is this problem? Can anyone help to resolve this problem?

like image 634
RenatoUtsch Avatar asked Dec 15 '11 02:12

RenatoUtsch


2 Answers

Found the problem. I needed to install the make, gcc and gcc-g++ packages that come with setup.exe from cygwin.

like image 110
RenatoUtsch Avatar answered Oct 18 '22 12:10

RenatoUtsch


Another reason you might see this message is if Make isn't installed

like image 6
Andy Chase Avatar answered Oct 18 '22 14:10

Andy Chase