Hi,
Attached are the different steps to compile a project from scratch without a GUI in a container.
I built a Docker with MCUXpresso and after cloning this project I want to compile automatically like I was a developer.
For compilation, I have found this article , and this, or this.
For linkage problem, I have found this article.
Everything works!
Step 1: How solve linkage problem.
You need to install the SDK package. Otherwise copy to your container.
docker cp </path/mcuxpresso/sdk/uc.zip> <container_name:/root/mcuxpresso/02/SDKPackages/>
Step 2 : Import a SDK example hello world project
Step 3 : Copy this project in your docker.
docker cp <</source/path>> <<container_name:/destination/path>>
Step 4 : Update path of IDE.
export IDE=/usr/local/mcuxpressoide/ide/mcuxpressoide
Step 5 : Compile.
$IDE -nosplash
--launcher.suppressErrors
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-data \path\to\workspace
-import {[uri:/]/path\to\project}
-build {project_name[/build_config] | all}
-cleanBuild {project_name[/build_config] | all}
Step 6 : Finished.