Can't compile pyogre-1.2 on suse-10.0

hiasl

25-07-2006 13:44:38

Hi,

i tried to compile pyogre for hours now. Using the newest swig a fresh ogre installation and a clean checked out pyogre i get those error messages:

python setup.py install --prefix=/projects/packages
running install
running build
running build_ext
building 'pyogre._ogre' extension
swigging pyogre/ogre/ogre.i to pyogre/ogre/ogre_wrap.cxx
swig -python -c++ -modern -Ipyogre/ogre -I/projects/packages/ogre/include -I/projects/packages/ogre/include/OGRE -o pyogre/ogre/ogre_wrap.cxx -outdir pyogre pyogre/ogre/ogre.i
/projects/packages/ogre/include/OGRE/OgreCommon.h:268: Warning(362): operator= ignored
/projects/packages/ogre/include/OGRE/OgreVertexIndexData.h:189: Warning(362): operator= ignored
/projects/packages/ogre/include/OGRE/OgreFont.h:355: Warning(362): operator= ignored
/projects/packages/ogre/include/OGRE/OgreRenderQueueSortingGrouping.h:47: Warning(314): pass is a python keyword, symbol will be renamed as '_pass'
/projects/packages/ogre/include/OGRE/OgreFileSystem.h:106: Warning(402): Base class 'ArchiveFactory' is incomplete.
/projects/packages/ogre/include/OGRE/OgrePrerequisites.h:189: Warning(402): Only forward declaration 'ArchiveFactory' was found.
/projects/packages/ogre/include/OGRE/OgreRibbonTrail.h:62: Warning(401): Nothing known about base class 'Node::Listener'. Ignored.
/projects/packages/ogre/include/OGRE/OgreMath.h:62: Warning(509): Overloaded operator *(Ogre::Radian const &) const is shadowed by operator *(Ogre::Real) const at /projects/packages/ogre/include/OGRE/OgreMath.h:61.
/projects/packages/ogre/include/OGRE/OgreMath.h:86: Warning(509): Overloaded Ogre::Degree(Ogre::Radian const &) is shadowed by Ogre::Degree(Ogre::Real) at /projects/packages/ogre/include/OGRE/OgreMath.h:85.
/projects/packages/ogre/include/OGRE/OgreMath.h:216: Warning(509): Overloaded Ogre::Math::Abs(Ogre::Radian const &) is shadowed by Abs(Ogre::Real) at /projects/packages/ogre/include/OGRE/OgreMath.h:214.
/projects/packages/ogre/include/OGRE/OgreMath.h:242: Warning(509): Overloaded Ogre::Math::Cos(Ogre::Real) is shadowed by Cos(Ogre::Radian const &) at /projects/packages/ogre/include/OGRE/OgreMath.h:232.
/projects/packages/ogre/include/OGRE/OgreMath.h:232: Warning(509): Overloaded Cos(Ogre::Radian const &,bool) is shadowed by Cos(Ogre::Real,bool) at /projects/packages/ogre/include/OGRE/OgreMath.h:242.
/projects/packages/ogre/include/OGRE/OgreMath.h:256: Warning(509): Overloaded Sign(Ogre::Radian const &) is shadowed by Sign(Ogre::Real) at /projects/packages/ogre/include/OGRE/OgreMath.h:252.
/projects/packages/ogre/include/OGRE/OgreMath.h:252: Warning(509): Overloaded Sign(Ogre::Real) is shadowed by Sign(Ogre::Radian const &) at /projects/packages/ogre/include/OGRE/OgreMath.h:256.
/projects/packages/ogre/include/OGRE/OgreMath.h:281: Warning(509): Overloaded Ogre::Math::Sin(Ogre::Real) is shadowed by Sin(Ogre::Radian const &) at /projects/packages/ogre/include/OGRE/OgreMath.h:271.
/projects/packages/ogre/include/OGRE/OgreMath.h:271: Warning(509): Overloaded Sin(Ogre::Radian const &,bool) is shadowed by Sin(Ogre::Real,bool) at /projects/packages/ogre/include/OGRE/OgreMath.h:281.
/projects/packages/ogre/include/OGRE/OgreMath.h:287: Warning(509): Overloaded Sqrt(Ogre::Radian const &) is shadowed by Sqrt(Ogre::Real) at /projects/packages/ogre/include/OGRE/OgreMath.h:285.
/projects/packages/ogre/include/OGRE/OgreMath.h:285: Warning(509): Overloaded Sqrt(Ogre::Real) is shadowed by Sqrt(Ogre::Radian const &) at /projects/packages/ogre/include/OGRE/OgreMath.h:287.
/projects/packages/ogre/include/OGRE/OgreMath.h:321: Warning(509): Overloaded Ogre::Math::Tan(Ogre::Real) is shadowed by Tan(Ogre::Radian const &) at /projects/packages/ogre/include/OGRE/OgreMath.h:311.
/projects/packages/ogre/include/OGRE/OgreMath.h:311: Warning(509): Overloaded Tan(Ogre::Radian const &,bool) is shadowed by Tan(Ogre::Real,bool) at /projects/packages/ogre/include/OGRE/OgreMath.h:321.
pyogre/ogre/OgreSkeleton.i:24: Warning(509): Overloaded getAnimation(Ogre::String const &) const is shadowed by getAnimation(Ogre::String const &) const at /projects/packages/ogre/include/OGRE/OgreSkeleton.h:210.
pyogre/ogre/OgreSkeletonInstance.i:15: Warning(509): Overloaded getAnimation(Ogre::String const &) const is shadowed by getAnimation(Ogre::String const &) const at /projects/packages/ogre/include/OGRE/OgreSkeletonInstance.h:71.
/projects/packages/ogre/include/OGRE/OgrePositionTarget.h:57: Warning(473): Returning a pointer or reference in a director method is not recommended.
/projects/packages/ogre/include/OGRE/OgrePositionTarget.h:57: Warning(473): Returning a pointer or reference in a director method is not recommended.
/projects/packages/ogre/include/OGRE/OgreTargetManager.h:59: Warning(473): Returning a pointer or reference in a director method is not recommended.
creating build
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/pyogre
creating build/temp.linux-i686-2.4/pyogre/ogre
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Ipyogre/ogre -I/projects/packages/ogre/include -I/projects/packages/ogre/include/OGRE -I/usr/include/python2.4 -c pyogre/ogre/ogre_wrap.cxx -o build/temp.linux-i686-2.4/pyogre/ogre/ogre_wrap.o
gcc: : Datei oder Verzeichnis nicht gefunden
pyogre/ogre/ogre_wrap.cxx: In function ‘int Real_To_Tuple(const Ogre::Real*, PyObject*, int)’:
pyogre/ogre/ogre_wrap.cxx:3540: warning: unused variable ‘toReturn’
pyogre/ogre/ogre_wrap.cxx: In function ‘void Ogre_BillboardSet_setTextureCoords(Ogre::BillboardSet*, PyObject*)’:
pyogre/ogre/ogre_wrap.cxx:8770: warning: comparison between signed and unsigned integer expressions
pyogre/ogre/ogre_wrap.cxx:8737: warning: unused variable ‘tmp’
pyogre/ogre/ogre_wrap.cxx:8754: warning: unused variable ‘j’
pyogre/ogre/ogre_wrap.cxx:8756: warning: unused variable ‘r’
pyogre/ogre/ogre_wrap.cxx:8757: warning: unused variable ‘item’
pyogre/ogre/ogre_wrap.cxx: In function ‘PyObject* Ogre_Entity_getSubEntityVertices(Ogre::Entity*, unsigned int)’:
pyogre/ogre/ogre_wrap.cxx:8959: warning: unused variable ‘tmp’
pyogre/ogre/ogre_wrap.cxx: In function ‘PyObject* Ogre_RenderTarget_getBoolCustomAttribute(Ogre::RenderTarget*, const Ogre::String&)’:
pyogre/ogre/ogre_wrap.cxx:10219: warning: unused variable ‘result’
/projects/packages/ogre/include/OGRE/OgreTargetManager.h: At global scope:
/projects/packages/ogre/include/OGRE/OgreTargetManager.h:57: warning: ‘class Ogre::TargetManager’ has virtual functions but non-virtual destructor
pyogre/ogre/ogre_wrap.cxx: In function ‘PyObject* _wrap_MeshManager_createBezierPatch__SWIG_6(PyObject*, PyObject*)’:
pyogre/ogre/ogre_wrap.cxx:192549: 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:192650: warning: converting negative value ‘AUTO_LEVEL’ to ‘size_t’
pyogre/ogre/ogre_wrap.cxx:192650: 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:201495: 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:201563: warning: converting negative value ‘AUTO_LEVEL’ to ‘size_t’
pyogre/ogre/ogre_wrap.cxx:201563: warning: converting negative value ‘AUTO_LEVEL’ to ‘size_t’
pyogre/ogre/ogre_wrap.cxx: In member function ‘swig::PySequence_ArrowProxy<T> swig::PySequence_InputIterator<T, Reference>::operator->() const [with T = std::pair<short unsigned int, Ogre::NumericAnimationTrack*>, Reference = const swig::PySequence_Ref<std::pair<short unsigned int, Ogre::NumericAnimationTrack*> >]’:
pyogre/ogre/ogre_wrap.cxx:4170: warning: control may reach end of non-void function ‘static Type swig::traits_as<Type, swig::pointer_category>::as(PyObject*, bool) [with Type = std::pair<short unsigned int, Ogre::NumericAnimationTrack*>]’ being inlined
pyogre/ogre/ogre_wrap.cxx: In member function ‘swig::PySequence_ArrowProxy<T> swig::PySequence_InputIterator<T, Reference>::operator->() const [with T = std::pair<short unsigned int, Ogre::VertexAnimationTrack*>, Reference = const swig::PySequence_Ref<std::pair<short unsigned int, Ogre::VertexAnimationTrack*> >]’:
pyogre/ogre/ogre_wrap.cxx:4170: warning: control may reach end of non-void function ‘static Type swig::traits_as<Type, swig::pointer_category>::as(PyObject*, bool) [with Type = std::pair<short unsigned int, Ogre::VertexAnimationTrack*>]’ being inlined
pyogre/ogre/ogre_wrap.cxx: In static member function ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, Seq**) [with Seq = std::map<short unsigned int, Ogre::NodeAnimationTrack*, std::less<short unsigned int>, std::allocator<std::pair<const short unsigned int, Ogre::NodeAnimationTrack*> > >, T = std::pair<short unsigned int, Ogre::NodeAnimationTrack*>]’:
pyogre/ogre/ogre_wrap.cxx:4170: warning: control may reach end of non-void function ‘static Type swig::traits_as<Type, swig::pointer_category>::as(PyObject*, bool) [with Type = std::pair<short unsigned int, Ogre::NodeAnimationTrack*>]’ being inlined
pyogre/ogre/ogre_wrap.cxx: At global scope:
pyogre/ogre/ogre_wrap.cxx:363039: warning: ‘void* _p_p_Ogre__MultiRenderTargetTo_p_p_Ogre__RenderTarget(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363042: warning: ‘void* _p_p_Ogre__RenderWindowTo_p_p_Ogre__RenderTarget(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363045: warning: ‘void* _p_p_Ogre__RenderTextureTo_p_p_Ogre__RenderTarget(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363216: warning: ‘void* _p_p_Ogre__ManualObjectFactoryTo_p_p_Ogre__MovableObjectFactory(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363219: warning: ‘void* _p_p_Ogre__LightFactoryTo_p_p_Ogre__MovableObjectFactory(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363222: warning: ‘void* _p_p_Ogre__BillboardSetFactoryTo_p_p_Ogre__MovableObjectFactory(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363225: warning: ‘void* _p_p_Ogre__BillboardChainFactoryTo_p_p_Ogre__MovableObjectFactory(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363228: warning: ‘void* _p_p_Ogre__EntityFactoryTo_p_p_Ogre__MovableObjectFactory(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363231: warning: ‘void* _p_p_Ogre__RibbonTrailFactoryTo_p_p_Ogre__MovableObjectFactory(void*)’ defined but not used
pyogre/ogre/ogre_wrap.cxx:363234: warning: ‘void* _p_p_Ogre__ParticleSystemFactoryTo_p_p_Ogre__MovableObjectFactory(void*)’ defined but not used
error: command 'gcc' failed with exit status 1

I would appreciate any hint!

Thanks
Matthias

Game_Ender

25-07-2006 15:36:45

By newest, do you mean 1.3.29? I know Ubuntu 6.06 did not have the latest version. I also had to run setup.py several times (ignoring tons of error messages) and I finally got something workable. Look in the forum for how people have installed pyogre on debian and Ubuntu for more help. I think you might have to run something else before you "setup.py install", but I am setup.py newbie.

hiasl

26-07-2006 08:01:57

yes, it is swig 1.3.29. and no other swig is on the system...

dermont

26-07-2006 18:36:25

Have you tried what Game_Ender suggested, rerunning python setup.py build each time it fails.

hiasl

07-08-2006 17:41:46

Yes, the rerun was the solution.

Thanks to both of you!