App not using proper search path for libraries when launched by NetBeans #6503
-
When I run a simple application that uses a library, Ogre3D in my case, from NetBeans, it breaks with the following message:
The app can not find a library it needs and it looks like it is appending the search path I gave it (usr/local/lib/OGRE) to the installation path of NetBeans (/snap/netbeans/84). When I launch the same app without NetBeans, just by clicking on it, it runs fine. How can I get the app when launched from NetBeans to use the right working directory and search in the propper locations for libs? (Using Ubuntu 22.04LTS, NetBeans 19 with g++ version 11.4.0) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It turned out Snap was the problem. I removed the Netbeans snap installation and downloaded the binary package. That did not present any problems at all. |
Beta Was this translation helpful? Give feedback.
It turned out Snap was the problem. I removed the Netbeans snap installation and downloaded the binary package. That did not present any problems at all.