Cthugha patch

petrinm

13-06-2009 12:42:30

Here is what you need to do to get OgreOde compiled with Ogre Cthugna!

1. OgreOdeBody.cpp @ line 809
From:

std::list<Ogre::Plane>::const_iterator pi, piend;

To:

list<Ogre::Plane>::type::const_iterator pi, piend;


2. OgreOdeSpace.cpp @ lines 228-229
From:

const std::set<Ogre::SceneQuery::WorldFragmentType> *supportedQueryTypes = _intersection_query->getSupportedWorldFragmentTypes();
std::set<Ogre::SceneQuery::WorldFragmentType>::const_iterator it =

To:

const set<Ogre::SceneQuery::WorldFragmentType>::type *supportedQueryTypes = _intersection_query->getSupportedWorldFragmentTypes();
set<Ogre::SceneQuery::WorldFragmentType>::type::const_iterator it =


That's the way to do it! :wink:

petrinm

14-06-2009 21:57:58

Also if you get "Cannot find a group named OgreOde in ..." error when trying to enable debug objects you need to add this line to OgreOdeDebugObject.cpp on line 18 (just before the line which creates debug material called "OgreOdeDebugLines/Disabled")

Ogre::ResourceGroupManager::getSingletonPtr()->createResourceGroup("OgreOde");

You can also add this line to any other place(It doesn't matter!) but I think this is the best one.

bhoessen

30-07-2009 09:50:15

I'm trying to build ogreode (got the source via svn). I made the changes to OgreOdeBody, but I get this error:


OgreOdeBody.cpp: In member function ‘bool OgreOde::Body::collidePlaneBounds(void*, Ogre::SceneQuery::WorldFragment*)’:
OgreOdeBody.cpp:809: erreur: ‘list’ was not declared in this scope


I'm building it with g++ (v4.4.0) on linux.

I tried to include <list>, use std::list but it didn't work out.