Error while compiling PLSM on linux :(

Capashen

06-12-2007 10:56:38

Hello, i try to compile PLSM2 (latest from CVS) with Ogre 1.4.5. And i have an error when i compile (due to Octree plugin i guess...):

/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:1701: undefined reference to `Ogre::OctreeSceneManager::getOptionValues(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `~PagingLandScapeSceneManager':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:197: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:197: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:197: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:197: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `PagingLandScapeSceneManager':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:115: undefined reference to `Ogre::OctreeSceneManager::OctreeSceneManager(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:123: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:115: undefined reference to `Ogre::OctreeSceneManager::OctreeSceneManager(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:123: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::PagingLandScapeOctreeResize()':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:138: undefined reference to `Ogre::OctreeSceneManager::resize(Ogre::AxisAlignedBox const&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::getOptionKeys(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:1730: undefined reference to `Ogre::OctreeSceneManager::getOptionKeys(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::getOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void*)':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:1559: undefined reference to `Ogre::OctreeSceneManager::getOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void*)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::setOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void const*)':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:1152: undefined reference to `Ogre::OctreeSceneManager::setOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void const*)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::_updateSceneGraph(Ogre::Camera*)':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:412: undefined reference to `Ogre::OctreeSceneManager::_updateSceneGraph(Ogre::Camera*)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::clearScene()':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:340: undefined reference to `Ogre::OctreeSceneManager::clearScene()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `~PagingLandScapeSceneManager':
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:197: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/capashen/prog/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:197: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x168): undefined reference to `Ogre::OctreeSceneManager::createSceneNode()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x170): undefined reference to `Ogre::OctreeSceneManager::createSceneNode(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x178): undefined reference to `Ogre::OctreeSceneManager::destroySceneNode(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x2f8): undefined reference to `Ogre::OctreeSceneManager::_findVisibleObjects(Ogre::Camera*, Ogre::VisibleObjectsBoundsInfo*, bool)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x4c0): undefined reference to `Ogre::OctreeSceneManager::createSphereQuery(Ogre::Sphere const&, unsigned long)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x4c8): undefined reference to `Ogre::OctreeSceneManager::createPlaneBoundedVolumeQuery(std::vector<Ogre::PlaneBoundedVolume, std::allocator<Ogre::PlaneBoundedVolume> > const&, unsigned long)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x4d8): undefined reference to `Ogre::OctreeSceneManager::createIntersectionQuery(unsigned long)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x738): undefined reference to `Ogre::OctreeSceneManager::_alertVisibleObjects()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTIN4Ogre27PagingLandScapeSceneManagerE[typeinfo for Ogre::PagingLandScapeSceneManager]+0x10): undefined reference to `typeinfo for Ogre::OctreeSceneManager'
collect2: ld returned 1 exit status


I have this error after: ./bootstrap && ./configure && make
I had already see this error on my own compilation for use Octree, so i don't know if it's come really from PLSM or my installation of Ogre (./bootstrap && ./configure && make && su && make install)
My conf:
Distrib: Gentoo/Linux 2007
Gcc: 4.2.2
Autoconf: 2.61
Automake: 1.7.9


Thanks to help me ;)

manxnakur

06-12-2007 21:48:38

Hi Capashen,

You might want to try and inlcude Plugin_OctreeSceneManager.lib (For release, for debug it'll be Plugin_OctreeSceneManager_d.lib), i'm not sure how you would do that on Linux though :?


Ankur

Capashen

06-12-2007 22:30:00

Normally linux don't use .lib, it's specific to Windows like dll. But on linux i have .so, .la (in the plugin folder (/usr/local/lib/OGRE/)). But normally it's linked by pkg-config and ldconfig directly with Ogre, but here it seem to not work :s
I compiled correctly the compositor that use CG plugin, and they work fine. But the octree seem to not work for me, or there are some extra task to list in configure.ac and Makefile.am.

ares23

18-12-2007 02:48:09

Does anyone have an update on this problem as I've encountered it also. Below is the result from 'make':

make all-recursive
make[1]: Entering directory `/home/user/Desktop/ogrenew/ogreaddons/paginglandscape'
Making all in PlugIns
make[2]: Entering directory `/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns'
Making all in PagingLandScape2
make[3]: Entering directory `/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2'
Making all in src
make[4]: Entering directory `/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src'
/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -module -L/usr/local/lib -lOgreMain -shared -avoid-version -Wl,-z,defs -o Plugin_PagingLandScape2.la -rpath /usr/local/lib/OGRE Plugin_PagingLandScape2_la-DRGNURBSSurface.lo Plugin_PagingLandScape2_la-filetutils.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeCamera.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctree.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeIntersectionSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeNode.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeRaySceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeSceneManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeSphereSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeAxisAlignedBoxSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeCamera.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightField.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldN.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldNTC.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldRaw.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldRawTC.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldTC.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldBlendNeighbor.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2DManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_Spline.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeHorizon.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeIndexBuffer.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeListenerManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeMeshDecal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOptions.lo Plugin_PagingLandScape2_la-OgrePagingLandScapePage.lo Plugin_PagingLandScape2_la-OgrePagingLandScapePageManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapePageRenderable.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeRaySceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeRenderable.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeRenderableManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTextureCoordinatesManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManagerDll.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_BaseTexture2.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_BaseTexture.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Image.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTexture.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTextureShadowed.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTextureEdit.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTextureManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting2.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting2Edit.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting3.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting4.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting5.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting6.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting7.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting7Edit.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_SplattingShader.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_SplattingShaderEdit.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTile.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTileManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusion.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionElement.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionCameraTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionCHCTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionSWTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionDebugTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionVFTraversal.lo Plugin_PagingLandScape2_la-OgreDebugRectangle2D.lo Plugin_PagingLandScape2_la-OgreOcclusionBoundingBox.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionQuerySet.lo -lz -lm -ldl
g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.1.3/crtbeginS.o .libs/Plugin_PagingLandScape2_la-DRGNURBSSurface.o .libs/Plugin_PagingLandScape2_la-filetutils.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeCamera.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctree.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeIntersectionSceneQuery.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeNode.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeRaySceneQuery.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeSceneManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeSphereSceneQuery.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeAxisAlignedBoxSceneQuery.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeCamera.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightField.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldN.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldNTC.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldRaw.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldRawTC.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldTC.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldBlendNeighbor.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2DManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_Spline.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeHorizon.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeIndexBuffer.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeListenerManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeMeshDecal.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOptions.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapePage.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapePageManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapePageRenderable.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeRaySceneQuery.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeRenderable.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeRenderableManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTextureCoordinatesManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManagerDll.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_BaseTexture2.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_BaseTexture.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Image.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTexture.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTextureShadowed.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTextureEdit.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTextureManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting2.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting2Edit.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting3.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting4.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting5.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting6.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting7.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting7Edit.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_SplattingShader.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_SplattingShaderEdit.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTile.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeTileManager.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusion.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionElement.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionCameraTraversal.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionTraversal.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionCHCTraversal.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionSWTraversal.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionDebugTraversal.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionVFTraversal.o .libs/Plugin_PagingLandScape2_la-OgreDebugRectangle2D.o .libs/Plugin_PagingLandScape2_la-OgreOcclusionBoundingBox.o .libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionQuerySet.o -L/usr/local/lib /usr/local/lib/libOgreMain.so -lz -ldl -L/usr/lib/gcc/i486-linux-gnu/4.1.3 -L/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.1.3/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crtn.o -Wl,-z -Wl,defs -Wl,-soname -Wl,Plugin_PagingLandScape2.so -o .libs/Plugin_PagingLandScape2.so
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::getOptionValues(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:1700: undefined reference to `Ogre::OctreeSceneManager::getOptionValues(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::_updateSceneGraph(Ogre::Camera*)':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:411: undefined reference to `Ogre::OctreeSceneManager::_updateSceneGraph(Ogre::Camera*)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `~PagingLandScapeSceneManager':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:196: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:196: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:196: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:196: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:196: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:196: more undefined references to `Ogre::OctreeSceneManager::~OctreeSceneManager()' follow
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::clearScene()':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:339: undefined reference to `Ogre::OctreeSceneManager::clearScene()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::PagingLandScapeOctreeResize()':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:137: undefined reference to `Ogre::OctreeSceneManager::resize(Ogre::AxisAlignedBox const&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `PagingLandScapeSceneManager':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:114: undefined reference to `Ogre::OctreeSceneManager::OctreeSceneManager(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:122: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:114: undefined reference to `Ogre::OctreeSceneManager::OctreeSceneManager(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:122: undefined reference to `Ogre::OctreeSceneManager::~OctreeSceneManager()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::getOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void*)':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:1558: undefined reference to `Ogre::OctreeSceneManager::getOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void*)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::getOptionKeys(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:1729: undefined reference to `Ogre::OctreeSceneManager::getOptionKeys(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o: In function `Ogre::PagingLandScapeSceneManager::setOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void const*)':
/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeSceneManager.cpp:1151: undefined reference to `Ogre::OctreeSceneManager::setOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void const*)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0xb4): undefined reference to `Ogre::OctreeSceneManager::createSceneNode()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0xb8): undefined reference to `Ogre::OctreeSceneManager::createSceneNode(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0xbc): undefined reference to `Ogre::OctreeSceneManager::destroySceneNode(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x17c): undefined reference to `Ogre::OctreeSceneManager::_findVisibleObjects(Ogre::Camera*, Ogre::VisibleObjectsBoundsInfo*, bool)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x260): undefined reference to `Ogre::OctreeSceneManager::createSphereQuery(Ogre::Sphere const&, unsigned long)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x264): undefined reference to `Ogre::OctreeSceneManager::createPlaneBoundedVolumeQuery(std::vector<Ogre::PlaneBoundedVolume, std::allocator<Ogre::PlaneBoundedVolume> > const&, unsigned long)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x26c): undefined reference to `Ogre::OctreeSceneManager::createIntersectionQuery(unsigned long)'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTVN4Ogre27PagingLandScapeSceneManagerE[vtable for Ogre::PagingLandScapeSceneManager]+0x39c): undefined reference to `Ogre::OctreeSceneManager::_alertVisibleObjects()'
.libs/Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.o:(.data.rel.ro._ZTIN4Ogre27PagingLandScapeSceneManagerE[typeinfo for Ogre::PagingLandScapeSceneManager]+0x8): undefined reference to `typeinfo for Ogre::OctreeSceneManager'
collect2: ld returned 1 exit status
make[4]: *** [Plugin_PagingLandScape2.la] Error 1
make[4]: Leaving directory `/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns/PagingLandScape2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/Desktop/ogrenew/ogreaddons/paginglandscape/PlugIns'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/Desktop/ogrenew/ogreaddons/paginglandscape'
make: *** [all] Error 2

venox

18-12-2007 05:19:09

I've got it to work by adding -D_PLSM_OCTREE to OGRE_CFLAGS in every Makefile under paginglandscape. You can do it just by using find and sed:
find ogreaddons/paginglandscape -name Makefile -exec sed -i '/OGRE_CFLAGS = / s/.*/& -D_PLSM_OCTREE/' {} \;

Hope it works for you guys too :wink:

Don't forget to make clean && make after doing that. You'll have to rebuild the entire source tree.

ares23

18-12-2007 14:07:11

That worked great for me venox, thanks a lot.

LEoC

19-12-2007 00:23:11

Well, thank you very much.
Now I compiled everything and installed PLSM corrctly.

But after using MapSplitter, when I try to execute the Sample PageingLandScape2 it crashes with following error:

Added resource location '../../Media/paginglandscape2/terrains/gcanyon_height_4k2k' of type 'FileSystem' to resource group 'PLSM2'
Initialising resource group PLSM2
Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Texture: cursor.png: Loading 1 faces(PF_R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,32x32x1.
Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with 7 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
Texture: gcanyon_texture_4k2k.0.0.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
Texture: Detail3.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
WARNING: Texture instance 'Ogre/ShadowTexture0' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
Creating viewport on target 'Ogre/ShadowTexture0/0/0/0', rendering from camera 'Ogre/ShadowTexture0Cam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
Texture: gcanyon_texture_4k2k.1.2.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
PagingLandScape2: OgrePagingLandScapePageManager.cpp:638: void Ogre::PagingLandScapePageManager::processLoadQueues(): Assertion `p && !p->isLoaded ()' failed.
Aborted (core dumped)


No fun, ;\

Maybe known error?

ciao LeoC

venox

19-12-2007 04:05:11

While MapSplitter worked just fine, I've had some errors with PagingLandScape2 too:
...
Initialising resource group PLSM2
Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Texture: cursor.png: Loading 1 faces(PF_R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,32x32x1.
Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with 7 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
An exception has occured: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at OgreGpuProgram.cpp (line 873)
*-*-* OGRE Shutdown
...

DaHoC

13-07-2008 17:20:33

Thanks venox,
-D_PLSM_OCTREE solved my problem too!

Besides, errors ocurred at

PlugIns/PagingLandScape2/include/OgrePagingLandScapePoolSet.h:138
and
PlugIns/PagingLandScape2/include/OgrePagingLandScapePoolSet.h:265: error: there are no arguments to 'PLSM2_ASSERT' that depend on a template parameter, so a declaration of 'PLSM2_ASSERT' must be available

(I don't have a nerve to correctly debug atm, so I simply commented out the asserts - they are only asserts after all ;-))

DeTan

07-08-2008 20:54:08

Instead of commenting out every PLSM2_ASSERT wouldn't be better to include "OgrePagingLandScapePrerequisites.h"? That's where PLSM2_ASSERT is defined, and the name of the header is pretty suggestive... :wink:

Capashen

22-08-2008 13:03:55

Added resource location '../../Media/paginglandscape2/terrains/hf129_3' of type 'FileSystem' to resource group 'PLSM2'
Initialising resource group PLSM2
Texture: flare.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 8 generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Texture: cursor.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
An exception has occured: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at OgreGpuProgram.cpp (line 873)
Unregistering ResourceManager for type BspLevel
ResourceBackgroundQueue - thread stopped.


Hello, have someone found a solution to this problem?

ttvn

31-08-2008 08:20:37

I got around the "undefined reference..." linker error without resorting to -D_PLSM_OCTREE, by appending the following to OGRE_LIBS in the PlugIns/PagingLandScape2/src/Makefile:
-Wl,--start-group -Wl,<...>/lib/OGRE/Plugin_OctreeSceneManager.so -Wl,--end-group
(replace the <...> part with the Ogre install path)

Hope this can help. It seems on win32 there is no need to link against Plugin_OctreeSceneManager, but on linux somehow it's needed.

DeTan

01-09-2008 18:43:42

Capashen,

I faced that problem too. Mapslitter goes ok but when I try to actually run the maps I have the same exception. I recall that I was able to open only one of the maps, but I could see only a blue sky. I'm using the latest stable release of Ogre. Maybe that's the problem.
I would be interested in hearing from you if you manage to solve this.

ttvn

06-09-2008 03:30:14

It seems the GpuProgramParameters::_findNamedConstantDefinition exception will be encountered with the default "hf" map. If edit the paginglandscape2.cfg and change the default "hf" map to something else such as "European_Alpes" then shouldn't have the exception.

eugene20237

23-12-2008 12:06:35

Hello! I have problem while compiling Paging Landscape SceneManager under Ubuntu intrepid.


/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -DOGRE_GUI_gtk -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE -I../../../PlugIns/PagingLandScape2/include -g -O2 -MT Plugin_PagingLandScape2_la-DRGNURBSSurface.lo -MD -MP -MF .deps/Plugin_PagingLandScape2_la-DRGNURBSSurface.Tpo -c -o Plugin_PagingLandScape2_la-DRGNURBSSurface.lo `test -f 'DRGNURBSSurface.cpp' || echo './'`DRGNURBSSurface.cpp
../../../libtool: line 653: X--tag=CXX: command not found
../../../libtool: line 686: libtool: ignoring unknown tag : command not found
../../../libtool: line 653: X--mode=compile: command not found
../../../libtool: line 803: *** Warning: inferring the mode of operation is deprecated.: command not found
../../../libtool: line 804: *** Future versions of Libtool will require -mode=MODE be specified.: command not found
../../../libtool: line 947: Xg++: command not found
../../../libtool: line 947: X-DHAVE_CONFIG_H: command not found
../../../libtool: line 947: X-I.: command not found
../../../libtool: line 947: X-I../../..: No such file or directory
../../../libtool: line 947: X-DOGRE_GUI_gtk: command not found
../../../libtool: line 947: X-DOGRE_CONFIG_LITTLE_ENDIAN: command not found
../../../libtool: line 947: X-I/usr/local/include: No such file or directory
../../../libtool: line 947: X-I/usr/local/include/OGRE: No such file or directory
../../../libtool: line 947: X-I../../../PlugIns/PagingLandScape2/include: No such file or directory
../../../libtool: line 947: X-g: command not found
../../../libtool: line 947: X-O2: command not found
../../../libtool: line 947: X-MT: command not found
../../../libtool: line 947: XPlugin_PagingLandScape2_la-DRGNURBSSurface.lo: command not found
../../../libtool: line 947: X-MD: command not found
../../../libtool: line 947: X-MP: command not found
../../../libtool: line 947: X-MF: command not found
../../../libtool: line 947: X.deps/Plugin_PagingLandScape2_la-DRGNURBSSurface.Tpo: No such file or directory
../../../libtool: line 947: X-c: command not found
../../../libtool: line 995: XPlugin_PagingLandScape2_la-DRGNURBSSurface.lo: command not found
../../../libtool: line 1000: libtool: compile: cannot determine name of library object from `': command not found


Any solutions?

amandaaz

11-04-2009 05:53:20

What is a really pretty distribution of linux? I want to switch to the Linux OS from the Windows OS whenever I build my new computer. What is a version of linux that has really good graphics like Windows Vista or MacOSx. Prefferably one of the free linux distributions.