2020-06-07 11:38 AM
I ran into the well known problem with libncurses.5. My distro doesn't supply this old version of libncurses. Instead my distro supplies arm-none-eabi tools linked against libncurses.6.
I have two options:
Could not determine GDB version using command: /home/ariser/st/stm32cubeide_1.3.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.0.0.201904181610/tools/bin/arm-none-eabi-gdb --version
/home/ariser/st/stm32cubeide_1.3.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.0.0.201904181610/tools/bin/arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
How do I fix that problem?
2020-06-07 12:12 PM
You can change the compiler by adding the path to the desired compiler in the PATH settings and remove the path to STM32CubeIDE's default compiler.
Project properties -> C/C++ Build -> Environment -> change PATH variable.
2020-06-08 01:26 PM
Path changed.
Error stays the same.
I restarted the program, I even did a reboot. Nothing changed.
What can I do next?
2020-06-08 01:35 PM
Works for me. Maybe it's hard coded into your PATH variable on startup. Do "which arm-none-eabi-gdb" and ensure nothing is found.
2020-06-08 02:09 PM
which arm-none-eabi-gdb
brings only /bin/arm-none-eabi-gdb
I think it must be hard coded into STM32CubeIDE or something. I could delete the broken gdb and set a symlink to the working one. But that is really bad practice.
2020-06-11 08:06 AM
I finally removed the directory /home/ariser/st/stm32cubeide_1.3.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.0.0.201904181610/tools/bin and added a symlink to /bin. Error vanished as expected. But I'm dissatified that changing PATH from menu didn't have any effect so far. I think I can expect further problems associated with settings.
Best solution:
the arm-tools should be linked against libncurses6
and
the settings problems should be fixed
Where can I address that? Is there a bugtracking for the IDE?
2024-11-23 10:27 AM
Thanks for your workaround. Amazingly this method still works after 4 years. And yes this issue has not been fixed yet...