STM32CubeMX 6.16.1 linux installer issuers (Bazzite/Fedora 43)
I'm running Bazzite (Fedora 43) and tried to install STM32CubeMX on a Fedora distrobox and was met with some issues.
First, the installer is unable use /bin/chmod, this is fixed by switching out the installer's `jre\bin` directory for OpenJDK.
Second, if you run as a normal user it fails with:
com.izforge.izpack.api.exception.IzPackException: An error occured in java.lang.Thread.run() at Thread.java:1583 in com.izforge.izpack.installer.unpacker.UnpackerBase.run() at UnpackerBase.java:241 in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:319 Caused by: com.izforge.izpack.api.exception.InstallerException: File execution failed in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:299 in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:483 in com.izforge.izpack.installer.unpacker.UnpackerBase.executeFiles() at UnpackerBase.java:959
This is fixed by running the installer via sudo.
This is what I did to get it running in distrobox:
- Installing STM32CubeMX on linux
- Unpack the .zip file.
- Install it:
cd distrobox create --name stm32cubemx distrobox enter stm32cubemx sudo dnf install java-latest-openjdk.x86_64 mv jre jre.st mkdir jre ln -s /usr/bin jre/bin chmod +x SetupSTM32CubeMX-6.16.1 sudo ./SetupSTM32CubeMX-6.16.1
- Create a desktop file (in the container)
cd /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/ sudo nano STM32CubeMX.desktop
- Add the content as follows:
[Desktop Entry] Version=6.16.1 Name=STM32CubeMX-6.16.1 Comment=STM32CubeMX Application for STM32 development Exec=/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX Icon=stm32cubemx Terminal=false Type=Application Categories=Development;
- Export the desktop file (in the container)
distrobox-export --app /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX.desktop
- Then run the app from the host's app launcher, e.g. KRunner. It will appear as STM32CubeMX (on stm32cubemx)
With this, I'm able to run 6.16.1, but the MCU selector, board selected and various other progress dialog windows are just empty with a white background. It does load up existing projects however.
Other users report that 6.16 has rendering issues on Fedora 43.
I was able to install CubeMX 6.15 from the Baazar store (flatpak) just fine, and that doesn't have any issues rendering the MCU selector or other dialog windows.
