Hello,
I wanted to start the SampleBrowser of Ogre, but the following error occurs. What can I do?
[SOLVED] OGRE EXCEPTION
-
- Goblin
- Posts: 268
- Joined: Mon Feb 04, 2013 1:34 pm
[SOLVED] OGRE EXCEPTION
You do not have the required permissions to view the files attached to this post.
Last edited by Ogra on Tue Mar 12, 2013 3:49 pm, edited 1 time in total.
-
- Greenskin
- Posts: 138
- Joined: Wed May 05, 2010 3:36 pm
- x 6
Re: OGRE EXCEPTION
This means that the Plugin_CgProgramManager_d.DLL file could not be found in your path or the current directory. Note that this plugin also requires the CG.DLL library to exist in the path or the current directory as well.
-
- Goblin
- Posts: 268
- Joined: Mon Feb 04, 2013 1:34 pm
Re: OGRE EXCEPTION
I have set now put the path into Project->Properties ->additional Librarypaths-> "C:\VisualStudio2005\libs\build_2005\bin\debug"
But it is still the same error.
But it is still the same error.
-
- OGRE Moderator
- Posts: 7157
- Joined: Sun Jan 25, 2004 7:35 am
- Location: Brisbane, Australia
- x 535
Re: OGRE EXCEPTION
The additional library paths setting is for finding compile time libraries (*.lib files). If this is set wrong you get a linking error when you build.
The error you got is a runtime error. This is from ogre trying to fine a runtime dll file plugin. In this case it would be Plugin_CgProgramManager_d.DLL as crancran mentioned. This file should be in the same directory as your executable, the ogremain_d.dll, etc.
Plugins can also be searched for in other directories by editing the plugins.cfg (release) and plugins_d.cfg (debug) files. It contains a search directory. The line that sets it normally looks like:
Changing that lets you have your executable and ogremain in one directory, then all the plugins (renderer, scene manager, cg, particles, etc) in a subdirectory.
But in this case I'm guessing either you don't have Plugin_CgProgramManager_d.DLL in the same directory as your executable, or your working directory is set wrong. In visual studio you need to go to project properties / debugging / working directory and set it to $(TargetDir)
To test if that's the problem, use explorer to find the executable for you project and double click on it. If it works, then the working directory in visual studio was the problem.
(Looks like you are using vs2005. That one and vs2008 used to forget the working directory a lot, it was stored in a different file that used your pc and user name, every time you move the project to a different computer it would lose the working directory)
The error you got is a runtime error. This is from ogre trying to fine a runtime dll file plugin. In this case it would be Plugin_CgProgramManager_d.DLL as crancran mentioned. This file should be in the same directory as your executable, the ogremain_d.dll, etc.
Plugins can also be searched for in other directories by editing the plugins.cfg (release) and plugins_d.cfg (debug) files. It contains a search directory. The line that sets it normally looks like:
Code: Select all
PluginFolder=.
But in this case I'm guessing either you don't have Plugin_CgProgramManager_d.DLL in the same directory as your executable, or your working directory is set wrong. In visual studio you need to go to project properties / debugging / working directory and set it to $(TargetDir)
To test if that's the problem, use explorer to find the executable for you project and double click on it. If it works, then the working directory in visual studio was the problem.
(Looks like you are using vs2005. That one and vs2008 used to forget the working directory a lot, it was stored in a different file that used your pc and user name, every time you move the project to a different computer it would lose the working directory)