无法加载动态库/usr/lib/OGRE/RenderSystem\u GL 我试图在C++中运行一个程序,但是我得到这个错误: terminate called after throwing an instance of 'Ogre::InternalErrorException' what(): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/lib/OGRE/RenderSystem_GL. System Error: /usr/lib/OGRE/RenderSystem_GL.so: cannot open shared object file: No such file or directory

无法加载动态库/usr/lib/OGRE/RenderSystem\u GL 我试图在C++中运行一个程序,但是我得到这个错误: terminate called after throwing an instance of 'Ogre::InternalErrorException' what(): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/lib/OGRE/RenderSystem_GL. System Error: /usr/lib/OGRE/RenderSystem_GL.so: cannot open shared object file: No such file or directory,c++,ubuntu,ogre,C++,Ubuntu,Ogre,我已经安装了食人魔库,但这个问题仍然存在。我需要在哪个软件包上安装任何帮助以消除此错误?我使用的是Ubuntu 14.04。尝试ldd您的\u二进制文件,看看它是否能找到所需的动态链接库。Ubuntu提供的OGRE库安装在/usr/lib/x86\u 64-linux-gnu/OGRE-1.9.0/(或-1.8.0)中,而不是/usr/lib/OGRE/中 您的程序正在尝试使用绝对路径执行dlopen或类似操作。如果无法修改程序以使其使用新路径(或者,更好的是,它让链接器决定要使用的路径),最简

我已经安装了食人魔库,但这个问题仍然存在。我需要在哪个软件包上安装任何帮助以消除此错误?我使用的是Ubuntu 14.04。

尝试ldd您的\u二进制文件,看看它是否能找到所需的动态链接库。

Ubuntu提供的OGRE库安装在
/usr/lib/x86\u 64-linux-gnu/OGRE-1.9.0/
(或
-1.8.0
)中,而不是
/usr/lib/OGRE/

您的程序正在尝试使用绝对路径执行
dlopen
或类似操作。如果无法修改程序以使其使用新路径(或者,更好的是,它让链接器决定要使用的路径),最简单的解决方案是创建一个符号链接:

sudo ln -s /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/ /usr/lib/OGRE/

这给了我一个有很多库名的输出。这对我有什么帮助?可能会有像libogre这样的名字。您可以使用locate或find来搜索文件系统中是否有这样的文件。