Build error with VS2005

viblo2

03-06-2006 16:21:26

I get this error when I try to compile pyogre with cegui:

Error 1 error C2664: 'CEGUI::OgreCEGUIRenderer::OgreCEGUIRenderer(Ogre::RenderWindow *,Ogre::uint8,bool,CEGUI::uint,Ogre::SceneManager *)' : cannot convert parameter 5 from 'Ogre::SceneType' to 'Ogre::SceneManager *' c:\Progr\pyogre\pyogre_source\pyogre\cegui\cegui_wrap.cxx 3783

This is with latest version from SVN, 328. I use Visual Studio 2005.

Istari

03-06-2006 17:47:12

After changing the following lines of cegui.i:#ifdef WRAP_OGRE_GUIRENDERER
// Needed from Ogre core bindings
#define _OgreExport
#define OGRE_AUTO_SHARED_MUTEX
%include ogre_attributes.i
%include ogre_typemaps.i
%import "OgreRenderTarget.i"
%import OgreRenderWindow.i
%import OgreSceneManager.i
#endif
To this:#ifdef WRAP_OGRE_GUIRENDERER
// Needed from Ogre core bindings
#define _OgreExport
#define OGRE_AUTO_SHARED_MUTEX
%{
#include "OgrePrerequisites.h"
%}
%include ogre_attributes.i
%include ogre_typemaps.i
%import "OgreRenderTarget.i"
%import OgreRenderWindow.i
%import OgreSceneManager.i
#endif
The cegui wrapper compiles fine for me.

What branch are you checking out? trunk or dev-1.2.0?
What version of swig are you using?

viblo2

03-06-2006 19:59:41

I thought about dev - trunk first, but then when I checkout I completley forget it and took trunk because that was what the instructions on the wiki said. I tried to checkout dev after your post, and after some struggle with visual studio it worked! :)