Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: albertolp on May 07, 2010, 07:47:37 pm
-
Im trying to compile using c::b and autotools, but its not going good...
Ive got my in myproject/myproject.cbp, the sources it has to compile are in myproject/src and myproject/test
I went to project properties and check "this is a custom Makefile"
but when i try to compile it says:
make: *** No rule to make target `Debug'. Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
-
You can do either of the below
1. Change Code::Blocks configuration to match the makefile
2. Change the makefile to match Code::Blocks
I find it easier to change the makefile; but, since you are using the autotools this might not be easy.
What is the correct makefile target to be called for building?
Tim S.
-
myproject/Makefile build the entire project
-
I can not help you without getting real answers; I suggest you read about makefile organization; you need to understand what is a makefile target.
http://en.wikipedia.org/wiki/Makefile
Tim S.
PS: Full Compile Logging might help you to understand what C::B is doing.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
-
the target is all
and its the first target in my Makefile
Sorry, i misread you there :)
-
the target is all
and its the first target in my Makefile
Sorry, i misread you there :)
Rename the CB target to "all" from "release" or "debug"; and the build should work.
Next is fixing the clean command; I have never fixed it without editing the makefile.
(I believe it is possible; I just never did it.)
The rest uses
Project -> Build Options
Tab "Make" Commands
Please record values before making changing
I have never changed theses settings; not sure best way to change them.
Tim S.
-
If the makefile has no release or debug target, you can just remove the $target from the make-commands (including the clean) command and it should work.