mrkissinger
01-06-2006 01:26:21
I tried to compile pyogre from svn on debian.
SWIG ran OK. But gcc compilation failed.
Can anyone help?
# swig -c++ -python -modern $(pkg-config --cflags-only-I OGRE) \
> pyogre/ogre/ogre.i
/usr/local/include/OGRE/OgreCommon.h:268: Warning(362): operator= ignored
/usr/local/include/OGRE/OgreVertexIndexData.h:189: Warning(362): operator= ignored
/usr/local/include/OGRE/OgreRenderQueueSortingGrouping.h:47: Warning(314): pass is a python keyword, symbol will be renamed as '_pass'
/usr/local/include/OGRE/OgreFileSystem.h:106: Warning(402): Base class 'ArchiveFactory' is incomplete.
/usr/local/include/OGRE/OgrePrerequisites.h:189: Warning(402): Only forward declaration 'ArchiveFactory' was found.
/usr/local/include/OGRE/OgreRectangle2D.h:41: Warning(401): Base class 'SimpleRenderable' undefined.
/usr/local/include/OGRE/OgreSimpleRenderable.h:38: Warning(401): 'SimpleRenderable' must be defined before it is used as a base class.
/usr/local/include/OGRE/OgreRibbonTrail.h:62: Warning(401): Nothing known about base class 'Node::Listener'. Ignored.
/usr/local/include/OGRE/OgreTextureUnitState.h:296: Warning(509): Overloaded setCubicTextureName(Ogre::String const *const) is shadowed by setCubicTextureName(Ogre::String const &) at /usr/local/include/OGRE/OgreTextureUnitState.h:248.
/usr/local/include/OGRE/OgreTextureUnitState.h:248: Warning(509): Overloaded setCubicTextureName(Ogre::String const &,bool) is shadowed by setCubicTextureName(Ogre::String const *const,bool) at /usr/local/include/OGRE/OgreTextureUnitState.h:296.
/usr/local/include/OGRE/OgreTextureUnitState.h:342: Warning(509): Overloaded setAnimatedTextureName(Ogre::String const *const,unsigned int) is shadowed by setAnimatedTextureName(Ogre::String const &,unsigned int) at /usr/local/include/OGRE/OgreTextureUnitState.h:319.
/usr/local/include/OGRE/OgreTextureUnitState.h:319: Warning(509): Overloaded setAnimatedTextureName(Ogre::String const &,unsigned int,Ogre::Real) is shadowed by setAnimatedTextureName(Ogre::String const *const,unsigned int,Ogre::Real) at /usr/local/include/OGRE/OgreTextureUnitState.h:342.
/usr/local/include/OGRE/OgrePositionTarget.h:57: Warning(473): Returning a pointer or reference in a director method is not recommended.
/usr/local/include/OGRE/OgrePositionTarget.h:57: Warning(473): Returning a pointer or reference in a director method is not recommended.
/usr/local/include/OGRE/OgreTargetManager.h:59: Warning(473): Returning a pointer or reference in a director method is not recommended.
# gcc -shared -fpic -DPIC $(pkg-config --cflags --libs OGRE) \
> -I/usr/include/python2.4 -o pyogre/ogre/_ogre.so \
> pyogre/ogre/ogre_wrap.cxx
pyogre/ogre/ogre_wrap.cxx: In function 'Ogre::ushort Ogre_GpuProgram_numberPosesIncluded_get(Ogre::GpuProgram*)':
pyogre/ogre/ogre_wrap.cxx:6728: error: use of 'ushort' is ambiguous
/usr/include/sys/types.h:152: error: first declared as 'typedef short unsigned int ushort' here
/usr/local/include/OGRE/OgrePrerequisites.h:133: error: also declared as 'typedef short unsigned int Ogre::ushort' here
pyogre/ogre/ogre_wrap.cxx:6728: error: 'ushort' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx: In function 'Ogre::Matrix4& Ogre_Bone_bindingPoseInverseTransform_get(Ogre::Bone*)':
pyogre/ogre/ogre_wrap.cxx:8419: error: 'class Ogre::Bone' has no member named '_getBindingPoseInverseTransform'
pyogre/ogre/ogre_wrap.cxx: In member function 'const Ogre::String& CompTextureDefinition::getName()':
pyogre/ogre/ogre_wrap.cxx:9359: warning: returning reference to temporary
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_MeshManager_createBezierPatch__SWIG_6(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:153924: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_MeshManager_createBezierPatch__SWIG_7(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:154020: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx:154020: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_PatchMesh_define__SWIG_6(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:162713: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_PatchMesh_define__SWIG_7(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:162776: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx:162776: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_SceneManager_getSkyPlaneGenParameters(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:224272: error: 'SkyPlaneGenParameters' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:224272: error: 'result' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:224291: error: expected `;' before 'const'
pyogre/ogre/ogre_wrap.cxx:224292: error: expected primary-expression before ')' token
pyogre/ogre/ogre_wrap.cxx:224292: error: '_result_ref' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_SceneManager_getSkyBoxGenParameters(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:224936: error: 'SkyBoxGenParameters' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:224936: error: 'result' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:224955: error: expected `;' before 'const'
pyogre/ogre/ogre_wrap.cxx:224956: error: expected primary-expression before ')' token
pyogre/ogre/ogre_wrap.cxx:224956: error: '_result_ref' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_SceneManager_getSkyDomeGenParameters(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:226530: error: 'SkyDomeGenParameters' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:226530: error: 'result' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:226549: error: expected `;' before 'const'
pyogre/ogre/ogre_wrap.cxx:226550: error: expected primary-expression before ')' token
pyogre/ogre/ogre_wrap.cxx:226550: error: '_result_ref' was not declared in this scope
#
SWIG ran OK. But gcc compilation failed.
Can anyone help?
# swig -c++ -python -modern $(pkg-config --cflags-only-I OGRE) \
> pyogre/ogre/ogre.i
/usr/local/include/OGRE/OgreCommon.h:268: Warning(362): operator= ignored
/usr/local/include/OGRE/OgreVertexIndexData.h:189: Warning(362): operator= ignored
/usr/local/include/OGRE/OgreRenderQueueSortingGrouping.h:47: Warning(314): pass is a python keyword, symbol will be renamed as '_pass'
/usr/local/include/OGRE/OgreFileSystem.h:106: Warning(402): Base class 'ArchiveFactory' is incomplete.
/usr/local/include/OGRE/OgrePrerequisites.h:189: Warning(402): Only forward declaration 'ArchiveFactory' was found.
/usr/local/include/OGRE/OgreRectangle2D.h:41: Warning(401): Base class 'SimpleRenderable' undefined.
/usr/local/include/OGRE/OgreSimpleRenderable.h:38: Warning(401): 'SimpleRenderable' must be defined before it is used as a base class.
/usr/local/include/OGRE/OgreRibbonTrail.h:62: Warning(401): Nothing known about base class 'Node::Listener'. Ignored.
/usr/local/include/OGRE/OgreTextureUnitState.h:296: Warning(509): Overloaded setCubicTextureName(Ogre::String const *const) is shadowed by setCubicTextureName(Ogre::String const &) at /usr/local/include/OGRE/OgreTextureUnitState.h:248.
/usr/local/include/OGRE/OgreTextureUnitState.h:248: Warning(509): Overloaded setCubicTextureName(Ogre::String const &,bool) is shadowed by setCubicTextureName(Ogre::String const *const,bool) at /usr/local/include/OGRE/OgreTextureUnitState.h:296.
/usr/local/include/OGRE/OgreTextureUnitState.h:342: Warning(509): Overloaded setAnimatedTextureName(Ogre::String const *const,unsigned int) is shadowed by setAnimatedTextureName(Ogre::String const &,unsigned int) at /usr/local/include/OGRE/OgreTextureUnitState.h:319.
/usr/local/include/OGRE/OgreTextureUnitState.h:319: Warning(509): Overloaded setAnimatedTextureName(Ogre::String const &,unsigned int,Ogre::Real) is shadowed by setAnimatedTextureName(Ogre::String const *const,unsigned int,Ogre::Real) at /usr/local/include/OGRE/OgreTextureUnitState.h:342.
/usr/local/include/OGRE/OgrePositionTarget.h:57: Warning(473): Returning a pointer or reference in a director method is not recommended.
/usr/local/include/OGRE/OgrePositionTarget.h:57: Warning(473): Returning a pointer or reference in a director method is not recommended.
/usr/local/include/OGRE/OgreTargetManager.h:59: Warning(473): Returning a pointer or reference in a director method is not recommended.
# gcc -shared -fpic -DPIC $(pkg-config --cflags --libs OGRE) \
> -I/usr/include/python2.4 -o pyogre/ogre/_ogre.so \
> pyogre/ogre/ogre_wrap.cxx
pyogre/ogre/ogre_wrap.cxx: In function 'Ogre::ushort Ogre_GpuProgram_numberPosesIncluded_get(Ogre::GpuProgram*)':
pyogre/ogre/ogre_wrap.cxx:6728: error: use of 'ushort' is ambiguous
/usr/include/sys/types.h:152: error: first declared as 'typedef short unsigned int ushort' here
/usr/local/include/OGRE/OgrePrerequisites.h:133: error: also declared as 'typedef short unsigned int Ogre::ushort' here
pyogre/ogre/ogre_wrap.cxx:6728: error: 'ushort' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx: In function 'Ogre::Matrix4& Ogre_Bone_bindingPoseInverseTransform_get(Ogre::Bone*)':
pyogre/ogre/ogre_wrap.cxx:8419: error: 'class Ogre::Bone' has no member named '_getBindingPoseInverseTransform'
pyogre/ogre/ogre_wrap.cxx: In member function 'const Ogre::String& CompTextureDefinition::getName()':
pyogre/ogre/ogre_wrap.cxx:9359: warning: returning reference to temporary
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_MeshManager_createBezierPatch__SWIG_6(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:153924: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_MeshManager_createBezierPatch__SWIG_7(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:154020: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx:154020: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_PatchMesh_define__SWIG_6(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:162713: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_PatchMesh_define__SWIG_7(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:162776: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx:162776: warning: converting negative value 'AUTO_LEVEL' to 'size_t'
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_SceneManager_getSkyPlaneGenParameters(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:224272: error: 'SkyPlaneGenParameters' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:224272: error: 'result' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:224291: error: expected `;' before 'const'
pyogre/ogre/ogre_wrap.cxx:224292: error: expected primary-expression before ')' token
pyogre/ogre/ogre_wrap.cxx:224292: error: '_result_ref' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_SceneManager_getSkyBoxGenParameters(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:224936: error: 'SkyBoxGenParameters' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:224936: error: 'result' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:224955: error: expected `;' before 'const'
pyogre/ogre/ogre_wrap.cxx:224956: error: expected primary-expression before ')' token
pyogre/ogre/ogre_wrap.cxx:224956: error: '_result_ref' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx: In function 'PyObject* _wrap_SceneManager_getSkyDomeGenParameters(PyObject*, PyObject*)':
pyogre/ogre/ogre_wrap.cxx:226530: error: 'SkyDomeGenParameters' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:226530: error: 'result' was not declared in this scope
pyogre/ogre/ogre_wrap.cxx:226549: error: expected `;' before 'const'
pyogre/ogre/ogre_wrap.cxx:226550: error: expected primary-expression before ')' token
pyogre/ogre/ogre_wrap.cxx:226550: error: '_result_ref' was not declared in this scope
#