Page 1 of 1

Cannot initialise - no render system has been selected

Posted: Thu Apr 17, 2014 7:56 am
by 4z3rty
Hi,

I'm on Archlinux and I have succeeded to compile my first Ogre project.
But when I'm want to execute it I have this error :

Code: Select all

OGRE EXCEPTION(1:InvalidStateException): Cannot initialise - no render system has been selected. in Root::initialise at /build/ogre/src/ogre/OgreMain/src/OgreRoot.cpp (line 650)
I searched on the internet and I found that is a problem with the ogre.cfg or plugins.cfg but I can't fix it...

Here are my files :
ogre.cfg

Code: Select all

Render System=Direct3D11 Rendering Subsystem
plugins.cfg

Code: Select all

# Defines plugins to load

# Define plugin folder

PluginFolder=/usr/lib/OGRE
Plugin=RenderSystem_GL

# Define plugins
#Plugin=RenderSystem_Direct3D7
#Plugin=RenderSystem_Direct3D9
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_BSPSceneManager
Plugin=Plugin_OctreeSceneManager
Plugin=Plugin_CgProgramManager
Thank

Re: Cannot initialise - no render system has been selected

Posted: Thu Apr 17, 2014 8:02 am
by Zonder
Are you showing the config screen in your program? if so just pick open gl.

Or change the ogre.cfg to use open gl but I am afraid I can't remember the exact text off the top of my head try "OpenGL Rendering Subsystem'.

Re: Cannot initialise - no render system has been selected

Posted: Thu Apr 17, 2014 11:49 am
by 4z3rty
I changed my ogre.cfg by :

Code: Select all

Render System=OpenGL Rendering Subsystem

[OpenGL Rendering Subsystem]
Display Frequency=50 MHz
FSAA=0
Full Screen=No
RTT Preferred Mode=FBO
VSync=No
Video Mode= 800 x  600
sRGB Gamma Conversion=No
And for more information, here is my Ogre.log

Code: Select all

12:42:26: Creating resource group General
12:42:26: Creating resource group Internal
12:42:26: Creating resource group Autodetect
12:42:26: SceneManagerFactory for type 'DefaultSceneManager' registered.
12:42:26: Registering ResourceManager for type Material
12:42:26: Registering ResourceManager for type Mesh
12:42:26: Registering ResourceManager for type Skeleton
12:42:26: MovableObjectFactory for type 'ParticleSystem' registered.
12:42:26: ArchiveFactory for archive type FileSystem registered.
12:42:26: ArchiveFactory for archive type Zip registered.
12:42:26: ArchiveFactory for archive type EmbeddedZip registered.
12:42:26: DDS codec registering
12:42:26: FreeImage version: 3.16.0
12:42:26: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
12:42:26: 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,rgb,rgba,bw,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti,webp,jxr,wdp,hdp
12:42:26: Registering ResourceManager for type HighLevelGpuProgram
12:42:26: Registering ResourceManager for type Compositor
12:42:26: MovableObjectFactory for type 'Entity' registered.
12:42:26: MovableObjectFactory for type 'Light' registered.
12:42:26: MovableObjectFactory for type 'BillboardSet' registered.
12:42:26: MovableObjectFactory for type 'ManualObject' registered.
12:42:26: MovableObjectFactory for type 'BillboardChain' registered.
12:42:26: MovableObjectFactory for type 'RibbonTrail' registered.
12:42:26: Loading library /usr/lib/OGRE/RenderSystem_GL
12:42:26: Installing plugin: GL RenderSystem
12:42:26: OpenGL Rendering Subsystem created.
12:42:26: Plugin successfully installed
12:42:26: Loading library /usr/lib/OGRE/Plugin_ParticleFX
12:42:26: Installing plugin: ParticleFX
12:42:26: Particle Emitter Type 'Point' registered
12:42:26: Particle Emitter Type 'Box' registered
12:42:26: Particle Emitter Type 'Ellipsoid' registered
12:42:26: Particle Emitter Type 'Cylinder' registered
12:42:26: Particle Emitter Type 'Ring' registered
12:42:26: Particle Emitter Type 'HollowEllipsoid' registered
12:42:26: Particle Affector Type 'LinearForce' registered
12:42:26: Particle Affector Type 'ColourFader' registered
12:42:26: Particle Affector Type 'ColourFader2' registered
12:42:26: Particle Affector Type 'ColourImage' registered
12:42:26: Particle Affector Type 'ColourInterpolator' registered
12:42:26: Particle Affector Type 'Scaler' registered
12:42:26: Particle Affector Type 'Rotator' registered
12:42:26: Particle Affector Type 'DirectionRandomiser' registered
12:42:26: Particle Affector Type 'DeflectorPlane' registered
12:42:26: Plugin successfully installed
12:42:26: Loading library /usr/lib/OGRE/Plugin_OctreeSceneManager
12:42:26: Installing plugin: Octree Scene Manager
12:42:26: Plugin successfully installed
12:42:26: *-*-* OGRE Initialising
12:42:26: *-*-* Version 1.9.0 (Ghadamon)
12:42:26: OGRE EXCEPTION(1:InvalidStateException): Cannot initialise - no render system has been selected. in Root::initialise at /build/ogre/src/ogre/OgreMain/src/OgreRoot.cpp (line 650)
12:42:26: *-*-* OGRE Shutdown
12:42:26: Unregistering ResourceManager for type Compositor
12:42:26: Unregistering ResourceManager for type Skeleton
12:42:26: Unregistering ResourceManager for type Mesh
12:42:26: Unregistering ResourceManager for type HighLevelGpuProgram
12:42:26: Uninstalling plugin: Octree Scene Manager
12:42:26: Plugin successfully uninstalled
12:42:26: Unloading library /usr/lib/OGRE/Plugin_OctreeSceneManager
12:42:26: Uninstalling plugin: ParticleFX
12:42:26: Plugin successfully uninstalled
12:42:26: Unloading library /usr/lib/OGRE/Plugin_ParticleFX
12:42:26: Uninstalling plugin: GL RenderSystem
12:42:26: ******************************
*** Stopping GLX Subsystem ***
******************************
12:42:26: Plugin successfully uninstalled
12:42:26: Unloading library /usr/lib/OGRE/RenderSystem_GL
12:42:26: Unregistering ResourceManager for type Material

Re: Cannot initialise - no render system has been selected

Posted: Wed Apr 23, 2014 8:57 am
by Zonder
12:42:26: Installing plugin: GL RenderSystem

Looks like it should be "GL RenderSystem"

Re: Cannot initialise - no render system has been selected

Posted: Wed Apr 23, 2014 2:58 pm
by holocronweaver
No, 'OpenGL Rendering Subsystem' is correct.

Since you are on Linux, you must use GL or GL3+. DirectX is a proprietary M$ API.

Try moving your ogre.cfg to a backup file and generating a new one from scratch using the config dialog. This will ensure there are no hidden characters causing trouble.

Also, be sure you are editing the correct ogre.cfg - there is one in ~/.ogre/Ghadamon/ogre.cfg, but you likely have a separate one for your project. A good test is to run the SampleBrowser, which will use the config in ~/.ogre/... and see if that works.