Compile OgreNewt on Ubuntu problem

sensius

30-09-2008 03:29:59

hi guys,

I'm having problems installing OgreNewt on Ubuntu. I followed this guide http://www.ogre3d.org/wiki/index.php/OgreNewt_Linux_Installation but still have problems, when I typed scons I got the message ... Please specify boost header directory on the command line...Warning: configure check failed, not building...

Could anyone point me out how to solve this?

I have scons and boost installed.

Gonsor

30-09-2008 13:37:46

Hi,
I reinstalled it yesterday with Ubuntu 8.10 Alpha. Please confirm that you have installed libboost-dev first.

Although the version in the Wiki worked for me, I usually install it with some fixes:
cvs -z3 -d:pserver:anonymous@cvs.ogre3d.org:/cvsroot/ogre co -P ogreaddons/ogrenewt
cd ogreaddons/ogrenewt/
# The SConscript removes the BasicFrameListener header, which is very useful
# so let's fix that
sed -i 11d SConscript
mv SConscript OgreNewt_Main
# We don't want the old boost version (causes segmentation faults if used) but
# ubuntu's original one
mv OgreNewt_Main/inc/boost OgreNewt_Main/inc/boost.evil
ln -s /usr/include/boost OgreNewt_Main/inc/boost
scons
sudo scons install prefix=/usr


Hm, I don't really know where your error message comes from though.

sensius

01-10-2008 03:25:27

Thanks Gonsor a lots.
I'll check if libboost installed properly and follow your fix :)

sensius

01-10-2008 04:49:57

Thanks Gonso. Your fixes really fix my problems. Thanks again.

sensius

15-10-2008 11:35:54

Now I meet another problem when using OgreNewt and Newton on Ubuntu.

At linking step, there were some undefined reference error:

Newton.cpp:(.text+0x6a3): undefined reference to `operator new(unsigned int)'
/usr/lib/libNewton.a(dgBroadPhaseCollisionTreeBase.o): In function `dgBroadPhaseCollision::SetWorldSize(dgVector const&, dgVector const&)':
dgBroadPhaseCollisionTreeBase.cpp:(.text+0x40ed): undefined reference to `operator new(unsigned int)'
/usr/lib/libNewton.a(dgBroadPhaseCollisionTreeBase.o): In function `dgBroadPhaseCollision::Add(dgBody*)':
dgBroadPhaseCollisionTreeBase.cpp:(.text+0x4a44): undefined reference to `operator new(unsigned int)'
/usr/lib/libNewton.a(dgBroadPhaseCollisionTreeBase.o): In function `dgBroadPhaseCollision::UpdateBodyBroadphase(dgBody*)':
dgBroadPhaseCollisionTreeBase.cpp:(.text+0x5e69): undefined reference to `operator new(unsigned int)'


I followed http://www.ogre3d.org/wiki/index.php/Og ... stallation for installation of OgreNewt; and the last point:

When you use OgreNewt in your project, be sure to link in Newton (-lNewton) *after* OgreNewt, or else your going to get a bunch of undefined function errors.


In my codeblocks linker settings:
/usr/lib/libOgreNewt.so
/usr/lib/libNewton.a

can this make sure the order of linking OgreNewt then Newton; or anyone could tell me if I missed something?