Newton/OgreNewt/Linux [solved]

pratty70

04-01-2007 09:30:59

Have spent a short while trying to get OgreNewt working on Linux and with the help of the scons script from Rostullahs Lochenpracht (hope that's spelt correctly) it works.

I'm having problems with Newton now. My target is an embedded platform with a 2004.3 Gentoo install (massively reduced in size) - game and OS approx 80Mb. My system uses GCC 3.3.4 (yeah I know, I should upgrade) but once an embedded system is stable, it's best not to do too much too it. Until of course, you install Newton and the static library is built with 4.1 GCC.

I am seeing a segmentation fault/illegal instruction when a NewtonUpdate is called - all initialisation of bodies/etc seems fine, but according to the forums there is potentially a problem with SSE on the new compiler.

This all aside - I'm trying initially to roll back to 1.52 to do a quick demo which I am required to do initially on the embedded platform and to this end am asking if anyone has a 1.52 linux newton archive hanging around?

Thanks in advance

pratty70

04-01-2007 11:33:01

Not to worry - have got the file now thanks

Game_Ender

05-01-2007 07:06:08

Do you mind posting the file somewhere? To help the rest of us. You were pretty desperate in using it I would that other (myself would be as well).

pratty70

05-01-2007 09:25:11

http://www.newtongamedynamics.com/downloads/newtonLinux-1.52.tar.gz

It was there all the time, just no direct link on the website, doh! - Really embarrased having not tried that!! :oops:

(Thanks Clion on the newton forums!)

Also, when I've committed these changes to my build, I will post some instructions on how I completed it as the OgreNewt/Newton under Linux via command line instructions seem to be a little sparse.

pratty70

08-01-2007 12:44:44

Still bashing away at this. I have identified that they system works fine as long as I only have treecollision objects in there. Everything loads up and is visible, and the updates within newton are completed successfully.

As soon as I add a cylinder through a primitive, the first newton update called causes a segmentation fault!!

Still chasing it!

pratty70

11-01-2007 10:02:30

If I'd been a little more vigilent I would have seen an earlier post from pjcast indicating to remove the boost directory from OgreNewt on Linux to avoid it using this version and to use any other installed version.

After doing this everything worked fine. After all the heartache I have had with this I will do a wiki asap for other people not to suffer the same woes.

Many thanks for any help received in cracking this one.

Also note that I managed to use gcc 3.3.4 on a 2.4 kernel with newton 1.53 and didn't have to set NewtonSetPlatformArchitecture(World,0) to make it work!!