User forums > Help
Compiling C::B with Make under windows?
rickg22:
Hi guys. I was wondering, has any of you had troubles trying to compile code::blocks using the supplied makefile (on windows)?
I get some error about dependency files missing...
--- Code: ---C:\somedir\projects\codeblocks\src>make
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: [depend_tinyXML_DIRS] Error 2 (ignored)
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: [depend_tinyXML_DIRS] Error 2 (ignored)
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: [depend_tinyXML_DIRS] Error 2 (ignored)
Calculating dependencies for sdk\tinyxml\tinystr.cpp...
# 1 "C:\\somedir\\projects\\codeblocks\\src//"
sdk/tinyxml/tinystr.cpp:0: fatal error: opening dependency file
.deps/sdk/tinyxml/tinystr.d: No such file or directory
compilation terminated.
make: *** [.deps/sdk/tinyxml/tinystr.d] Error 1
--- End code ---
Any idea of how to fix this?
takeshimiya:
Yes, I tried various times to compile using make,
but I'm almost sure that C::B outputs bad makefiles.
takeshimiya:
When trying to compile the HEAD from the Makefile.wx2.6 (updated from the CodeBlocks-wx2.6.0.cbp, because the makefile is always outdated in CVS):
I get to the point where codeblocks.dll is generated, and after that:
--- Code: ---Linking static library "src\wxDockit\lib\libwxDockIt.a"...
ranlib src/wxDockit/lib/libwxDockIt.a
Calculating dependencies for "src\app.cpp"...
Calculating dependencies for "src\dlgabout.cpp"...
Calculating dependencies for "src\dlgaboutplugin.cpp"...
Calculating dependencies for "src\environmentsettingsdlg.cpp"...
Calculating dependencies for "src\impexpconfig.cpp"...
Calculating dependencies for "src\main.cpp"...
Calculating dependencies for "src\printdlg.cpp"...
Calculating dependencies for "src\startherepage.cpp"...
Compiling "src\app.cpp"...
Compiling "src\dlgabout.cpp"...
Compiling "src\dlgaboutplugin.cpp"...
Compiling "src\environmentsettingsdlg.cpp"...
Compiling "src\impexpconfig.cpp"...
Compiling "src\main.cpp"...
Compiling "src\printdlg.cpp"...
Compiling "src\startherepage.cpp"...
Compiling resources...
mingw32-make: *** No rule to make target `..\wxDockit\lib\libwxdockit.a', needed by `devel/codeblocks.exe'. Stop.
--- End code ---
But this compiles fine from the CodeBlocks-wx2.6.0.cbp project.
rickg22:
Oh, my error :oops: Forgot to install the EXTRA.ZIP under mingw. The makefiles codeblocks generate use abundantly the "cp" and "rm -f" commands.
grv575:
btw, where are those taken from (rm & cp)? which unix utils project?
Navigation
[0] Message Index
[#] Next page
Go to full version