Compiling in linux

OffbeatPatriot

11-09-2008 08:50:52

I downloaded the zip source code from here.

http://tuan.kuranes.free.fr/Ogre.html#OgreOde

I then unzipped it, went to the directory and entered the following commands.


chmod +x autogen.sh
./autogen.sh


and I got this output


You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
Running aclocal
Running autoheader
Running automake
configure.ac:6: installing `./install-sh'
configure.ac:6: installing `./missing'
demos/GranTurismOgre/src/Makefile.am: installing `./depcomp'
configure.ac:42: required file `OgreOde_Loader.pc.in' not found
Now you are ready to run ./configure


But I'm obviously not ready to run configure because it doesn't work and I get this message when the configure script stops.


config.status: error: cannot find input file: Makefile.in

rewb0rn

11-09-2008 18:37:09

There is a tutorial how to compile OgreOde with Code::Blocks in the wiki, have you read it? (can't help furthermore because I am a windows user)

Calder

26-04-2009 14:59:42

I'm encountering the same problem. Any help would be greatly appreciated.

Etherous

28-05-2009 05:55:03

I'm having this same problem on an Intel Mac.

silverblood

29-12-2009 08:12:34

I got autoconf to work by manually adding the file:

OgreOde_Loader.pc.in

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: OgreOde_Loader
Description: Loader for OgreOde_Core
Version: @VERSION@
Libs: -L${libdir} -lOgreOde_Loader
Cflags: -I${includedir}/OgreOde_Loader


that got me past the autoconf and configure stage.

I then had to comment the include directives as follows:

#include "Ogre.h"
// #include "OgreNoMemoryMacros.h"
#include "ode/ode.h"
// #include "OgreMemoryMacros.h"

in [ogreode]/include/OgreOdePreReqs.h

to get rid of the "not found" errors


then added:

void visitRenderables(Ogre::Renderable::Visitor*, bool) {}

following the destructor in the DebugContactText class
in [ogreode]/include/OgreOdePreReqs.h (about line 64)
and following the destructor in the Body class
in [ogreode]/include/OgreOdeBody.h (about line 151)

to get rid of the "error: cannot allocate an object of abstract type" error

then changed:
dGeomTriMeshDataBuildSimple(_data,(const dReal*)_vertices, (int)vertex_count, (int*)_indices, (int)index_count);
to
dGeomTriMeshDataBuildSimple(_data,(const dReal*)_vertices, (int)vertex_count, (unsigned int*)_indices, (int)index_count);
in [ogreode]/src/OgreOdeGeometry.cpp (about line 881)

and finally, comment the include directives as follows:

#include "Ogre.h"
// #include "OgreNoMemoryMacros.h"
#include "ode/ode.h"
// #include "OgreMemoryMacros.h"

in [ogreode]/loader/include/OgreOde_LoaderPreReqs.h

then configured using an abs path for the --with-samples argument (./configure --with-samples=/FULL/PATH/TO/OGRE/SDK/Samples)


at this point it still breaks with:
error: ‘class Ogre::Entity’ has no member named ‘setNormaliseNormals’

silverblood

29-12-2009 21:19:39

then again, checking out a version from SVN compiles almost cleanly (no errors, a few warnings)

svn co https://ogreaddons.svn.sourceforge.net/svnroot/ogreaddons/trunk/ogreode


the CVS has a note that it has been abandoned.