spassig
08-09-2006 15:57:15
Hi there,
I try to compile PyOgre for OSX.
After fixing some problems with the setup.py Script a run into a serios Problem with swig.
The script generates the WrapperFile, but there is something wrong with it.
When compiling with gcc (4.0.1) I get the message:
error: invalid cast from type "const Ogre::TextureUnitState::UVWAdressingMode" to type "Ogre::TextureUnitState::TextureAddressingMode"
the coresponding line in the ogre_wrap.cxx is
SWIGINTERN Ogre::TextureUnitState::TextureAddressingMode Ogre_TextureUnitState_textureAddressingMode_get(Ogre::TextureUnitState *self){ return (Ogre::TextureUnitState::TextureAddressingMode)(self->getTextureAddressingMode()); }
I use Python 2.4 und the Ogre Framework is from http://will.thimbleby.net/ogre/ (based on the latest OGRE version 1.2.0 (Dagon)).
Maybe PyOgre doasn't work with the Dagon Version of Ogre?
greetings
Sven
I try to compile PyOgre for OSX.
After fixing some problems with the setup.py Script a run into a serios Problem with swig.
The script generates the WrapperFile, but there is something wrong with it.
When compiling with gcc (4.0.1) I get the message:
error: invalid cast from type "const Ogre::TextureUnitState::UVWAdressingMode" to type "Ogre::TextureUnitState::TextureAddressingMode"
the coresponding line in the ogre_wrap.cxx is
SWIGINTERN Ogre::TextureUnitState::TextureAddressingMode Ogre_TextureUnitState_textureAddressingMode_get(Ogre::TextureUnitState *self){ return (Ogre::TextureUnitState::TextureAddressingMode)(self->getTextureAddressingMode()); }
I use Python 2.4 und the Ogre Framework is from http://will.thimbleby.net/ogre/ (based on the latest OGRE version 1.2.0 (Dagon)).
Maybe PyOgre doasn't work with the Dagon Version of Ogre?
greetings
Sven