Bug #11624 2007-07-24 09:01
ldindon
(re)Build workspace and custom Makefile
Build or Rebuild workspace does not work for projects that have a custom Makefile.
- Category
- Compiler
- Group
- Status
- Closed
- Close date
- 2013-02-13 05:24
- Assigned to
- biplab
History
I believe that you didn't set the makefile invocation macros properly.
Go to "Project > Build options > Make commands" and change the defaults. As makefiles can accept various parameters, you may need to change the default invocation parameters.
I did it. I am able to clean or build a single project with a custom Makefile. Macros that you are talking about are set correctly.
But when I want to build multiple projects at once using "Build workspace", it does not work.
I didn't get chance to check this bug. But did you change the makefile macros for all the projects concerned.
If possible, please set the macros in each projects and post your feedback. Thanks.
Macros were defined in each projects.
It looks like C::B does not use the provided Makefile.
The command line to build the same file is really not the same while building a project using "Build" and while building the project using "Build workspace".
Everything is missing (defines, includes and flags). The command is very simple compared to the real one.
So the compilation failed for instance on the first #include.
Here is the one of the executed command on "Build workspace":
"mingw32-g++.exe -Wall -g -IL:\4401_CODEC_NetworkModule\cpp\ -ID:\software\dev\MinGW\include -c L:\4401_CODEC_NetworkModule\cpp\pulsar\src\QRF_QuasarIdUpdateRequest.cpp -o obj\Debug\src\QRF_QuasarIdUpdateRequest.o"
I will not paste here the real one because it is really too big!
Note: If the custom Makefile is not there, C::B complains about it and abort the compilation.
Thanks for your feedback. I'll get back to this thread after more testing.
Please try with a nightly build and reopen this bug report, if
needed.