View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011189CMakeCMakepublic2010-08-30 17:552010-11-09 22:57
ReporterJonathan Sprinkle 
Assigned ToDavid Cole 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.3 
Summary0011189: Eclipse CDT - Unix Makefiles Generator Fails with only Eclipse, CMake installed
DescriptionHi,

Apologies if this duplicates another entry (several are close, but none close enough). I am unable to get the "Eclipse CDT - Unix Makefiles" generator to run when only Eclipse (and CMake) are installed. Below is the output when running "Configure".

------

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: Error required internal CMake variable not set, cmake may be not be built correctly.
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:C:/Users/sprinkle/Desktop/ece373/src/cmake-report-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:C:/Users/sprinkle/Desktop/ece373/src/cmake-report-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
Additional InformationBased on initial looking, it seems that it is also required to have 'make' installed, but this is not specified in any documentation (that I have found, so far). I would gladly add this to the list of things for my students to install before trying to use CMake with Eclipse, but I can't make it work (and I'm a relative power user in CMake...).

The installed software and options on the machine are:
 - Windows 7 (x64)
 - CMake 2.8.2
 - Visual Studio 2008 Pro (x64 tools), no VC tools in the path
 - Eclipse Helios (with nothing in the path)
TagsNo tags attached.
Attached Fileszip file icon cmake-report.zip [^] (877 bytes) 2010-08-30 17:55

 Relationships

  Notes
(0022009)
Bill Hoffman (manager)
2010-08-30 19:12

The tools for VS need to be in the PATH if you want to use VS tools from Make or other tools than the VS IDE. Exactly what setup are you trying to configure?
(0022010)
Jonathan Sprinkle (reporter)
2010-08-30 19:17

Trying to configure Eclipse CDT in any way possible, currently just "Eclipse CDT- - Unix Makefiles".

Although my setup has Visual Studio installed, many students in my course do not. My Visual Studio generator works just fine, even though the "vcvarsall.bat" file is not in my path anywhere. Does this help clarify?
(0022011)
Bill Hoffman (manager)
2010-08-30 19:51

Eclipse CDT - Unix Makefiles requires that there is also a working C++ compiler in the PATH. The visual studio IDE generators do not require this as the IDE has the environment all setup already. You might want to bring this up on the cmake mailing list to see if other Eclipse users could help you.
(0022012)
Jonathan Sprinkle (reporter)
2010-08-30 19:54

Great. Is this any working C++ compiler? Or does it have to be gcc (i.e., able to process Makefiles)? I would presume that the details for the C++ compiler for Eclipse would be common across all Eclipse platforms, so I'm not sure why CMake would need to require this in future releases. I will try to add VC to the path to see if this can be resolved.
(0022015)
Bill Hoffman (manager)
2010-08-30 23:14
edited on: 2010-08-30 23:15

I would recommend you ask this question on the cmake mailing list. I do not use eclipse myself, but eclipse is not a compiler just an IDE. I am not sure if it will work with VS command line tools or not. Can you create a project with eclipse not using CMake and have it compile a simple C++ program?

(0022069)
Bill Hoffman (manager)
2010-09-01 14:00

Alex, any suggestions on how this should work?
(0022070)
Alex Neundorf (developer)
2010-09-01 15:57

When running cmake (for eclipse), it must find a make and a compiler.
MS nmake, GNU make, mingw make should all work. Using cl as compiler should also work.
When running cmake initially, nmake and cl (or make and gcc) should be in the PATH. This is e.g. the case if you run cmake from the shell which is provided with MSVC.

The environment variables from that point should be "cached" in the generated Eclipse project file, so that later on when you build from Eclipse they should be set correctly (as they were when you were running cmake initially).

Alex
(0022294)
David Cole (manager)
2010-09-21 12:07

This seems like it's not really a bug, but just misunderstanding that the compiler and make need to be in the PATH.

Is it still "blocking" for you?

After reading Alex's latest note, and trying with a make and a compiler in the path, will it work for you?
(0022302)
Jonathan Sprinkle (reporter)
2010-09-21 15:26

Hey guys,

Thanks for looking into this; certainly, the problem is in fact that Eclipse does not package a compiler, and so having eclipse C++ ide is not "enough" to build a project from scratch, even without CMake. This isn't really CMake's problem, but it was something that I didn't realize until I created a new VM on windows and installed only eclipse. My regular dev machine has gcc/bash on it, so I only see this when students come into my office.

That said, there may be a good reason to have a FAQ entry about this, I'm happy to help in creating that in any way possible, as I have recently gone through the misunderstanding that eclipse C++ is an IDE like Visual Studio is, but it is actually more of an IDE like emacs or vi is. :)
(0022303)
Alex Neundorf (developer)
2010-09-21 15:39

Please add what you consider necessary to http://www.cmake.org/Wiki/Eclipse_CDT4_Generator [^] . It's a wiki, you can simply get a login.

I'll close this bug report now.

Thanks
Alex
(0022304)
David Cole (manager)
2010-09-21 15:46

Searching for Eclipse on this page:
http://www.cmake.org/Wiki/CMake [^]

Points you to these:
http://www.cmake.org/Wiki/CMake_Generator_Specific_Information [^]
http://www.cmake.org/Wiki/CMake:Eclipse_UNIX_Tutorial [^]

There is already a *ton* of information on the Eclipse_UNIX_Tutorial page (which despite its title also mentions Windows stuff).

Feel free to contribute to the CMake Wiki in any way you see fit to add to the FAQ, or just to make the Eclipse stuff more discoverable if you will.

Our bias is towards those who are already C/C++ developers. It's hard to know exactly how much information to provide to keep everybody happy... Good luck, and thanks for the discussion here on the bug tracker.

Hopefully these notes prove useful to others as well.

I'll resolve this issue as a non-bug.
(0022305)
David Cole (manager)
2010-09-21 15:47

See notes for discussion and reason to close as a non-issue...

 Issue History
Date Modified Username Field Change
2010-08-30 17:55 Jonathan Sprinkle New Issue
2010-08-30 17:55 Jonathan Sprinkle File Added: cmake-report.zip
2010-08-30 19:12 Bill Hoffman Note Added: 0022009
2010-08-30 19:12 Bill Hoffman Status new => assigned
2010-08-30 19:12 Bill Hoffman Assigned To => Bill Hoffman
2010-08-30 19:17 Jonathan Sprinkle Note Added: 0022010
2010-08-30 19:51 Bill Hoffman Note Added: 0022011
2010-08-30 19:54 Jonathan Sprinkle Note Added: 0022012
2010-08-30 23:14 Bill Hoffman Note Added: 0022015
2010-08-30 23:15 Bill Hoffman Note Edited: 0022015
2010-08-31 00:43 Kovarththanan Rajaratnam Category CCMake => CMake
2010-09-01 14:00 Bill Hoffman Note Added: 0022069
2010-09-01 14:00 Bill Hoffman Assigned To Bill Hoffman => Alex Neundorf
2010-09-01 15:57 Alex Neundorf Note Added: 0022070
2010-09-21 12:07 David Cole Note Added: 0022294
2010-09-21 15:26 Jonathan Sprinkle Note Added: 0022302
2010-09-21 15:39 Alex Neundorf Note Added: 0022303
2010-09-21 15:39 Alex Neundorf Status assigned => closed
2010-09-21 15:39 Alex Neundorf Resolution open => no change required
2010-09-21 15:46 David Cole Note Added: 0022304
2010-09-21 15:46 David Cole Status closed => assigned
2010-09-21 15:46 David Cole Assigned To Alex Neundorf => David Cole
2010-09-21 15:47 David Cole Note Added: 0022305
2010-09-21 15:47 David Cole Status assigned => resolved
2010-09-21 15:47 David Cole Fixed in Version => CMake 2.8.3
2010-11-09 22:57 Philip Lowman Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team