Oddness after cvs update.

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
grizzley90
Gnome
Posts: 318
Joined: Wed Jan 18, 2006 7:22 pm
Location: Montreal, Canada

Oddness after cvs update.

Post by grizzley90 »

Whats wrong with this code? I updated to the latest cvs version of ogre.

Code: Select all

 virtual void chooseSceneManager(void)
    {
        // Get the SceneManager, in this case a generic one
        mSceneMgr = mRoot->getSceneManager(ST_GENERIC);
    }
The error is:
1>c:\programming\mmtest\mmtest\include\BaseApplication.h(124) : error C2664: 'Ogre::Root::getSceneManager' : cannot convert parameter 1 from 'Ogre::SceneType' to 'const Ogre::String &'
1> Reason: cannot convert from 'Ogre::SceneType' to 'const Ogre::String'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Ok I've been having this error everywhere with my old apps. Is there something new to ogre that needs a change to this?
User avatar
pjcast
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2543
Joined: Fri Oct 24, 2003 2:53 am
Location: San Diego, Ca
x 2

Post by pjcast »

I answered that quetion here:
http://www.wreckedgames.com/forum/viewtopic.php?t=130

It is an API change in scenemanager selections.
Have a question about Input? Video? WGE? Come on over... http://www.wreckedgames.com/forum/
User avatar
pjcast
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2543
Joined: Fri Oct 24, 2003 2:53 am
Location: San Diego, Ca
x 2

Post by pjcast »

Have a question about Input? Video? WGE? Come on over... http://www.wreckedgames.com/forum/
grizzley90
Gnome
Posts: 318
Joined: Wed Jan 18, 2006 7:22 pm
Location: Montreal, Canada

Post by grizzley90 »

It was suppose to notify me about the post on your forum pjcast??? I had dagon, and problem fixed. Thanks. I better notify wallaber, because the cvs version i got from him had its own example application, it would be better if he uses the one in the ogrenew/commons. as he already has a directory setup in his requirements.
User avatar
pjcast
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2543
Joined: Fri Oct 24, 2003 2:53 am
Location: San Diego, Ca
x 2

Post by pjcast »

Sorry about that, my SMTP server is offline (as it was bouncing over a 1GBs of Spam email from spammers to other servers) - and will be till I have the time to configure it properly :( (and figure out SMTP settings, not exactly easy for me as a Linux SysAdmin n00b).
Have a question about Input? Video? WGE? Come on over... http://www.wreckedgames.com/forum/
grizzley90
Gnome
Posts: 318
Joined: Wed Jan 18, 2006 7:22 pm
Location: Montreal, Canada

Post by grizzley90 »

Its ok good luck with that. But you wouldn't know how to solve the outstream error? Should I try building cegui and compiling ois directly with cegui or should i never mind about it? FFOgre is the only ois demo that wont compile.
1>------ Build started: Project: Demo_FFOgre, Configuration: Release Win32 ------
1>Compiling...
1>FFgui.cpp
1>c:\programming\ogre\ogrenew\dependencies\include\cegui\CEGUIFont.h(1037) : error C2061: syntax error : identifier 'OutStream'
1>c:\programming\ois\includes\OISEffect.h(174) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\demos\ogre\FFgui.cpp(198) : error C2259: 'CEGUI::ListboxTextItem' : cannot instantiate abstract class
1> due to following members:
1> 'void CEGUI::ListboxItem::draw(CEGUI::RenderCache &,const CEGUI::Rect &,float,float,const CEGUI::Rect *) const' : is abstract
1> C:\Programming\Ogre\ogrenew\Dependencies\include\CEGUI\elements/CEGUIListboxItem.h(389) : see declaration of 'CEGUI::ListboxItem::draw'
1>..\..\demos\ogre\FFgui.cpp(406) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
1>..\..\demos\ogre\FFgui.cpp(423) : error C2259: 'CEGUI::ListboxTextItem' : cannot instantiate abstract class
1> due to following members:
1> 'void CEGUI::ListboxItem::draw(CEGUI::RenderCache &,const CEGUI::Rect &,float,float,const CEGUI::Rect *) const' : is abstract
1> C:\Programming\Ogre\ogrenew\Dependencies\include\CEGUI\elements/CEGUIListboxItem.h(389) : see declaration of 'CEGUI::ListboxItem::draw'
1>Build Time 0:04
1>Build log was saved at "file://c:\Programming\ois\Win32\DemoFFOgre\Release\BuildLog.htm"
1>Demo_FFOgre - 3 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
User avatar
pjcast
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2543
Joined: Fri Oct 24, 2003 2:53 am
Location: San Diego, Ca
x 2

Post by pjcast »

You can ignore it if it is just FFOgre, that is only a small FF Demo/Test anyway.
Have a question about Input? Video? WGE? Come on over... http://www.wreckedgames.com/forum/