problem compiling under 64 bits ubuntu

rogerdv

21-09-2008 19:16:53

When I try to compile under Ubuntu 8.04 I get this error:

src/ogreode/src/OgreOdeGeometry.cpp: In constructor 'OgreOde::TriangleMeshGeometry::TriangleMeshGeometry(const Ogre::Vector3*, unsigned int, const OgreOde::TriangleIndex*, unsigned int, OgreOde::World*, OgreOde::Space*)':
src/ogreode/src/OgreOdeGeometry.cpp:903: error: invalid conversion from 'unsigned int*' to 'const int*'
src/ogreode/src/OgreOdeGeometry.cpp:903: error: initializing argument 4 of 'void dGeomTriMeshDataBuildSimple(dxTriMeshData*, const dReal*, int, const int*, int)'
scons: *** [src/ogreode/src/OgreOdeGeometry.o] Error 1


I have seen similar problems, mostly due to data size in 64 bits systems. Can somebody give me an idea about how to solve this?

DerHeiligste

21-09-2008 21:18:21

I have seen similar problems, mostly due to data size in 64 bits systems. Can somebody give me an idea about how to solve this?
Are you building the latest revision from subversion? I built OgreOde on and AMD64 system without any trouble. Here's my setup:
  1. Ogre 1.6-rc1[/*:m]
  2. Ode 0.10.1[/*:m]
  3. OgreOde revision 2497.[/*:m]
  4. gcc-4.2.4[/*:m][/list:u]
    Good luck!

rogerdv

22-09-2008 12:58:45

Im using the one from Ogre addons svn, which I have found that sometimes are not exactly the last version. So, basically I dont know which revision Im using.