User forums > Help

Building project on command line with dependencies

(1/3) > >>

rgleim:
I posted this question on Stackoverflow also: https://stackoverflow.com/questions/77106256/dependencies-not-being-built-from-command-line-execution-with-codeblocks

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?

stahta01:
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.

rgleim:
Attached are screen shots of some of my settings

rgleim:
more

rgleim:
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?

Navigation

[0] Message Index

[#] Next page

Go to full version