klonyyy / MCUViewer

Real-time embedded variable & trace viewer
GNU General Public License v3.0
824 stars 82 forks source link

MCUViewer: error while loading shared libraries: libjlinkarm.so.7: cannot open shared object file: No such file or directory #83

Closed margce closed 2 months ago

margce commented 2 months ago

Version/Branch:

1.0.0

Operating system:

Fedora 40

Debug probe:

ST-LinkV2

Details:

I'm running Fedora 40, so I downloaded the rpm package from the release page and install it. When trying to launch the app I get nothing so decided to investigate launching from the terminal.

Installed package details

Installed Packages
Name         : mcuviewer
Version      : 1.0.0
Release      : 1
Architecture : x86_64
Size         : 29 M
Source       : mcuviewer-1.0.0-1.src.rpm
Repository   : @System
From repo    : @commandline
Summary      : MCUViewer built using CMake
License      : unknown
Description  : DESCRIPTION
             : ===========
             :
             : This is an installer created using CPack (https://cmake.org). No additional installation instructions provided.

When launching the app I get

➜  MCUViewer ./MCUViewer
./MCUViewer: error while loading shared libraries: libjlinkarm.so.7: cannot open shared object file: No such file or directory

Even though the jlink library has been installed here

➜  MCUViewer ll /usr/local/lib
Permissions Size User Date Modified Name
.rwxr-xr-x@  25M root 17 Sep 05:22  libjlinkarm.so.7

Any reason why the app would not detect the lib it installed?

Thanks

Screenshots/Video:

No response

adailtonjn68 commented 2 months ago

I don't know if it helps. I installed the software locally and had this problem. I solved by setting the environment variable LD_LIBRARY_PATH to the directory where libjlinkarm.so.7 was. I did export LD_LIBRARY_PATH=/path/to/libjlink:$LD_LIBRARY_PATH If it does solve for you, you can insert it in your .bashrc file without the export.

klonyyy commented 2 months ago

Hello, it seems that Fedora does not use the default /usr/local/lib directory when it looks for installed libraries. Could you try running the attached installer (it should add a *.conf file to /etc/ld.so.conf.d/ and run sudo ldconfig to update cache)? MCUViewer-1.0.0-Linux.zip

margce commented 2 months ago

Hello, it seems that Fedora does not use the default /usr/local/lib directory when it looks for installed libraries. Could you try running the attached installer (it should add a *.conf file to /etc/ld.so.conf.d/ and run sudo ldconfig to update cache)? MCUViewer-1.0.0-Linux.zip

hey thanks! for the update, I installed the new rpm and it worked without having to update the cache. Though I haven't try running any debugging session. I'll report if something else fails.

klonyyy commented 2 months ago

I'll close this thread for now. Please reopen on problems related to installation. Otherwise just open another issue.