Compilling PLSM2 undefined reference

PJani

11-01-2009 00:04:18

Hy im having problems compiling PLSM2 with Code::Blocks MinGW on Windows i have OGRE 1.6.
I removed stlport becouse i dont know how to compile it. this libs are included...
-lOgreMain -lPlugin_OctreeSceneManager -lPlugin_OctreeZone

the errors are:


...
||Info: resolving Ogre::Matrix4::IDENTITY by linking to __imp___ZN4Ogre7Matrix48IDENTITYE |
||Info: resolving Ogre::Quaternion::IDENTITY by linking to __imp___ZN4Ogre10Quaternion8IDENTITYE |
||Info: resolving Ogre::Vector3::ZERO by linking to __imp___ZN4Ogre7Vector34ZEROE |
||Info: resolving vtable for Ogre::Exceptionby linking to __imp___ZTVN4Ogre9ExceptionE |
||Info: resolving Ogre::StringUtil::BLANK by linking to __imp___ZN4Ogre10StringUtil5BLANKE |
||Info: resolving Ogre::Math::POS_INFINITY by linking to __imp___ZN4Ogre4Math12POS_INFINITYE |
||Info: resolving Ogre::ColourValue::White by linking to __imp___ZN4Ogre11ColourValue5WhiteE |
||Info: resolving Ogre::Vector3::NEGATIVE_UNIT_Y by linking to __imp___ZN4Ogre7Vector315NEGATIVE_UNIT_YE |
||Info: resolving Ogre::Vector3::UNIT_Y by linking to __imp___ZN4Ogre7Vector36UNIT_YE |
||Info: resolving Ogre::SceneManager::WORLD_GEOMETRY_TYPE_MASK by linking to __imp___ZN4Ogre12SceneManager24WORLD_GEOMETRY_TYPE_MASKE |
||Info: resolving Ogre::Vector3::UNIT_SCALE by linking to __imp___ZN4Ogre7Vector310UNIT_SCALEE |
||Info: resolving Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME by linking to __imp___ZN4Ogre20ResourceGroupManager27DEFAULT_RESOURCE_GROUP_NAMEE |
||Info: resolving Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME by linking to __imp___ZN4Ogre20ResourceGroupManager30AUTODETECT_RESOURCE_GROUP_NAMEE |
||Info: resolving vtable for Ogre::MovableObjectFactoryby linking to __imp___ZTVN4Ogre20MovableObjectFactoryE |
||Info: resolving Ogre::ColourValue::Black by linking to __imp___ZN4Ogre11ColourValue5BlackE |
..\obj\Release\src\OgrePagingLandScapeSceneManager.o:OgrePagingLandScapeSceneManager.cpp:(.text+0x1fb6)||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'|
||=== Build finished: 2 errors, 307 warnings ===|



The PLSM2 is the latest got from repo

jacmoe

12-01-2009 19:10:17

I think you need to make sure that all PLSM2 source files are added to the project, which seems to be slightly out of sync.
At a glance, you need to add PagingLandScapeAxisAlignedBoxSceneQuery to the project.