I just installed Code::Blocks with MinGW on my Win7 64 Box and tried to compile a CMake generated project (namely openclonk).
-------------- Clean: all in clonk ---------------
Cleaned "clonk - all"
-------------- Build: all in clonk ---------------
Using makefile: Makefile
Execution of 'make.exe -s -f Makefile all' in 'C:\Users\Julius\Documents\Visual Studio 2010\Projects\OpenClonk' failed.
Nothing to be done.
If I run
C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe -f "C:/Users/Julius/Documents/Visual Studio 2010/Projects/OpenClonk/Makefile" clonk
from cmd it starts to compile...
Obviously, I'd like to know how to fix compiling from C::B.
Code::Blocks is executing this:
and you are manually executing this:
The main difference here is most likely the make target. Re-configure Code::Blocks to make the
clonk
target instead of the defaultall
. Or, add a target that looks likeall: clonk
to the top of your makefile (assuming there isn't already anall
target defined).If that doesn't solve your problem, you might also want to investigate whether calling
make.exe
instead ofmingw32-make.exe
is making a difference (you can reconfigure this in your project settings).