我在我的电脑上设置了Ogre和依赖项,并下载了一些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)
任何帮助将不胜感激。
提前致谢。
答案 0 :(得分:1)
创建中央Ogre3D类Ogre::Root后,您需要传递包含所有要加载的Ogre插件的* .CFG文件的名称,例如上面提到的D3D9渲染系统。
默认情况下,该文件必须位于* .EXE旁边,并且应该如下所示(以最小形式加载D3D9渲染系统并且匹配的DLL文件位于此CFG文件旁边):
# Defines plugins to load
# Define plugin folder
PluginFolder=.
# Define plugins
Plugin=RenderSystem_Direct3D9
有关详细信息,请查看此section in the Ogre3D tutorial 1
答案 1 :(得分:0)