Build problems in Linux - Bindings giving an error

giardante

28-05-2006 18:49:33

In Ubuntu Dapper I'm getting tons of lines like the following when trying to compile the ogredotnet bindings:

OgreBindings_wrap.cxx: In function 'const Ogre::Light*& std_vector_Sl_Ogre_Light_Sm__Sg__getitem(std::vector<Ogre::Light*, std::allocator<Ogre::Light*> >*, int)':
OgreBindings_wrap.cxx:488: error: invalid initialization of reference of type 'const Ogre::Light*&' from expression of type 'Ogre::Light*'
...
OgreBindings_wrap.cxx:1703: error: initializing argument 2 of 'typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = Ogre::IndexData*, _Alloc = std::allocator<Ogre::IndexData*>]'
OgreBindings_wrap.cxx: In function 'std::vector<Ogre::IndexData*, std::allocator<Ogre::IndexData*> >* std_vector_Sl_Ogre_IndexData_Sm__Sg__Repeat(const Ogre::IndexData*&, int)':
OgreBindings_wrap.cxx:1731: error: invalid conversion from 'const Ogre::IndexData*' to 'Ogre::IndexData*'

Anyone know off the top of their head what I need to adjust?

rastaman

28-05-2006 21:17:38

Has Dapper been released yet? last i tried was flight4 just to see xgl. didn't try to compile ODN. Its working fine in Breezy :). I'll try and install the new Dapper.

make sure you have these:
Ogre3D v1.2 Release.
SWIG v1.3.29

what version of gcc is in Dapper?

giardante

29-05-2006 03:50:53

rastaman:

Dapper will be released sometime this week, I believe.

Versions:

Ogre3D v1.2 compiled from source
ogredotnet (final release for Ogre3d v1.2)
SWIG v1.3.27
GCC 4.0.3

Don't know if this matters, but if it does:
Python 2.4.3

rastaman

29-05-2006 04:05:11

you need SWIG v1.3.29

giardante

29-05-2006 04:21:32

Looks like removing the Ubuntu version and rolling my own 1.3.29 fixed the compile errors. It looks like it's looking for CEGUI even if I say not to compile that, but other than that it seems to be up and running. Thanks!