Baiame
17-04-2007 22:31:46
Hello. I tried compiling the CVS version of PLSM2 using the provided .cbp. I checked the search directories and linker settings, they're right. I get the following errors:
Note that I don't have STLport (looks like a bitch to compile, and I can't find anything precompiled). Is it necessary? If so, do you know of where I can get a precompiled version of 5.0? Thanks for any help.
EDIT- I added "OgreSceneManager.h" (where VisibleObjectsBoundsInfo is declared) and those errors don't come up anymore. Now I just get the following:
EDIT2- Should probably explain the last part a bit better. I included "OgreSceneManager.h" in that file because as far as I could tell, it wasn't included in any of the other headers used by that file. Anyway, I noticed that PagingLandScapeAxisAlignedBox (.cpp and .h) isn't included in the provided .cbp; but it seems they should be, as something from it is called somewhere (as is evident from the linker error). I noticed that in fact there were many source and header filed not included in the .cbp; I have no idea why. I added in all the other files, and the project compiled, but I still have to see if it works.
Though I don't really know what's going on with the files, I suspect there's something slightly wrong with the .cbps setup. Can you please look into it, Tuan?
..\include\OgrePagingLandScapeOcclusionElement.h:27: error: `VisibleObjectsBoundsInfo' has not been declared
..\include\OgrePagingLandScapeOcclusionElement.h:27: error: ISO C++ forbids declaration of `visibleBounds' with no type
..\include\OgrePagingLandScapeOcclusionElement.h:28: error: `VisibleObjectsBoundsInfo' has not been declared
..\include\OgrePagingLandScapeOcclusionElement.h:28: error: ISO C++ forbids declaration of `visibleBounds' with no type
..\include\OgrePagingLandScapeOcclusionElement.h:29: error: `VisibleObjectsBoundsInfo' has not been declared
..\include\OgrePagingLandScapeOcclusionElement.h:29: error: ISO C++ forbids declaration of `visibleBounds' with no type
..\include\OgrePagingLandScapeOctreeSceneManager.h:85: error: cannot allocate an object of type `Ogre::PagingLandScapeOctree'
..\include\OgrePagingLandScapeOctreeSceneManager.h:85: error: because the following virtual functions are abstract:
..\include\OgrePagingLandScapeOcclusionElement.h:27: error: virtual void Ogre::OcclusionElement::traversal(Ogre::Traversal&, int*)
..\include\OgrePagingLandScapeOcclusionElement.h:28: error: virtual void Ogre::OcclusionElement::traversal(const Ogre::TraversalConst&, int*)
..\include\OgrePagingLandScapeOcclusionElement.h:29: error: virtual void Ogre::OcclusionElement::traversal(const Ogre::ConstTraversalConst&, int*) const
Note that I don't have STLport (looks like a bitch to compile, and I can't find anything precompiled). Is it necessary? If so, do you know of where I can get a precompiled version of 5.0? Thanks for any help.
EDIT- I added "OgreSceneManager.h" (where VisibleObjectsBoundsInfo is declared) and those errors don't come up anymore. Now I just get the following:
..\obj\Release\src\OgrePagingLandScapeSceneManager.o:OgrePagingLandScapeSceneManager.cpp:(.text+0x1f60):: undefined reference to `Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::PagingLandScapeAxisAlignedBoxSceneQuery(Ogre::SceneManager*)'
..\obj\Release\src\OgrePagingLandScapeSceneManager.o:OgrePagingLandScapeSceneManager.cpp:(.text$_ZN4Ogre31PagingLandScapeMeshDecalFactoryC1Ev[Ogre::PagingLandScapeMeshDecalFactory::PagingLandScapeMeshDecalFactory()]+0x16):: undefined reference to `vtable for Ogre::PagingLandScapeMeshDecalFactory'
EDIT2- Should probably explain the last part a bit better. I included "OgreSceneManager.h" in that file because as far as I could tell, it wasn't included in any of the other headers used by that file. Anyway, I noticed that PagingLandScapeAxisAlignedBox (.cpp and .h) isn't included in the provided .cbp; but it seems they should be, as something from it is called somewhere (as is evident from the linker error). I noticed that in fact there were many source and header filed not included in the .cbp; I have no idea why. I added in all the other files, and the project compiled, but I still have to see if it works.
Though I don't really know what's going on with the files, I suspect there's something slightly wrong with the .cbps setup. Can you please look into it, Tuan?