I’ve I’ve been trying to to get OGRE to install and I’m running into issues.
http://www.ogre3d.org/forums/viewtopic.php?f=1&t=56799
I been trying to build funguloids from source using code blocks… I had a bunch of problems gettting lua run, but I I downloaded the latest source and tried these install instructions…
http://forums.verlihub-project.org/viewtopic.php?f=26&t=4244
It worked an got the program to compile. Now I throwing an exceptions.
So now this is what I’m getting:
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type ‘DefaultSceneManager’ registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type ‘ParticleSystem’ registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
DDS codec registering
FreeImage version: 3.10.0
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type ‘Entity’ registered.
MovableObjectFactory for type ‘Light’ registered.
MovableObjectFactory for type ‘BillboardSet’ registered.
MovableObjectFactory for type ‘ManualObject’ registered.
MovableObjectFactory for type ‘BillboardChain’ registered.
MovableObjectFactory for type ‘RibbonTrail’ registered.
${datarootdir}/funguloids/plugins.cfg not found, automatic plugin loading disabled.
*-*-* OGRE Initialising
*-*-* Version 1.7.2 (Cthugha)
An exception has occured: OGRE EXCEPTION(6:FileNotFoundException): ‘${datarootdir}/funguloids/plugins.cfg’ file not found! in ConfigFile::load at /home/jonas/dev/ogre/ogre_src_v1-7-2/OgreMain/src/OgreConfigFile.cpp (line 83)codeBlockFungoliods: /usr/local/include/OGRE/OgreSharedPtr.h:160: T* Ogre::SharedPtr<T>::operator->() const [with T = Ogre::Material]: Assertion `pRep’ failed.
Aborted
Process returned 134 (0×86) execution time : 1.239 s
Press ENTER to continue.
Ok…. I think I need to back up here….. I need to create a simple Ogre project from the code ::blocks IDE to see if I could get that to run…(it didn’t). I was getting this…..
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type ‘DefaultSceneManager’ registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type ‘ParticleSystem’ registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
DDS codec registering
FreeImage version: 3.10.0
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type ‘Entity’ registered.
MovableObjectFactory for type ‘Light’ registered.
MovableObjectFactory for type ‘BillboardSet’ registered.
MovableObjectFactory for type ‘ManualObject’ registered.
MovableObjectFactory for type ‘BillboardChain’ registered.
MovableObjectFactory for type ‘RibbonTrail’ registered.
plugins.cfg not found, automatic plugin loading disabled.
*-*-* OGRE Initialising
*-*-* Version 1.7.2 (Cthugha)
An exception has occured: OGRE EXCEPTION(6:FileNotFoundException): ‘resources.cfg’ file not found! in ConfigFile::load at /home/jonas/dev/ogre/OgreMain/src/OgreConfigFile.cpp (line 83)*-*-* OGRE Shutdown
Unregistering ResourceManager for type Compositor
Unregistering ResourceManager for type Font
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type HighLevelGpuProgram
Unregistering ResourceManager for type Material
Process returned 0 (0×0) execution time : 0.064 s
Press ENTER to continue.
There also a log that’s created “Ogre.log” that tells you a little more about whats going on.
08:34:19: Creating resource group General
08:34:19: Creating resource group Internal
08:34:19: Creating resource group Autodetect
08:34:19: SceneManagerFactory for type ‘DefaultSceneManager’ registered.
08:34:19: Registering ResourceManager for type Material
08:34:19: Registering ResourceManager for type Mesh
08:34:19: Registering ResourceManager for type Skeleton
08:34:19: MovableObjectFactory for type ‘ParticleSystem’ registered.
08:34:19: OverlayElementFactory for type Panel registered.
08:34:19: OverlayElementFactory for type BorderPanel registered.
08:34:19: OverlayElementFactory for type TextArea registered.
08:34:19: Registering ResourceManager for type Font
08:34:19: ArchiveFactory for archive type FileSystem registered.
08:34:19: ArchiveFactory for archive type Zip registered.
08:34:19: DDS codec registering
08:34:19: FreeImage version: 3.10.0
08:34:19: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
08:34:19: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
08:34:19: Registering ResourceManager for type HighLevelGpuProgram
08:34:19: Registering ResourceManager for type Compositor
08:34:19: MovableObjectFactory for type ‘Entity’ registered.
08:34:19: MovableObjectFactory for type ‘Light’ registered.
08:34:19: MovableObjectFactory for type ‘BillboardSet’ registered.
08:34:19: MovableObjectFactory for type ‘ManualObject’ registered.
08:34:19: MovableObjectFactory for type ‘BillboardChain’ registered.
08:34:19: MovableObjectFactory for type ‘RibbonTrail’ registered.
08:34:19: OGRE EXCEPTION(6:FileNotFoundException): ‘plugins.cfg’ file not found! in ConfigFile::load at /home/jonas/dev/ogre/OgreMain/src/OgreConfigFile.cpp (line 83)
08:34:19: plugins.cfg not found, automatic plugin loading disabled.
08:34:19: *-*-* OGRE Initialising
08:34:19: *-*-* Version 1.7.2 (Cthugha)
08:34:19: OGRE EXCEPTION(6:FileNotFoundException): ‘resources.cfg’ file not found! in ConfigFile::load at /home/jonas/dev/ogre/OgreMain/src/OgreConfigFile.cpp (line 83)
08:34:19: *-*-* OGRE Shutdown
08:34:19: Unregistering ResourceManager for type Compositor
08:34:19: Unregistering ResourceManager for type Font
08:34:19: Unregistering ResourceManager for type Skeleton
08:34:19: Unregistering ResourceManager for type Mesh
08:34:19: Unregistering ResourceManager for type HighLevelGpuProgram
08:34:19: Unregistering ResourceManager for type Material
So apparently code blocks sample app executable is looking for “resources.cfg” and “plugins.cfg” to do it’s thing..
Ok….
Now.. I’m finding some interesting info here:
http://ubuntuforums.org/showthread.php?t=1148570
For me,it gets interesting around steps 5.3 and 5.4
I created a plugins.cfg file per the CalderCoalson’s suggestions where the executable was build containing:
PluginFolder=/usr/local/lib/OGRE
Plugin=RenderSystem_GL.so
Plugin=Plugin_OctreeSceneManager.so
Looking at the output from the Ogre.log that seems to have done something… The next issue it appears to be having is.
08:58:59: OGRE EXCEPTION(6:FileNotFoundException): ‘resources.cfg’ file not found! in ConfigFile::load at /home/jonas/dev/ogre/OgreMain/src/OgreConfigFile.cpp (line 83)
Looking at section 5.2
5.4 Using the Example Application [OPTIONAL]
If you are doing the tutorials or otherwise basing your project on the Example Application framework included with the OGRE source, you must copy the Samples/Media, and the Samples/Common/include/* from your OGRE source directory, (~/.ogre/ogre), to your project directory and your project include directory respectively. Finally, you should also copy Samples/Common/bin/resources.cfg file to your project’s build directory and replace all ‘../../’s with the appropriate path to your media directory. Also remember to add
Code:
#include “ExampleApplication.h”
to your main Ogre file, and you should hopefully be good to go.
So…. this is what I got for resources.cfg on my system..
Doing a search this is what I have so far.
jonas@jonas5:~$ locate resources.cfg
/home/jonas/dev/ogre/CMake/Templates/resources.cfg.in
/home/jonas/dev/ogre/SDK/OSX/Xcode Templates/Xcode/Project Templates/Ogre/Mac OS X/Resources/resources.cfg
/home/jonas/dev/ogre/SDK/OSX/Xcode Templates/Xcode/Project Templates/Ogre/iPhone OS/Resources/resources.cfg
/home/jonas/dev/ogre/Tools/MaterialEditor/bin/Debug/resources.cfg
/home/jonas/dev/ogre/Tools/MaterialEditor/bin/Release/resources.cfg
/home/jonas/dev/ogre_build/bin/resources.cfg
/home/jonas/dev/ogre_build/inst/bin/release/resources.cfg
/home/jonas/funguloids/bin/resources.cfg
/home/jonas/funguloids/bin/resources.cfg.in
/home/jonas/junktestOgre/Junktest/resources.cfg
/usr/local/share/OGRE/resources.cfg
/usr/local/share/funguloids/resources.cfg
jonas@jonas5:~$
Hmm…
Lots of interesting stuff here.
jonas@jonas5:~$ cd /usr/local/share/OGRE/
jonas@jonas5:/usr/local/share/OGRE$ ls
docs media plugins.cfg plugins_d.cfg quakemap.cfg quakemap_d.cfg resources.cfg resources_d.cfg samples.cfg samples_d.cfg
jonas@jonas5:/usr/local/share/OGRE$
this is what’s inside resources.cfg
# Resources required by the sample browser and most samples.
[Essential]
Zip=/usr/local/share/OGRE/media/packs/SdkTrays.zip
FileSystem=/usr/local/share/OGRE/media/thumbnails
# Common sample resources needed by many of the samples.
# Rarely used resources should be separately loaded by the
# samples which require them.
[Popular]
FileSystem=/usr/local/share/OGRE/media/fonts
FileSystem=/usr/local/share/OGRE/media/materials/programs
FileSystem=/usr/local/share/OGRE/media/materials/scripts
FileSystem=/usr/local/share/OGRE/media/materials/textures
FileSystem=/usr/local/share/OGRE/media/materials/textures/nvidia
FileSystem=/usr/local/share/OGRE/media/models
FileSystem=/usr/local/share/OGRE/media/particle
FileSystem=/usr/local/share/OGRE/media/DeferredShadingMedia
FileSystem=/usr/local/share/OGRE/media/PCZAppMedia
FileSystem=/usr/local/share/OGRE/media/RTShaderLib
FileSystem=/usr/local/share/OGRE/media/RTShaderLib/materials
Zip=/usr/local/share/OGRE/media/packs/cubemap.zip
Zip=/usr/local/share/OGRE/media/packs/cubemapsJS.zip
Zip=/usr/local/share/OGRE/media/packs/dragon.zip
Zip=/usr/local/share/OGRE/media/packs/fresneldemo.zip
Zip=/usr/local/share/OGRE/media/packs/ogretestmap.zip
Zip=/usr/local/share/OGRE/media/packs/ogredance.zip
Zip=/usr/local/share/OGRE/media/packs/Sinbad.zip
Zip=/usr/local/share/OGRE/media/packs/skybox.zip
[General]
FileSystem=/usr/local/share/OGRE/media
seems like I should copy ” /usr/local/share/OGRE/resources.cfg” to my executable directory and lets see what happens
Hot darn…. It actually managed to do something..
Below is what showed up on my screen after I selected Opengl.. Apparently this data is preserved somewhere… (I guess I figure that out sooner or later.

I head read somewhere to turn the full screen off for a while, so you can close things down more easily so that’s what I’m doing now…
So after I hit accept, I’m getting a blank window titled “Ogre Render Window” for a few seconds and then it closes down…
Now, I’m not sure if it’s doing what its supposed to be doing or if I just moved to the next error… Something tells me I find my answer in this Ogre.log:
Looking through the log there seems to be all kinds of complaints going on, but the issue at the moment that appears to be the show stopper is this:
09:54:54: Parsing script RTShaderSystem.material
09:54:54: Compiler error: unknown error in RTShaderSystem.material(23): token “rtshader_system” is not recognized
09:54:54: Compiler error: unknown error in RTShaderSystem.material(52): token “rtshader_system” is not recognized
09:54:54: Compiler error: unknown error in RTShaderSystem.material(81): token “rtshader_system” is not recognized
09:54:54: Compiler error: unknown error in RTShaderSystem.material(110): token “rtshader_system” is not recognized
09:54:54: Compiler error: unknown error in RTShaderSystem.material(146): token “rtshader_system” is not recognized
09:54:54: Compiler error: unknown error in RTShaderSystem.material(81): token “rtshader_system” is not recognized
09:54:54: Compiler error: unknown error in RTShaderSystem.material(162): token “rtshader_system” is not recognized
09:54:54: Compiler error: unknown error in RTShaderSystem.material(81): token “rtshader_system” is not recognized
09:54:54: Compiler error: unknown error in RTShaderSystem.material(110): token “rtshader_system” is not recognized
09:54:54: Parsing script RomanBath.material
09:54:54: Parsing script Sinbad.material
09:54:54: Parsing script emitted_emitter.particle
09:54:54: OGRE EXCEPTION(2:InvalidParametersException): Cannot find requested emitter type. in ParticleSystemManager::_createEmitter at /home/jonas/dev/ogre/OgreMain/src/OgreParticleSystemManager.cpp (line 353)
09:54:54: DefaultWorkQueue(‘Root’) shutting down on thread main.
09:54:54: *-*-* OGRE Shutdown
09:54:54: Unregistering ResourceManager for type Compositor
09:54:54: Unregistering ResourceManager for type Font
09:54:54: Unregistering ResourceManager for type Skeleton
I little googling brings up this.
http://www.ogre3d.org/forums/viewtopic.php?p=291118&highlight=
Ok… basically missing a plugin…
I’m wonder what’s in:
/usr/local/share/OGRE/plugins.cfg
# Defines plugins to load
# Define plugin folder
PluginFolder=/usr/local/lib/OGRE
# Define plugins
# Plugin=RenderSystem_Direct3D9
# Plugin=RenderSystem_Direct3D10
# Plugin=RenderSystem_Direct3D11
Plugin=RenderSystem_GL
# Plugin=RenderSystem_GLES
Plugin=Plugin_ParticleFX
Plugin=Plugin_BSPSceneManager
Plugin=Plugin_CgProgramManager
Plugin=Plugin_PCZSceneManager
Plugin=Plugin_OctreeZone
Plugin=Plugin_OctreeSceneManager
Soo… I’m thinking the initial install took care of this stuff.. So.. I’m going to copy this over to where my codes blocks executable got created and see what happens..
Ohhh yea… This is what pops up..
.
Now we’re making some progress… Although it appears that inside Ogre.log there is still some complaining going on..
10:36:13: Texture: cloudy_noon_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:36:13: Texture: cloudy_noon_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:36:13: *** Initializing OIS ***
10:36:13: OGRE EXCEPTION(5:ItemIdentityException): OverlayElement with name Core/AverageFps not found. in OverlayManager::getOverlayElementImpl at /home/jonas/dev/ogre/OgreMain/src/OgreOverlayManager.cpp (line 621)
10:36:13: OGRE EXCEPTION(5:ItemIdentityException): OverlayElement with name Core/AverageFps not found. in OverlayManager::getOverlayElementImpl at /home/jonas/dev/ogre/OgreMain/src/OgreOverlayManager.cpp (line 621)
10:36:13: OGRE EXCEPTION(5:ItemIdentityException): OverlayElement with name Core/AverageFps not found. in OverlayManager::getOverlayElementImpl at /home/jonas/dev/ogre/OgreMain/src/OgreOverlayManager.cpp (line 621)
More googling:
http://www.ogre3d.org/forums/viewtopic.php?p=213956
Apparently I need “OgreCore.zip” in my resource path. Uhhh.. when I search for this thinks are not looking good here..
jonas@jonas5:/usr/local/share/OGRE$ locate OgreCore.zip
/home/jonas/dev/ogre/SDK/OSX/Xcode Templates/Xcode/Project Templates/Ogre/Mac OS X/Resources/media/packs/OgreCore.zip
/home/jonas/dev/ogre/SDK/OSX/Xcode Templates/Xcode/Project Templates/Ogre/iPhone OS/Resources/media/packs/OgreCore.zip
jonas@jonas5:/usr/local/share/OGRE$
It look like I should have a OgreCore.zip for linux or something…
Time for some more googling..
This looks interesting:
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=58301
Seems to be missing..
suppossedly I can get get this here.
-
wget http://ogre.svn.sourceforge.net/viewvc/ogre/branches/v1-6/Samples/Media/packs/OgreCore.zip
For now, I’m just going to put that next to my code blocks generated executable and adjust my plugins infile and see what happens. (I’m created ogre from source using ogre_src_v1-7-2.tar.bz2 so I’m not sure what will happen here.)
Scratch that last dumb idea… Bizarre things happened an my system locked up.
Worth a try to see if I can find that zip file in a later version.
Oh.. I ran across this.
| OGRE no longer uses Subversion for our core repository. We have as moved to a |
| 2 |
Mercurial repository hosted at http://bitbucket.org/sinbad/ogre/ |
| 3 |
|
| 4 |
Please download Mercurial and clone our repository from there if you wish to |
| 5 |
stay up to date! |
A little more googling and I found this:
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=55233&p=375332
Ok… so for now, I sort got the demo to work… I think I have idea how to proceed with my hack up funguloids…
Perhaps someone will find my trials and tribulations of use.
Tags: Uncategorized // Add Comment »