gpt4 book ai didi

c++ - Ogre SDK 出现异常

转载 作者:行者123 更新时间:2023-11-28 08:03:06 27 4
gpt4 key购买 nike

我已经在我的 PC 上安装了 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)

如有任何帮助,我们将不胜感激。

提前致谢。

最佳答案

创建中央 Ogre3D 类后 Ogre::Root ,你需要传递一个*.CFG文件的名字,里面包含了所有要加载的Ogre插件,比如上面提到的D3D9 Render System。

默认情况下,该文件需要位于您的 *.EXE 旁边并且应该如下所示(以最小形式,其中仅加载 D3D9 渲染系统并且匹配的 DLL 文件位于此 CFG 文件旁边):

# Defines plugins to load

# Define plugin folder
PluginFolder=.

# Define plugins
Plugin=RenderSystem_Direct3D9

有关更多信息,请查看此 section in the Ogre3D tutorial 1

关于c++ - Ogre SDK 出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10875544/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com