Linux and Latest SDK [SDK : 24 august 2006]

Grey

24-08-2006 00:44:01

Just thought I'd let you know, I'm not sure if it's the .zip format that does this, but the autoconf files have been a little b0rked, probably from being copied to a windows machine, They have ^M's at the end of every line (Autogen.sh and configure.ac were the ones that gave me problems) it seems like the problem is resolved if you strip out those control characters, I've done it in vim before, though I can't remember how >_< today I used the 'fromdos' app that comes with slackware,

~/OgreOde/$ fromdos < configure.ac > temp && cat temp > configure.ac
~/OgreOde/$ fromdos < autogen.sh > temp && cat temp > autogen.sh

I'm building right now and it seems to be working fine,

edit: bombed out while linking to ODE, Ode doesn't build right on Linux out of the box, it appears the gnu makefiles are a little broken, just open up ode/build/gnu/ode.make and remove "-D WIN32" and "-luser32" anywhere you see them, as well change the top "CONFIG=" to either "CONFIG=ReleaseLib" or "Config=DebugLib", then build with "make -f ode.make", once the library is built you can find it in ode/lib/ReleaseLib or ode/lib/DebugLib, though you'll probably have to rename it from ode.lib to libode.a and move it to ode/ode/src/

oh wow... things get even more fun after this... All the Linux makefiles are pretty much broken, you've got the remove libode as a dependancy from the OgreOde makefiles because the ODE build files don't work right, but you've built it already with the instructions above. so just rip it out of the dependancy's section (grep the OgreOde base Makefile for libode.a and remove what looks relevant as a dependancy, but leave it in as a link library, I can't rememer the line numbers right now), after that... it should build, please let me know if I've forgotten anything else,

oh, and the directions on aer's blog, (http://aer.netsons.org/blog/?p=8) have some decent tip's, (Don't bother with the patches stuff but remember when you configure to use "./configure –with-sample=/path/to/ogre/Samples"
and to copy the Media over with

mkdir -p /path/to/ogre/Samples/../OgreOde/demos/
cp -r Media /path/to/ogre/Samples/../OgreOde/demos/

Anyway's, Just thought I'd let every know it's possible and not THAT hard, I'm still having problems getting the demo's to work because of naming inconsitencies, ("Plane.mesh" is NOT "plane.mesh", Damn incosiderate Windows people!)

edit:
Heh, just thought I'd post that with a little more fidgetting (Editting binary files with vim to change Plane.mesh to plane.mesh etc. heheh) I got it mostly working :)

See the picture here

tuan kuranes

24-08-2006 08:51:05

Thanks for sharing results !
If you can send me a patch and binary file changes, I would be very happy !

Grey

24-08-2006 10:12:15

I'll take a crack at getting a patch put together tomorrow, You shouldn't need to patch the binary files, I did because I didn't want to recompile everything, and I didn't want to rename a bunch of files to get the capitalization right, but tomorrow I'll put together a script to do the renaming and I'll submit a patch to the makefiles etc.