[Help] CVS compilation problems

gehn

17-01-2006 06:39:04

So I have the latest PLSM2 from CVS, and the latest OGRE libs from CVS installed on my system (Gentoo Linux, GCC 3.3.6). Trying to build PLSM2, I get the following error:


OgrePagingLandScapeOctreeCamera.cpp: In member function `void
Ogre::PagingLandScapeOctreeCamera::changeOcclusionMode(Ogre::culling_modes)':
OgrePagingLandScapeOctreeCamera.cpp:95: error: `getDestinationRenderSystem'
undeclared (first use this function)
OgrePagingLandScapeOctreeCamera.cpp:95: error: (Each undeclared
identifier is reported only once for each function it appears in.)


By the API docs, SceneManager has a _setDestinationRenderSystem method, and a protected mDestinationRenderSystem member, but not a getter for that member. Looking in OgrePagingLandScapeOctreeCamera.cpp, though, it looks like it just uses this to test for RSC_HWOCCLUSION and throw an exception if it's not supported. Easy enough to comment out..

Doing that, I get a bit further in the build.. but it errors out again in OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp, with:


OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp: In member function `
virtual void
Ogre::PagingLandScapeOctreeIntersectionSceneQuery::execute(Ogre::IntersectionSceneQueryListener*)
':
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:66: error: `
MovableObjectFactoryIterator' is not a member of type `Ogre::Root'
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:66: error: syntax error
before `=' token
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:68: error: `factIt'
undeclared (first use this function)
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:68: error: (Each undeclared
identifier is reported only once for each function it appears in.)
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:70: error: `
MovableObjectIterator' is not a member of type `Ogre::SceneManager'
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:70: error: syntax error
before `=' token
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:73: error: `it' undeclared
(first use this function)
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:94: error: `getTypeFlags'
undeclared (first use this function)
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp:94: error: `mQueryTypeMask'
undeclared (first use this function)


... which I have no idea how to deal with, as it's looking for MovableObjectIterator, which is neither in Root or MovableObject.

Any pointers for a newcomer? :oops:

tuan kuranes

17-01-2006 09:29:28

you need CVS HEAD (aka dagon). it seems you have CVS stable 1.0.X

gehn

17-01-2006 20:29:09

Ahh, yes, that was it, sorry! Looks like i've been using SVN for too long and have forgotton proper use of CVS. :wink:

The only thing I had to do after updating with -rHEAD was to edit Tools/MapSplitter/src/filetutils.cpp to include stdlib.h for the call to exit().

Other than that, built like a charm. Thanks!

tuan kuranes

18-01-2006 07:55:20

thanks for the report. stdlib.h missing include fixed in CVS.