我已经在我的PC上设置了Ogre和dependencies,并下载了一些Ogre应用程序。当我启动我刚下载的项目的新exe文件时,它产生了以下错误:
05:37:59: Loading library C:/OgreSDK_vc9_v1-7-1/bin/debug\RenderSystem_Direct3D9_d
05:37:59: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library C :/OgreSDK_vc9_v1-7-1/bin/debug\RenderSystem_Direct3D9_d. System Error: The specified module could not be found.
in DynLib::load at ..\..\..\..\OgreMain\src\OgreDynLib.cpp (line 91)任何帮助都将不胜感激。
提前谢谢。
发布于 2013-01-05 06:11:17
在创建中央Ogre3D类Ogre::Root时,您需要传递一个*.CFG文件的名称,该文件包含所有要加载的Ogre插件,比如上面提到的D3D9呈现系统。
默认情况下,该文件需要位于*.EXE旁边,并且应如下所示(以最小形式显示,其中仅加载D3D9渲染系统,并且匹配的DLL文件位于此CFG文件旁边):
# Defines plugins to load
# Define plugin folder
PluginFolder=.
# Define plugins
Plugin=RenderSystem_Direct3D9有关更多信息,请查看此section in the Ogre3D tutorial 1
发布于 2017-08-06 22:42:59
我花了一段时间才弄明白。缺少dll (RenderSystem_Direct3D9_d),因为您没有构建它-它是OGRE.sln中具有相同名称(RenderSystem_Direct3D9)的项目
我使用的是OGRE 2.1,所以我遗漏的dll是RenderSystem_Direct3D11_d.dll,而不是您的RenderSystem_Direct3D9_d.dll,但修复方法是类似的,只需构建该dll的项目,如下图所示。

无论如何,作为一个初学者,为了避免任何麻烦,只要点击F6就可以构建整个解决方案。
https://stackoverflow.com/questions/10875544
复制相似问题