Hi, and thanks for testing out the latest SVN
I had not tested the static build so far, so I guess I should not be surprised you've found issue(s) there. The one flagged up in the build message is a missing extern declaration of a 'getWindowRendererModule' function for the static build. I will affect fixes later today so that the static config will at least build cleanly.
The second error; the one for the build for your app, is due to changes we are making to the way you create those initial objects. You no longer use the c++ new operator to create the renderer objects, but rather use one of the static 'create' members of the OgreRenderer class:
Code: Select all
OgreRenderer& OgreRenderer::create();
OgreRenderer& OgreRenderer::create(Ogre::RenderTarget& target);
Currently the CEGUI::System can still be created by the new operator, though this will change before the final 0.7.0 release. The main reason for these changes is because it means the object creation happens in the CEGUI modules, which is better for us from a memory allocation point of view, it also allows us more freedom to more freely change object sizes on point releases while maintaining binary compatibility.
Another change you need to be aware of as an Ogre user, is that CEGUI::ResourceProvider objects are no longer created automatically by the renderer module. I'm sure we can all agree that data loading has little to do with rendering imagery. So while the old arrangement was convenient, it was not logical from a design standpoint, hence the change. This means that to continue to use the Ogre based resource system (as I'm sure you will) you now need to either explicitly create an instance of the CEGUI::OgreResourceProvider and pass it to the system constructor, or use one of the premade 'bootstrap' ogre-specific convenience functions that create the resource provicer and CEGUI system for you too:
Code: Select all
OgreRenderer& OgreRenderer::bootstrapSystem();
OgreRenderer& OgreRenderer::bootstrapSystem(Ogre::RenderTarget& target);
These functions will create and initialise the following objects for you:
- CEGUI::OgreRenderer
- CEGUI::OgreResourceProvider
- CEGUI::System
Info about other breaking changes and issues can be found here:
Changes and Porting Tips for 0.7.0 (all subject to further change, of course
).
Hope this helps