Help Getting Started

lopemanc

06-03-2008 13:32:10

Hi All,

Just getting started here. Trying to follow the tutorial at

http://www.ogre3d.org/wiki/index.php/Mo ... Tutorial_0

Have the error below when running first program.

I had downloaded the prebuilt MOGRE into the ogreSDK directories.

14:04:14: Loading library .\RenderSystem_Direct3D9_d.dll
14:04:14: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .\RenderSystem_Direct3D9_d.dll. System Error: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

in DynLib::load at ..\src\OgreDynLib.cpp (line 80)


Tried playing with Plugins.cfg. changed from current directory to ogre SDK debug. Same error different path. Current file below

# Defines plugins to load

# Define plugin folder
PluginFolder=.

# Define plugins
Plugin=RenderSystem_Direct3D9_d
Plugin=RenderSystem_GL_d
Plugin=Plugin_ParticleFX_d
Plugin=Plugin_BSPSceneManager_d
Plugin=Plugin_OctreeSceneManager_d
Plugin=Plugin_CgProgramManager_d

Also tried moving these dlls to application directory.

All help is appreciated. Maybe there are dlls outside the patch that this dll tries to load and that is the actual failure?

Thanks,

Chris Crying or Very sad
_________________
Thanks,

Chris Lopeman
Object Link Inc

ProfesorX

06-03-2008 20:44:07

Are you running your program inside the IDE? If so, you need to set your working directory to where the .dll and .cfg are located.

raygeee

14-03-2008 15:34:22

I made the experience that most problems with this exception are caused because of mixing debug and release dlls up. In my first try I overwrote some debug dlls with release dlls because of wrong references in my project. Not only the plugin dlls, but also the mogre dlls. That's why it says reinstall might help.

The exception says that it found a dll, but that it's not the correct one. If it was a missing dll it would say something like: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library...