[RESOLVED] Access to STM32CubeIDE env vars when building from the command line.
I have a script in my project that generates code prior to a build that works great. However, I'm trying to set up command line builds and I'm getting an error when I build from the command line:
Contains: Variable references empty selection: ${project_loc}
I tried to set this variable in the shell prior to building but no luck.
I can probably work around this in one of two ways:
- Hard code the path to the project (but this may break build on other machines)
- Disable the script and call it on the command line (but this break the build in the IDE)
Command line:
/opt/st/stm32cubeide_1.4.0/stm32cubeide --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -cleanBuild my_project/Release -data ~/stm32/workspace -D CMD_LINE_VAR
If anyone has any suggestions that would be great.
Builder setup:
Project -> Properties -> Builders -> Main