OgreConsole

Problems building or running the engine, queries about how to use features etc.
Post Reply
dodesheide
Gnoblar
Posts: 1
Joined: Tue Nov 18, 2014 8:16 pm

OgreConsole

Post by dodesheide »

Hey there,

i am a newbie to ogre and c++. Therefore i have some questions.
I am trying to include the OgreConsole (http://www.ogre3d.org/tikiwiki/OgreCons ... e=Cookbook) in the tutorial 6 application(http://www.ogre3d.org/tikiwiki/tiki-ind ... =Tutorials).

But i have some problems:

Code: Select all

Ogre::OverlaySystem* mOverlaySystem = new Ogre::OverlaySystem();
	mSceneMgr->addRenderQueueListener(mOverlaySystem);
	new OgreConsole;
	OgreConsole::getSingleton().init(mRoot);
	OgreConsole::getSingleton().setVisible(true);
	OgreConsole::getSingleton().print("test");
	OgreConsole::getSingleton().print("test");
I get a Error for

Code: Select all

new OgreConsole;
A object from class "OgreConsole" is not legal. Function "Ogre::LogListener::messagedLogged"(pure virtual) needs to be overwritten
I am using Ogre SDK 1.9 and Visual Studio 2013.

Thanks
amartin
Halfling
Posts: 87
Joined: Wed Aug 14, 2013 6:55 am
Location: Norway
x 13

Re: OgreConsole

Post by amartin »

Unless I'm horribly mistaken it means you need to make a class inherit from OgreConsole and then instatiate that class after you've implemented the method.
scrawl
OGRE Expert User
OGRE Expert User
Posts: 1119
Joined: Sat Jan 01, 2011 7:57 pm
x 216

Re: OgreConsole

Post by scrawl »

That class does include a messageLogged function. My guess would be that its signature no longer matches the one in Ogre::LogListener, which was updated at some point in a later release of Ogre. To make OgreConsole compatible with that new version you need to change the messageLogged function signature.
Post Reply