Page 1 of 1

Ogre with new CEGUI 0.7

Posted: Fri Sep 25, 2009 07:31
by djphilipe
Hi,
what is the way to integrate new CEGUI 0.7 into Ogre? Because OgreCEGUIRender has a new name (CEGUIOgreRenderer) etc.
Can somebody write instruction(in steps)?

Thank very much
Filip

Re: Ogre with new CEGUI 0.7

Posted: Fri Sep 25, 2009 08:50
by CrazyEddie
I'll try and do another step-by-step over the weekend, time permitting.

From a project point of view, just link to the lib with the new name. However, there are code changes that need to be made also, these are all described here: http://cegui.org.uk/docs/current/porting6to7.html There's a lot of it, but most of it will not apply to all projects - it all depends on what exactly you're doing and the facilities you're using. Probably the most important thing is to use the CEGUI::OgreRenderer::bootstrapSystem function to replace the current initialisation code to create the renderer and system objects.

Also be aware there a bugs galore in the 0.7.0 release packages, fixes are being made by the hour and we intend to issue 0.7.1 in early October to address the majority of these issues, if you're able to use the stable cegui_mk2/branches/v0-7 code from SVN it's highly recommended (and essential if you need the fixes before we can issue the 0.7.1 update).

CE.

Re: Ogre with new CEGUI 0.7

Posted: Wed Nov 18, 2009 08:40
by djphilipe
Hi,
is somewhere any step-by-step way (manual) how integrate from version 0.6.x to 0.7.1?
Thanks

Re: Ogre with new CEGUI 0.7

Posted: Wed Nov 18, 2009 09:21
by Jabberwocky
Roughly, here's the steps you should follow.

Step 1: Download CEGUI
Download from here

Step 2: Compile CEGUI
If you download a source package, compile it.
Compiling Instructions
This step is not necessary if you downloaded the precompiled SDK.

Step 3: Link to CEGUI
Get your ogre project to link to the new CEGUI libraries you've just finished downloading / compiling.
  • Make sure you've changed your include directory path to point to CEGUI 0.7
  • Make sure you're linking against the new CEGUI_Base.lib and CEGUIOgreRenderer.lib (or CEGUIBase_d.lib and CEGUIOgreRenderer_d.lib if you're using a debug build)
  • If you're using dynamic linking, make sure to replace the old CEGUI*.dll files with the new CEGUI*.dll files.
  • Get rid of the old OgreCEGUIRenderer that came with Ogre. This has been replaced with the CEGUIOgreRenderer that comes with CEGUI. You should no longer include or link to OgreCEGUIRenderer.

Step 4: Port your Project's CEGUI Code
Fix all the compile errors due to the interface changes from 0.6 to 0.7. Follow the porting notes for this.