MantisBT - CMake
View Issue Details
0013689CMakeCMakepublic2012-11-16 13:362016-06-10 14:31
Michael Broutin 
Alex Neundorf 
normalminoralways
closedmoved 
Eclipse CDT MingwWindows 764 bits
CMake 2.8.9 
 
0013689: Some targets cannot be built with Eclipse CDT
Hi,
I'm not sure it is actually a bug, but when I generate a project for Eclipse CDT+Mingw, I get several build targets, for example :
[Build] in [Targets]/[exe] TestBug
[Clean] in [Targets]/[exe] TestBug
[exe] TestBug
[exe] TestBug/fast
... (other targets I don't use)

In that list, the 3 and 4 compile as expected, but the 1 and 2 seem to be unable to find mingw32-make.exe...

Here is the build log :



19:32:41 **** Build of project testbug@build ****
"C:\\Program Files (x86)\\CMake 2.8\\bin\\cmake.exe" -E chdir E:/Prog/bug_cdt/build "C:/Program Files (x86)/CMake 2.8/bin/cmake.exe" -P CMakeFiles/TestBug.dir/cmake_clean.cmake
Cannot run program "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe": Nom de répertoire non valide.


Error: Program "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" not found in PATH
PATH=[E:\Prog\ImageMagick;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Graphviz2.26.3\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\TortoiseHg\;C:\Program Files\doxygen\bin;e:\prog\libs\qt\bin;C:\Program Files\7-Zip;e:\MinGW\bin;C:\Program Files (x86)\CMake 2.8\bin;e:\python;E:\Prog\Groovy-2.0.5\bin]

19:32:41 Build Finished (took 278ms)

Uncompress the zip
Generate the project for Eclipse CDT 4 with Mingw
In eclipse, import the project
Right click on the project/Make Targets/Build...
Choose the first option ([Build] in [Targets]/[exe] TestBug)
Mingw is installed correctly and mingw\bin is in my PATH.
No tags attached.
zip testBug.zip (478) 2012-11-16 13:36
https://public.kitware.com/Bug/file/4567/testBug.zip
Issue History
2012-11-16 13:36Michael BroutinNew Issue
2012-11-16 13:36Michael BroutinFile Added: testBug.zip
2012-11-16 14:43Alex NeundorfAssigned To => Alex Neundorf
2012-11-16 14:43Alex NeundorfStatusnew => assigned
2012-11-29 03:46Alex NeundorfNote Added: 0031759
2012-11-29 14:08Michael BroutinNote Added: 0031763
2016-06-10 14:28Kitware RobotNote Added: 0042150
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0031759)
Alex Neundorf   
2012-11-29 03:46   
It complains that it cannot run CMake:
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe": Nom de répertoire non valide

Is this path correct ? Can you run this command on a Windows shell ?

Does it also work in a mingw shell ?
(0031763)
Michael Broutin   
2012-11-29 14:08   
Yes, yes and yes :)
(0042150)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.