2020-10-15 11:43 AM
First of all, I want to ask whether my use case is achievable with headless-build:
I want to build my project (with frequently changing files and directories) from terminal
[In Terminal]: [Project]/Release: make -j12 all
When I change some source files including folders inside src, this command is not working anymore (sources.mk and so on are outdated). That's why I think I have to call headless build to update makefile, sources.mk etc.
Here's my problem when I call headless-build. I had a look on all threads with search hit on headless, but non helped me (if I understood them correctly).
/opt/st/stm32cubeide_1.4.0$ ./headless-build.sh -build LWC_STM -data /home/sl/Programming/STM14/
[-Dosgi.requiredJavaVersion=1.8, -Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.4.0, -Declipse.buildId=Version 1.4.0, -XX:+UseG1GC, -XX:+UseStringDeduplication, -Xms256m, -Xmx1024m, -build, LWC_STM]
Error: Unknown argument: -Dosgi.requiredJavaVersion=1.8
Usage:
-import {[uri:/]/path/to/project}
-importAll {[uri:/]/path/to/projectTreeURI} Import all projects under URI
-build {project_name_reg_ex{/config_reg_ex} | all}
-cleanBuild {project_name_reg_ex{/config_reg_ex} | all}
-no-indexer Disable indexer
-markerType Marker types to fail build on {all | cdt | marker_id}
-printErrorMarkers Print all error markers
-I {include_path} additional include_path to add to tools
-include {include_file} additional include_file to pass to tools
-D {prepoc_define} addition preprocessor defines to pass to the tools
-E {var=value} replace/add value to environment variable when running all tools
-Ea {var=value} append value to environment variable when running all tools
-Ep {var=value} prepend value to environment variable when running all tools
-Er {var} remove/unset the given environment variable
-T {toolid} {optionid=value} replace a tool option value in each configuration built
-Ta {toolid} {optionid=value} append to a tool option value in each configuration built
-Tp {toolid} {optionid=value} prepend to a tool option value in each configuration built
-Tr {toolid} {optionid=value} remove a tool option value in each configuration built
Tool option values are parsed as a string, comma separated list of strings or a boolean based on the option's type
Saving workspace.
Stm32cubeide:
JVM terminated. Exit code=1
/opt/st/stm32cubeide_1.4.0/jre/bin/java
-jar /opt/st/stm32cubeide_1.4.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar
-os linux
-ws gtk
-arch x86_64
-launcher /opt/st/stm32cubeide_1.4.0/stm32cubeide
-name Stm32cubeide
--launcher.library /opt/st/stm32cubeide_1.4.0//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1100.v20190907-0426/eclipse_1801.so
-startup /opt/st/stm32cubeide_1.4.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar
--launcher.overrideVmargs
-exitdata 28044
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.4.0
-Declipse.buildId=Version 1.4.0
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-build LWC_STM
-data /home/sl/Programming/STM14/
-vm /opt/st/stm32cubeide_1.4.0/jre/bin/java
-vmargs
-jar /opt/st/stm32cubeide_1.4.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar
My system: Linux Mint 19.3 Tricia
java --version
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)
which java
/usr/bin/java