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?
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!
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"
I tried your recomendation:
"studio.exe" process starts after these commands for a second. There are no messages in the console. There are no build results in the folder, just empty make file.
If i use "eclipsec.exe":
And makefile still empty.
in PATH:
update:
if i use "eclipsec.exe":
PATH in project config, if i open workspace, which created from CLI:
C:RT-ThreadStudio;${studio_install_path}${project_gener_relative_path}/builder;${studio_install_path}${project_gener_relative_path}/mdk
PATH in project config, if i rebuild project from IDE:
Now IDE knows about PATH of make.exe.
@aatermer The log indicates that the Clean2 rule is not found. The Clean2 rule is defined in the makefile.targets file. The makefile file refers to makefile.targets through include
@rcp Please, look at update. Now makefile is correct, but using CLI rewrite PATH in wrong value and i get error:
Cannot run program "make": Launching failed
Error: Program "make" not found in PATH
@aatermer