I am trying to get Ogre running with different IDE's, to see which one is the most usable to me. I got pretty far with NetBeans and its C/C++ plugin. It is quite easy to set the right include and library paths for the project. It builds nicely, but when I run it from NetBeans it gives the following error:
Code: Select all
Error occurred during execution: InternalErrorException: Could not load dynamic library /snap/netbeans/84/usr/local/lib/OGRE/RenderSystem_GL.
System Error: /snap/netbeans/84/usr/local/lib/OGRE/RenderSystem_GL.so.14.1: cannot open shared object file: No such file or directory in DynLib::load at /home/fedor/projecten/c++/ogre-14.1.0/OgreMain/src/OgreDynLib.cpp (line 136)
When I run the app outside of NetBeans, just clicking on the binary, it works without a problem.
It looks like the NetBeans-launch has the NetBeans install directory as its working dir and appends the library path to it. Where did it pick up this silly idea?