Setting the search path environment variable for shared libraries

Steve the Fiddle stevethefiddle at gmail.com
Sun Jun 28 20:25:26 BST 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20200628/fad8d416/attachment.htm>


More information about the KDevelop mailing list