Could not load dynamic library

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
aliveoceans
Gnoblar
Posts: 5
Joined: Sun May 10, 2015 6:57 pm

Could not load dynamic library

Post by aliveoceans »

Hi,

Sorry if I am posting this topic in wrong page.

I have downloaded 'OgreSDK_MinGW_v1-8-1' and configured Eclipse Indigo and MinGW 4.8. I am able to build my first sample program with some warning messages like below.
1.
Description Resource Path Location Type
typedef 'boost_static_assert_typedef_224' locally defined but not used [-Wunused-local-typedefs] ogreTest line 125, external location: C:\Downloads\OgreSDK_MinGW_v1-8-1\boost\boost\static_assert.hpp C/C++ Problem
2.
Description Resource Path Location Type
typedef 'boost_concept_check905' locally defined but not used [-Wunused-local-typedefs] ogreTest line 71, external location: C:\Downloads\OgreSDK_MinGW_v1-8-1\boost\boost\concept\detail\general.hpp C/C++ Problem
My issue is when I start generated release or debug application its stop working.
see my code sample and config bellow.
Program

Code: Select all

root = new Ogre::Root("pluginsWindows.cfg");
config file

Code: Select all

# Define plugin folder
PluginFolder=C:\Downloads\OgreSDK_MinGW_v1-8-1\lib\release\opt\

# Define plugind
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_OctreeSceneManager
Plugin=Plugin_CgProgramManager
Error log

Code: Select all

20:16:29: Registering ResourceManager for type HighLevelGpuProgram
20:16:29: Registering ResourceManager for type Compositor
20:16:29: MovableObjectFactory for type 'Entity' registered.
20:16:29: MovableObjectFactory for type 'Light' registered.
20:16:29: MovableObjectFactory for type 'BillboardSet' registered.
20:16:29: MovableObjectFactory for type 'ManualObject' registered.
20:16:29: MovableObjectFactory for type 'BillboardChain' registered.
20:16:29: MovableObjectFactory for type 'RibbonTrail' registered.
20:16:29: Loading library C:\Downloads\OgreSDK_MinGW_v1-8-1\lib\release\opt\RenderSystem_GL
20:16:29: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library C:\Downloads\OgreSDK_MinGW_v1-8-1\lib\release\opt\RenderSystem_GL.  System Error: The specified module could not be found.

 in DynLib::load at ..\..\..\..\..\OgreMain\src\OgreDynLib.cpp (line 93)
after this tried with empty root

Code: Select all

root = new Ogre::Root();
now it was showing "OGRE Engine Rendering Setup" window with dropdown list and other options. but there was no values in dropdown list. so no use of the window but error log showing something like this.

Code: Select all

20:19:43: MovableObjectFactory for type 'ManualObject' registered.
20:19:43: MovableObjectFactory for type 'BillboardChain' registered.
20:19:43: MovableObjectFactory for type 'RibbonTrail' registered.
20:19:43: OGRE EXCEPTION(6:FileNotFoundException): 'plugins.cfg' file not found! in ConfigFile::load at ..\..\..\..\..\OgreMain\src\OgreConfigFile.cpp (line 88)
20:19:43: plugins.cfg not found, automatic plugin loading disabled.
20:19:43: *-*-* OGRE Initialising
20:19:43: *-*-* Version 1.8.1 (Byatis)
20:19:43: OGRE EXCEPTION(6:FileNotFoundException): 'ogre.cfg' file not found! in ConfigFile::load at ..\..\..\..\..\OgreMain\src\OgreConfigFile.cpp (line 88)
I copied 'plugin.cfg' but couldn't found 'Ogre.cfg'. now again application stopped working on start up and showing different log.

Code: Select all

20:24:33: MovableObjectFactory for type 'ManualObject' registered.
20:24:33: MovableObjectFactory for type 'BillboardChain' registered.
20:24:33: MovableObjectFactory for type 'RibbonTrail' registered.
20:24:33: Loading library .\RenderSystem_Direct3D9
20:24:33: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .\RenderSystem_Direct3D9.  System Error: The specified module could not be found.

 in DynLib::load at ..\..\..\..\..\OgreMain\src\OgreDynLib.cpp (line 93)
I am using Windows 7 64 bit with intel HD graphics support.

Here is how I installed Ogre
I just unzipped 'OgreSDK_MinGW_v1-8-1' and configured according to http://www.ogre3d.org/tikiwiki/tiki-ind ... ll_OgreSDK tutorial.

Please help me I am stuck here from 3 days and didn't found any solution. I searched on google and got lots of similar issue but it couldn't help my specific problem.
aliveoceans
Gnoblar
Posts: 5
Joined: Sun May 10, 2015 6:57 pm

Re: Could not load dynamic library

Post by aliveoceans »

Finally got some solution. It was silly mistake. I did not run buildsample.bat. now all plygin .dll files are generated.
Post Reply