Ogre with new CEGUI 0.7

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

djphilipe
Quite a regular
Quite a regular
Posts: 48
Joined: Thu Aug 23, 2007 10:15
Location: Slovakia
Contact:

Ogre with new CEGUI 0.7

Postby djphilipe » Fri Sep 25, 2009 07:31

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Ogre with new CEGUI 0.7

Postby CrazyEddie » Fri Sep 25, 2009 08:50

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.

djphilipe
Quite a regular
Quite a regular
Posts: 48
Joined: Thu Aug 23, 2007 10:15
Location: Slovakia
Contact:

Re: Ogre with new CEGUI 0.7

Postby djphilipe » Wed Nov 18, 2009 08:40

Hi,
is somewhere any step-by-step way (manual) how integrate from version 0.6.x to 0.7.1?
Thanks

User avatar
Jabberwocky
Quite a regular
Quite a regular
Posts: 86
Joined: Wed Oct 31, 2007 18:16
Location: Canada
Contact:

Re: Ogre with new CEGUI 0.7

Postby Jabberwocky » Wed Nov 18, 2009 09:21

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.
The Salvation Prophecy
Space Combat. Planet Exploration. Strategic Domination.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests