View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008203CMakeCMakepublic2008-11-30 16:402009-01-09 18:04
ReporterMatt Williams 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSWindowsOS VersionXP
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008203: Windows Code::Blocks generator incompatible with C::B 8.02
DescriptionIf "CodeBlocks - MinGW Makefiles" is selected as the generator in Windows, the produced codeblocks project files don't work. Even a very simple project will fail in CodeBlocks with:

mingw32-make.exe: C:/Documents\ and\ Settings/matt/My\ Documents/cbtest/Makefile: No such file or directory
mingw32-make.exe: *** No rule to make target `C:/Documents\ and\ Settings/matt/My\ Documents/cbtest/Makefile'. Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings

As far as I can tell, this is due to the paths being escaped incorrectly. In the .cbp file, the Build Command is set to:

C:/MinGW/bin/mingw32-make.exe -f "C:/Documents\ and\ Settings/matt/My\ Documents/cbtest/Makefile" all

but since the path is quoted, there's no need for the space-escapes. Therefore, the command should be simply:

C:/MinGW/bin/mingw32-make.exe -f "C:/Documents and Settings/matt/My Documents/cbtest/Makefile" all

That is, there is no need for the '\' before spaces in the path.
Additional InformationCode::Blocks 8.02
MinGW 5.1.4
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0014379)
bluescarni (reporter)
2008-12-17 03:10

I can confirm this with CMake 2.6.2 and CodeBlocks 8.02. Moving the project from dir "c:\Documents and Settings\....\foo" to "c:\foo" fixed the issue.
(0014502)
Alex Neundorf (developer)
2009-01-09 18:04

Fixed in cvs trunk, should be in cmake 2.6.3.

Alex

 Issue History
Date Modified Username Field Change
2008-11-30 16:40 Matt Williams New Issue
2008-12-15 10:46 Bill Hoffman Status new => assigned
2008-12-15 10:46 Bill Hoffman Assigned To => Alex Neundorf
2008-12-17 03:10 bluescarni Note Added: 0014379
2009-01-09 18:04 Alex Neundorf Note Added: 0014502
2009-01-09 18:04 Alex Neundorf Status assigned => closed
2009-01-09 18:04 Alex Neundorf Resolution open => fixed
2009-01-09 18:04 Alex Neundorf Description Updated


Copyright © 2000 - 2018 MantisBT Team