OgreNewt under Linux

7 views
Skip to first unread message

Stefan Stammberger

unread,
Jul 20, 2008, 6:42:16 AM7/20/08
to Python Ogre Developers
Hi,

I'm trying to buil OgreNewt under Linux. There are some errors in the
build environment, but they are easily fixed like retrieval of the
sources from svn instead of cvs and so on. But now I'm stuck at the
compile step. This is my log.out:

------------------------------------------
07-20 12:32 PythonOgre.BuildModule INFO Compiling Source code for
ogrenewt
07-20 12:32 PythonOgre.BuildModule DEBUG Spawning 'scons
PROJECTS=ogrenewt' in '/home/stefan/development/python-ogre'
07-20 12:32 PythonOgre.BuildModule WARNING Task Failed
07-20 12:32 PythonOgre.BuildModule DEBUG scons: Reading SConscript
files ...
Building ogrenewt
WARNING: Over-Writing /home/stefan/development/python-ogre/generated/
ogrenewt_1.0/SConscript as it already exists
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.5/ogrenewt_1.0/ogrenewt.so -Wl,-rpath=\/../../lib
`pkg-config --libs OGRE` --strip-all -lstdc++ -shared build_dir_2.5/
ogrenewt_1.0/BallAndSocket.pypp.os build_dir_2.5/ogrenewt_1.0/
BasicRaycast.pypp.os build_dir_2.5/ogrenewt_1.0/Body.pypp.os
build_dir_2.5/ogrenewt_1.0/BodyIterator.pypp.os build_dir_2.5/
ogrenewt_1.0/Box.pypp.os build_dir_2.5/ogrenewt_1.0/Capsule.pypp.os
build_dir_2.5/ogrenewt_1.0/ChamferCylinder.pypp.os build_dir_2.5/
ogrenewt_1.0/Collision.pypp.os build_dir_2.5/ogrenewt_1.0/
CompoundCollision.pypp.os build_dir_2.5/ogrenewt_1.0/Cone.pypp.os
build_dir_2.5/ogrenewt_1.0/ContactCallback.pypp.os build_dir_2.5/
ogrenewt_1.0/ConvexCollision.pypp.os build_dir_2.5/ogrenewt_1.0/
ConvexHull.pypp.os build_dir_2.5/ogrenewt_1.0/
ConvexModifierCollision.pypp.os build_dir_2.5/ogrenewt_1.0/
Custom2DJoint.pypp.os build_dir_2.5/ogrenewt_1.0/
CustomGearJoint.pypp.os build_dir_2.5/ogrenewt_1.0/CustomJoint.pypp.os
build_dir_2.5/ogrenewt_1.0/CustomPulleyJoint.pypp.os build_dir_2.5/
ogrenewt_1.0/CustomRigidJoint.pypp.os build_dir_2.5/ogrenewt_1.0/
Cylinder.pypp.os build_dir_2.5/ogrenewt_1.0/Debugger.pypp.os
build_dir_2.5/ogrenewt_1.0/Ellipsoid.pypp.os build_dir_2.5/
ogrenewt_1.0/Hinge.pypp.os build_dir_2.5/ogrenewt_1.0/Joint.pypp.os
build_dir_2.5/ogrenewt_1.0/MaterialID.pypp.os build_dir_2.5/
ogrenewt_1.0/MaterialPair.pypp.os build_dir_2.5/ogrenewt_1.0/
Null.pypp.os build_dir_2.5/ogrenewt_1.0/Pyramid.pypp.os build_dir_2.5/
ogrenewt_1.0/Raycast.pypp.os build_dir_2.5/ogrenewt_1.0/Slider.pypp.os
build_dir_2.5/ogrenewt_1.0/TreeCollision.pypp.os build_dir_2.5/
ogrenewt_1.0/TreeCollisionSceneParser.pypp.os build_dir_2.5/
ogrenewt_1.0/TreeCollisionSerializer.pypp.os build_dir_2.5/
ogrenewt_1.0/Universal.pypp.os build_dir_2.5/ogrenewt_1.0/
UpVector.pypp.os build_dir_2.5/ogrenewt_1.0/VectorofCollision.pypp.os
build_dir_2.5/ogrenewt_1.0/Vehicle.pypp.os build_dir_2.5/ogrenewt_1.0/
World.pypp.os build_dir_2.5/ogrenewt_1.0/_ogrenewt_.main.os
build_dir_2.5/ogrenewt_1.0/_ogrenewt__enumerations.pypp.os
build_dir_2.5/ogrenewt_1.0/_ogrenewt__free_functions.pypp.os -L/home/
stefan/development/root/usr/lib -L/home/stefan/development/root/usr/
lib -L/home/stefan/development/root/usr/lib -L/home/stefan/development/
root/usr/lib -L/usr/lib/python2.5/libs -lNewton -lboost_python-
gcc42-1_35_0 -lOgreNewt -lOgreMain
scons: building terminated because of errors.

07-20 12:32 PythonOgre.BuildModule DEBUG /usr/bin/ld: cannot find -
lboost_python-gcc42-1_35_0
collect2: ld returned 1 exit status
scons: *** [build_dir_2.5/ogrenewt_1.0/ogrenewt.so] Error 1
------------------------------------------

But I only have libboost_python-gcc42-mt-1_35.so in my /home/stefan/
development/root/usr/lib directory. Where in the build environment is
the name of the lib set? I'll submit this as a patch when everything
works.


Thanks,
Stefan

Andy Miller

unread,
Jul 20, 2008, 6:45:13 AM7/20/08
to python-ogre...@googlegroups.com
Are you using the latest Python-Ogre SVN ??

I know that Tim is making changes to automate the boost lib settings under Linux so this may be causing your issue..

I assume that Ogre/OIS etc are working OK?

Thanks

Andy


2008/7/20 Stefan Stammberger <some....@gmail.com>:

Stefan Stammberger

unread,
Jul 20, 2008, 7:24:44 AM7/20/08
to Python Ogre Developers
I'm using the python ogre svn version from about a week ago.
Everything else works fine.

On Jul 20, 12:45 pm, "Andy Miller" <nzmill...@gmail.com> wrote:
> Are you using the latest Python-Ogre SVN ??
>
> I know that Tim is making changes to automate the boost lib settings under
> Linux so this may be causing your issue..
>
> I assume that Ogre/OIS etc are working OK?
>
> Thanks
>
> Andy
>
> 2008/7/20 Stefan Stammberger <some.fus...@gmail.com>:

Tim Ansell

unread,
Jul 22, 2008, 12:47:02 AM7/22/08
to python-ogre...@googlegroups.com
<snip>

> > > 07-20 12:32 PythonOgre.BuildModule DEBUG /usr/bin/ld: cannot find -
> > > lboost_python-gcc42-1_35_0
> > > collect2: ld returned 1 exit status
> > > scons: *** [build_dir_2.5/ogrenewt_1.0/ogrenewt.so] Error 1
> > > ------------------------------------------
> >
> > > But I only have libboost_python-gcc42-mt-1_35.so in my /home/stefan/
> > > development/root/usr/lib directory. Where in the build environment is
> > > the name of the lib set? I'll submit this as a patch when everything
> > > works.

I have fixed the problem (hopefully). Can you please try now?
(The version was set as 1_35_0 rather then 1_35.)

Tim 'Mithro' Ansell


Stefan Stammberger

unread,
Jul 22, 2008, 1:31:27 PM7/22/08
to Python Ogre Developers
Yes that error is gone! But I still can't get it to compile correctly
due to some other error. Here's my log.out:


--------------------------------------------------------------------
07-22 19:02 PythonOgre.BuildModule INFO Build Command tar zxf /
home/stefan/development/downloads/newtonLinux-1.53.tar.gz
07-22 19:02 PythonOgre.BuildModule DEBUG Spawning 'tar zxf /home/
stefan/development/downloads/newtonLinux-1.53.tar.gz' in '/home/stefan/
development'
07-22 19:02 PythonOgre.BuildModule INFO Build Command patch -s -
i ./python-ogre/patch/Newton.patch -p0
07-22 19:02 PythonOgre.BuildModule DEBUG Spawning 'patch -s -i ./
python-ogre/patch/Newton.patch -p0 ' in '/home/stefan/development'
07-22 19:02 PythonOgre.BuildModule INFO Build Command cp newtonSDK/
sdk/Newton.h /home/stefan/development/root/usr/include
07-22 19:02 PythonOgre.BuildModule DEBUG Spawning 'cp newtonSDK/sdk/
Newton.h /home/stefan/development/root/usr/include' in '/home/stefan/
development'
07-22 19:02 PythonOgre.BuildModule INFO Build Command cp newtonSDK/
sdk/*.a /home/stefan/development/root/usr/lib
07-22 19:02 PythonOgre.BuildModule DEBUG Spawning 'cp newtonSDK/sdk/
*.a /home/stefan/development/root/usr/lib' in '/home/stefan/
development'
07-22 19:02 PythonOgre.BuildModule INFO Build Command cp newtonSDK/
sdk/*.a ogreaddons/ogrenewt
07-22 19:02 PythonOgre.BuildModule DEBUG Spawning 'cp newtonSDK/sdk/
*.a ogreaddons/ogrenewt' in '/home/stefan/development'
07-22 19:02 PythonOgre.BuildModule INFO Build Command patch -s -N -
i ../../python-ogre/patch/ogrenewt.patch -p0
07-22 19:02 PythonOgre.BuildModule DEBUG Spawning 'patch -s -N -
i ../../python-ogre/patch/ogrenewt.patch -p0' in '/home/stefan/
development/ogreaddons/ogrenewt'
07-22 19:02 PythonOgre.BuildModule INFO Build Command rm -f ./
OgreNewt_Main/inc/boost
07-22 19:02 PythonOgre.BuildModule DEBUG Spawning 'rm -f ./
OgreNewt_Main/inc/boost' in '/home/stefan/development/ogreaddons/
ogrenewt'
07-22 19:02 PythonOgre.BuildModule WARNING Task Failed
07-22 19:02 PythonOgre.BuildModule DEBUG
07-22 19:02 PythonOgre.BuildModule DEBUG rm: cannot remove `./
OgreNewt_Main/inc/boost': Is a directory

07-22 19:02 PythonOgre.BuildModule INFO Build Command scons
prefix=/home/stefan/development/root/usr boost=/home/stefan/
development/root/usr/include/boost-1_34_1 install
07-22 19:02 PythonOgre.BuildModule DEBUG Spawning 'scons prefix=/
home/stefan/development/root/usr boost=/home/stefan/development/root/
usr/include/boost-1_34_1 install' in '/home/stefan/development/
ogreaddons/ogrenewt'
07-22 19:02 PythonOgre.BuildModule WARNING Task Failed
07-22 19:02 PythonOgre.BuildModule DEBUG scons: Reading SConscript
files ...
Checking for C++ header file boost/bind.hpp... yes
Checking for C++ header file OGRE/Ogre.h... yes
scons: done reading SConscript files.
scons: Building targets ...
Install file: "OgreNewt_Main/inc/OgreNewt_Body.h" as "/home/stefan/
development/root/usr/include/OgreNewt/OgreNewt_Body.h"
Install file: "OgreNewt_Main/inc/OgreNewt_BasicJoints.h" as "/home/
stefan/development/root/usr/include/OgreNewt/OgreNewt_BasicJoints.h"
Install file: "OgreNewt_Main/inc/OgreNewt_Tools.h" as "/home/stefan/
development/root/usr/include/OgreNewt/OgreNewt_Tools.h"
Install file: "OgreNewt_Main/inc/OgreNewt_Debugger.h" as "/home/stefan/
development/root/usr/include/OgreNewt/OgreNewt_Debugger.h"
Install file: "OgreNewt_Main/inc/OgreNewt_Prerequisites.h" as "/home/
stefan/development/root/usr/include/OgreNewt/OgreNewt_Prerequisites.h"
Install file: "OgreNewt_Main/inc/OgreNewt_CollisionPrimitives.h" as "/
home/stefan/development/root/usr/include/OgreNewt/
OgreNewt_CollisionPrimitives.h"
Install file: "OgreNewt_Main/inc/OgreNewt_RayCast.h" as "/home/stefan/
development/root/usr/include/OgreNewt/OgreNewt_RayCast.h"
Install file: "OgreNewt_Main/inc/OgreNewt_Joint.h" as "/home/stefan/
development/root/usr/include/OgreNewt/OgreNewt_Joint.h"
Install file: "OgreNewt_Main/inc/OgreNewt_World.h" as "/home/stefan/
development/root/usr/include/OgreNewt/OgreNewt_World.h"
Install file: "OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h" as "/
home/stefan/development/root/usr/include/OgreNewt/
OgreNewt_BasicFrameListener.h"
Install file: "OgreNewt_Main/inc/OgreNewt_BodyIterator.h" as "/home/
stefan/development/root/usr/include/OgreNewt/OgreNewt_BodyIterator.h"
Install file: "OgreNewt_Main/inc/OgreNewt_TreeCollisionSerializer.h"
as "/home/stefan/development/root/usr/include/OgreNewt/
OgreNewt_TreeCollisionSerializer.h"
Install file: "OgreNewt_Main/inc/OgreNewt.h" as "/home/stefan/
development/root/usr/include/OgreNewt/OgreNewt.h"
Install file: "OgreNewt_Main/inc/OgreNewt_Collision.h" as "/home/
stefan/development/root/usr/include/OgreNewt/OgreNewt_Collision.h"
Install file: "OgreNewt_Main/inc/OgreNewt_MaterialPair.h" as "/home/
stefan/development/root/usr/include/OgreNewt/OgreNewt_MaterialPair.h"
Install file: "OgreNewt_Main/inc/OgreNewt_Vehicle.h" as "/home/stefan/
development/root/usr/include/OgreNewt/OgreNewt_Vehicle.h"
Install file: "OgreNewt_Main/inc/OgreNewt_MaterialID.h" as "/home/
stefan/development/root/usr/include/OgreNewt/OgreNewt_MaterialID.h"
Install file: "OgreNewt_Main/inc/OgreNewt_ContactCallback.h" as "/home/
stefan/development/root/usr/include/OgreNewt/
OgreNewt_ContactCallback.h"
scons: building terminated because of errors.

07-22 19:02 PythonOgre.BuildModule DEBUG
scons: warning: Ignoring missing SConscript 'build/OgreNewt_Main/
SConscript'
File "/home/stefan/development/ogreaddons/ogrenewt/SConstruct", line
56, in <module>
scons: *** Source `OgreNewt_Main/libOgreNewt.so' not found, needed by
target `/home/stefan/development/root/usr/lib/libOgreNewt.so'. Stop.
--------------------------------------------------------------------

It seems like it fails somewhere to compile everything. But I can't
see where the error happens.

Ivan Vucica

unread,
Jul 23, 2008, 10:34:13 AM7/23/08
to python-ogre...@googlegroups.com
On Tue, Jul 22, 2008 at 06:47, Tim Ansell <mit...@gmail.com> wrote:

I have fixed the problem (hopefully). Can you please try now?
(The version was set as 1_35_0 rather then 1_35.)

Tim 'Mithro' Ansell

Related to this change, we now have a problem elsewhere. Boost module tries to fetch boost-1_35.tar.gz rather than boost-1_35_0.tar.gz resulting in Sourceforge endlessly redirecting wget.

Also upon successful download, boost gets unpacked into boost-1_35_0 rather than boost-1_35. Etc, etc.

To be frank, I don't see a reason for using 1_35 rather than 1_35_0 (latter, apparently, being the preferred upstream version identifier :)  It's your decision, but could you write a few words on why is this being done?

Attached is a hack that allows 1.35 to be downloaded, extracted, and apparently built correctly.

I'm also still having problems with boost_python_index, but more on that in another post.

--
Regards,

Ivan Vučica

OBJECT Networks :: www.objectnetworks.net
Cateia Games :: www.cateia.com
pythonogre.patch
Reply all
Reply to author
Forward
0 new messages