cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer rocky8 linux launch issue

re24
Associate

After Install launching returns CubeProgrammer_API is missing. Please try reinstalling or check you java architecture. Ive seen some other forum posts with this issue and tried to fix the java version to no avail.

Current java version is java-1.8.0-openjdk.x86_64

Ive also tried a liberica version  bellsoft-java8-full.x86_64

console output of error, I can see the files that were failed to load in the file system so I believe it was installed properly

Native code library failed to load:
java.lang.UnsatisfiedLinkError: Unable to load library '/home/eastwor/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/../lib/libCubeProgrammer_API.so': Native library (home/eastwor/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/../lib/libCubeProgrammer_API.so) not found in resource path ([file:/home/eastwor/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32CubeProgrammerLauncher])

 System I'm running on is rocky8 Linux x86_64

1 ACCEPTED SOLUTION

Accepted Solutions
re24
Associate

Downloading an older version worked, using 2.9

Error occurred with latest version 2.16

View solution in original post

7 REPLIES 7
re24
Associate

Downloading an older version worked, using 2.9

Error occurred with latest version 2.16

Thanks, the newest version also didn't work for me

JackNystrom
Associate

Hi, I'm having the exact same issue with version 2.19.0. I don't want to go all the way back to 2.9 just to fix this bug... that seems ridiculous. Any ideas? The file does exist:

$ file /home/jack/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/../lib/libCubeProgrammer_API.so
/home/jack/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/../lib/libCubeProgrammer_API.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=36dd2b6c24e03c862e99d1e36a91a1dbc2b9a5b7, not stripped

The error seems to indicate it's checking `home/jack/...` rather than `/home/jack/...`, maybe that's the issue? Either way, I'd love if anyone knows a fix for this. Thanks in advance

JackNystrom
Associate

Can confirm, STM32CubeProgrammer version 2.9 does not have this issue. 🤦

(This is not a long term solution...)

Hello @JackNystrom

Could you test with v2.15 ? I'm suspecting that this is coming from the migration to QT6.  You need to check if your OS supports it.

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi Aziz,

I have just confirmed that v2.15 works just fine. Would you like me to also try 2.16 or is that enough information? I am running NixOS 24.05 and I am 100% sure it supports QT6 in general, but I'm not sure that should even matter as stm32cube programmer ships with its own qt dynamic libraries. Thanks,

Jack

Hello Jack,

Yes it does matter since the framework itself dropped support for old OS (And by extension it's libraries that are used and included in the STM32CubeProgrammer package). You can refer to this link for more info.

With that being said, I strongly suggest to switch to an STM32CubeProgrammer officially supported OS (You can find the list in STM32CubeProgrammer user manual page 12). I'm sure this will eliminate any similar issues you're encountering.

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.