Error Compiling OGREODE in Linux

LiL003OO

26-01-2009 15:00:03

I downloaded the zip source code from here.

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

and
sh autogen.sh
./configure

and appear
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
liudmila@lpupo:~/Desktop/OGREODE/Ogrenew$ make
make: *** No targets specified and no makefile found. Stop.

¿?
Thanks

Hannofcart

12-11-2009 08:28:07

I have the same problem. Anybody have any ideas as to why there is no Makefile.in in this source distribution?

shanefarris

12-11-2009 19:13:01

The configure script requires Makefile.in to generate the actual Makefile that is ran to create your binaries. If the download doesn't have a Makefile.in, try the svn. This is based off of automake though so I could be wrong, but I'm sure we are to use the svn code anyway. This is in the addons repository.

Hannofcart

13-11-2009 12:36:16

Thanks for the reply ShaneFarris. The SVN is based on automake and that solves the previous problem. However, now I am running into build errors:
~/ogre/ogreode$ make
make all-recursive
make[1]: Entering directory `/home/balajee/ogre/ogreode'
Making all in include
make[2]: Entering directory `/home/balajee/ogre/ogreode/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/balajee/ogre/ogreode/include'
Making all in src
make[2]: Entering directory `/home/balajee/ogre/ogreode/src'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE -I../include -g -O2 -MT OgreOdeBody.lo -MD -MP -MF .deps/OgreOdeBody.Tpo -c -o OgreOdeBody.lo OgreOdeBody.cpp
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I.. -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE -I../include -g -O2 -MT OgreOdeBody.lo -MD -MP -MF .deps/OgreOdeBody.Tpo -c OgreOdeBody.cpp -fPIC -DPIC -o .libs/OgreOdeBody.o
In file included from ../include/OgreOdeWorld.h:4,
from OgreOdeBody.cpp:4:
../include/OgreOdePreReqs.h:35: error: ‘dTriIndex’ does not name a type
In file included from ../include/OgreOdeGeometry.h:7,
from OgreOdeBody.cpp:8:
../include/OgreOdeTriangleMeshData.h:18: error: expected ‘,’ or ‘...’ before ‘*’ token
../include/OgreOdeTriangleMeshData.h:18: error: ISO C++ forbids declaration of ‘TriangleIndex’ with no type
../include/OgreOdeTriangleMeshData.h:30: error: ISO C++ forbids declaration of ‘TriangleIndex’ with no type
../include/OgreOdeTriangleMeshData.h:30: error: expected ‘;’ before ‘*’ token
../include/OgreOdeTriangleMeshData.h:32: error: expected `;' before ‘unsigned’
../include/OgreOdeTriangleMeshData.h:42: error: ISO C++ forbids declaration of ‘TriangleIndex’ with no type
../include/OgreOdeTriangleMeshData.h:42: error: expected ‘;’ before ‘*’ token
In file included from OgreOdeBody.cpp:8:
../include/OgreOdeGeometry.h:388: error: expected ‘,’ or ‘...’ before ‘*’ token
../include/OgreOdeGeometry.h:391: error: ISO C++ forbids declaration of ‘TriangleIndex’ with no type
make[2]: *** [OgreOdeBody.lo] Error 1
make[2]: Leaving directory `/home/balajee/ogre/ogreode/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/balajee/ogre/ogreode'
make: *** [all] Error 2

Does anybody have a working revision which was built with GCC? If so, would it be possible to pass me the revision number?

shanefarris

13-11-2009 15:00:09

Make sure you have Ode in a path that make is looking in. Looks like the error is simply because it doesn't know what these Ode types are because it can't find any declarations to them.

dermont

13-11-2009 16:28:32

Thanks for the reply ShaneFarris. The SVN is based on automake and that solves the previous problem. However, now I am running into build errors:
~/ogre/ogreode$ make
make all-recursive
make[1]: Entering directory `/home/balajee/ogre/ogreode'
Making all in include
make[2]: Entering directory `/home/balajee/ogre/ogreode/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/balajee/ogre/ogreode/include'
Making all in src
make[2]: Entering directory `/home/balajee/ogre/ogreode/src'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE -I../include -g -O2 -MT OgreOdeBody.lo -MD -MP -MF .deps/OgreOdeBody.Tpo -c -o OgreOdeBody.lo OgreOdeBody.cpp
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I.. -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE -I../include -g -O2 -MT OgreOdeBody.lo -MD -MP -MF .deps/OgreOdeBody.Tpo -c OgreOdeBody.cpp -fPIC -DPIC -o .libs/OgreOdeBody.o
In file included from ../include/OgreOdeWorld.h:4,
from OgreOdeBody.cpp:4:
../include/OgreOdePreReqs.h:35: error: ‘dTriIndex’ does not name a type
In file included from ../include/OgreOdeGeometry.h:7,
from OgreOdeBody.cpp:8:
../include/OgreOdeTriangleMeshData.h:18: error: expected ‘,’ or ‘...’ before ‘*’ token
../include/OgreOdeTriangleMeshData.h:18: error: ISO C++ forbids declaration of ‘TriangleIndex’ with no type
../include/OgreOdeTriangleMeshData.h:30: error: ISO C++ forbids declaration of ‘TriangleIndex’ with no type
../include/OgreOdeTriangleMeshData.h:30: error: expected ‘;’ before ‘*’ token
../include/OgreOdeTriangleMeshData.h:32: error: expected `;' before ‘unsigned’
../include/OgreOdeTriangleMeshData.h:42: error: ISO C++ forbids declaration of ‘TriangleIndex’ with no type
../include/OgreOdeTriangleMeshData.h:42: error: expected ‘;’ before ‘*’ token
In file included from OgreOdeBody.cpp:8:
../include/OgreOdeGeometry.h:388: error: expected ‘,’ or ‘...’ before ‘*’ token
../include/OgreOdeGeometry.h:391: error: ISO C++ forbids declaration of ‘TriangleIndex’ with no type
make[2]: *** [OgreOdeBody.lo] Error 1
make[2]: Leaving directory `/home/balajee/ogre/ogreode/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/balajee/ogre/ogreode'
make: *** [all] Error 2

Does anybody have a working revision which was built with GCC? If so, would it be possible to pass me the revision number?


What version of ode are you using? Updating to ode 0.11.x should resolve your problem.