Setting the search path environment variable for shared libraries
Steve the Fiddle <[email protected]> Sun, 28 Jun 2020 20:25:26 +0100
| Newsgroups | gmane.comp.kde.users.kdevelop |
|---|---|
| Message-ID | <CABp83eD8uHMBeAkYAb7rZEfUi4Spwrw-rt_7A-nh_5GWSVwuKA@mail.gmail.com> |
I have build Audacity (https://github.com/audacity/audacity) and it runs correctly when launched from the command line, but I'm getting an error when launching from kdevelop: "error while loading shared libraries: libwx_baseu_xml-3.1.so.3: cannot open shared object file: No such file or directory" wxWidgets is installed at "/opt/wxWidgets/lib/", and this is set in "~/.bashrc" with: "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/wxWidgets/lib/" It appears that kdevelop ignores LD_LIBRARY_PATH, so how do I tell it where wxWidgets is so that I can launch Audacity from kdevelop? I can work around the problem by using a shell script to launch Audacity, but that doesn't work for a Debug Launch. How do I tell kdevelop where to find wxWidgets so that I can launch and debug from within kdevelop? Thanks, Steve