User forums > Help

Building project on command line with dependencies

(1/3) > >>

I posted this question on Stackoverflow also:

This is all within a Windows environment.

I have a main project that depends on 2 libraries (e.g. lib.a). When I rebuild through the Code::Blocks IDE, it cleans both library projects and the main project as expected. It then builds all 3 projects, libraries first, as expected with no issues.

I try to do the same thing from the command line:

--- Code: ---"C:\Program Files (x86)\STW\CodeBlocks\codeblocks.exe" src\emb\bwk\vehicle_monitor\pjt\vehicle_monitor.cbp --target="Release" --rebuild
--- End code ---

But it doesn't clean or build the library projects like it does in the IDE, and therefore produces errors:

--- Code: ---tricore-g++.exe: error: ..\..\..\..\ext\micro_cdr\result\libmicro_cdr.a: No such file or directory
tricore-g++.exe: error: ..\..\..\..\ext\micro_dds\result\libmicro_dds.a: No such file or directory
Process terminated with status 1 (1 minute(s), 6 second(s))
2 error(s), 39 warning(s) (1 minute(s), 6 second(s))
--- End code ---

I tried all command line options and I don't see any log files being produced either. I see them if I launch the IDE, but not when I just keep it to the command line.

--- Code: ---C:\>"C:\Program Files (x86)\STW\CodeBlocks\codeblocks.exe" "Z:\workspace\autoyard\src\emb\bwk\vehicle_monitor\pjt\vehicle_monitor.cbp" --target="Release" --rebuild --log-to-file --debug-log-to-file /d --verbose
--- End code ---

Is there something I'm missing on the command line?

Do you have external dependency files setup under

Project -> Properties
Tab: Build targets
Button: dependencies

I am guessing the answer is yes; but, it is best to make sure.

Attached are screen shots of some of my settings


External Dependencies attached.  Not really sure how to use this.  It works as I expect when I build inside the IDE.  Why would it be different on the command line?


[0] Message Index

[#] Next page

Go to full version