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
~/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