5 How to build project from console.

Created at 2021-10-01 15:35:50

I try to build my project from console using this manual:
https://gnu-mcu-eclipse.github.io/advanced/headless-builds/

studio.exe --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data .\ -import .\test
studio.exe --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data .\ -build "test/Debug"

It works well with other eclipse IDE.
How to build project from console?

More

Follower
0
Views
103
3 Answers
RTThread_IoT_OS
RTThread_IoT_OS 2021-10-05

Hello aatermer, very sorry for the late reply as we're on the National Holiday from 1st to 7th, the question will soon be checked once the Support Team gets back to work.
Thank you for your understanding and have a great day!

rcp
rcp 2021-10-09

first step: import project
eclipse.exe --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "D:/eclipse/eclipse/workspace" -import "file:/D:/eclipse/eclipse/workspace/test"
second step: build project
eclipse.exe --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "D:/eclipse/eclipse/workspace" -cleanBuild "test"

rcp
rcp 2021-10-09

Do you want to implement some kind of automated build? You can also directly use the make command on the cmd command line shell to build the project, but you must first add the build tool path to the system environment, and then make the makefile in the debug directory of the project

Write Your Answer

Log in to publish your answer.,Click here to log in.

Create
Post

Share