So close... and yet

Support for running, installing or compiling OpenMW
Locked
User avatar
lgromanowski
Site Admin
Posts: 1193
Joined: 05 Aug 2011, 22:21
Location: Wroclaw, Poland
Contact:

So close... and yet

Post by lgromanowski »

EmbraceUnity wrote: I just got the longest error message in the history of the world

Code: Select all

[ 98%] Building CXX object apps/openmw/CMakeFiles/openmw.dir/mwdialogue/dialoguemanager.cpp.o            
Linking CXX executable ../../openmw                                                                      
CMakeFiles/openmw.dir/__/__/components/bsa/bsa_archive.cpp.o: In function `Ogre::NedPoolingPolicy::allocateBytes(unsigned long, char const*, int, char const*)':
bsa_archive.cpp:(.text._ZN4Ogre16NedPoolingPolicy13allocateBytesEmPKciS2_[Ogre::NedPoolingPolicy::allocateBytes(unsigned long, char const*, int, char const*)]+0x2e): undefined reference to `Ogre::NedPoolingImpl::allocBytes(unsigned long, char const*, int, char const*)'
CMakeFiles/openmw.dir/__/__/components/bsa/bsa_archive.cpp.o: In function `Ogre::NedPoolingPolicy::deallocateBytes(void*)':
bsa_archive.cpp:(.text._ZN4Ogre16NedPoolingPolicy15deallocateBytesEPv[Ogre::NedPoolingPolicy::deallocateBytes(void*)]+0x14): undefined reference to `Ogre::NedPoolingImpl::deallocBytes(void*)'
CMakeFiles/openmw.dir/__/__/components/nifogre/ogre_nif_loader.cpp.o: In function `NIFLoader::createOgreSubMesh(Nif::NiTriShape*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::list<Ogre::VertexBoneAssignment_s, std::allocator<Ogre::VertexBoneAssignment_s> >&)':
ogre_nif_loader.cpp:(.text+0x835): undefined reference to `Ogre::VertexData::VertexData(Ogre::HardwareBufferManagerBase*)'
ogre_nif_loader.cpp:(.text+0x102e): undefined reference to `Ogre::SubMesh::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(CaelumSystem.cpp.o): In function `Caelum::CaelumSystem::CaelumSystem(Ogre::Root*, Ogre::SceneManager*, Caelum::CaelumSystem::CaelumComponent)':
CaelumSystem.cpp:(.text+0x7a7): undefined reference to `Ogre::ResourceGroupManager::createResourceGroup(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
../../extern/caelum/libcaelum.a(CaelumSystem.cpp.o): In function `Caelum::CaelumSystem::CaelumSystem(Ogre::Root*, Ogre::SceneManager*, Caelum::CaelumSystem::CaelumComponent)':
CaelumSystem.cpp:(.text+0x11f3): undefined reference to `Ogre::ResourceGroupManager::createResourceGroup(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
../../extern/caelum/libcaelum.a(Sun.cpp.o): In function `Caelum::SphereSun::SphereSun(Ogre::SceneManager*, Ogre::SceneNode*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
Sun.cpp:(.text+0x24d): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(Sun.cpp.o): In function `Caelum::SphereSun::SphereSun(Ogre::SceneManager*, Ogre::SceneNode*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
Sun.cpp:(.text+0x5c9): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(PrecipitationController.cpp.o):(.rodata._ZTVN6Caelum21PrecipitationInstanceE[vtable for Caelum::PrecipitationInstance]+0x30): undefined reference to `Ogre::CompositorInstance::Listener::notifyResourcesCreated(bool)'
../../extern/caelum/libcaelum.a(DepthComposer.cpp.o):(.rodata._ZTVN6Caelum21DepthComposerInstanceE[vtable for Caelum::DepthComposerInstance]+0x30): undefined reference to `Ogre::CompositorInstance::Listener::notifyResourcesCreated(bool)'
../../extern/caelum/libcaelum.a(SkyDome.cpp.o): In function `Caelum::SkyDome::SkyDome(Ogre::SceneManager*, Ogre::SceneNode*)':
SkyDome.cpp:(.text+0x307): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(SkyDome.cpp.o): In function `Caelum::SkyDome::SkyDome(Ogre::SceneManager*, Ogre::SceneNode*)':
SkyDome.cpp:(.text+0x7fd): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(FlatCloudLayer.cpp.o): In function `Caelum::FlatCloudLayer::_ensureGeometry()':
FlatCloudLayer.cpp:(.text+0x168c): undefined reference to `Ogre::MeshManager::createPlane(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Ogre::Plane const&, float, float, int, int, bool, unsigned short, float, float, Ogre::Vector3 const&, Ogre::HardwareBuffer::Usage, Ogre::HardwareBuffer::Usage, bool, bool)'
FlatCloudLayer.cpp:(.text+0x17a8): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(GroundFog.cpp.o): In function `Caelum::GroundFog::GroundFog(Ogre::SceneManager*, Ogre::SceneNode*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
GroundFog.cpp:(.text+0x2eb): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(GroundFog.cpp.o): In function `Caelum::GroundFog::GroundFog(Ogre::SceneManager*, Ogre::SceneNode*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
GroundFog.cpp:(.text+0x857): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(ImageStarfield.cpp.o): In function `Caelum::ImageStarfield::ImageStarfield(Ogre::SceneManager*, Ogre::SceneNode*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
ImageStarfield.cpp:(.text+0x2f0): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(ImageStarfield.cpp.o): In function `Caelum::ImageStarfield::ImageStarfield(Ogre::SceneManager*, Ogre::SceneNode*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
ImageStarfield.cpp:(.text+0x76e): undefined reference to `Ogre::Entity::setMaterialName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(InternalUtilities.cpp.o): In function `Caelum::InternalUtilities::generateSphericDome(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Caelum::InternalUtilities::DomeType)':
InternalUtilities.cpp:(.text+0x11da): undefined reference to `Ogre::VertexData::VertexData(Ogre::HardwareBufferManagerBase*)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o): In function `Caelum::PropScriptResource::PropScriptResource(Ogre::ResourceManager*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, Ogre::ManualResourceLoader*)':
CaelumScriptTranslator.cpp:(.text+0x51): undefined reference to `Ogre::Resource::Resource(Ogre::ResourceManager*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, Ogre::ManualResourceLoader*)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o): In function `Caelum::PropScriptResource::PropScriptResource(Ogre::ResourceManager*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, Ogre::ManualResourceLoader*)':
CaelumScriptTranslator.cpp:(.text+0xb9): undefined reference to `Ogre::Resource::Resource(Ogre::ResourceManager*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, Ogre::ManualResourceLoader*)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0x38): undefined reference to `Ogre::ResourceManager::create(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, Ogre::ManualResourceLoader*, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0x40): undefined reference to `Ogre::ResourceManager::createOrRetrieve(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, Ogre::ManualResourceLoader*, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0x68): undefined reference to `Ogre::ResourceManager::unload(unsigned long long)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0xa0): undefined reference to `Ogre::ResourceManager::remove(unsigned long long)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0xb0): undefined reference to `Ogre::ResourceManager::removeUnreferencedResources(bool)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0xb8): undefined reference to `Ogre::ResourceManager::getByName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0xc0): undefined reference to `Ogre::ResourceManager::getByHandle(unsigned long long)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0xf0): undefined reference to `Ogre::ResourceManager::prepare(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, Ogre::ManualResourceLoader*, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*, bool)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum25PropScriptResourceManagerE[vtable for Caelum::PropScriptResourceManager]+0xf8): undefined reference to `Ogre::ResourceManager::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, Ogre::ManualResourceLoader*, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*, bool)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum18PropScriptResourceE[vtable for Caelum::PropScriptResource]+0x28): undefined reference to `Ogre::StringInterface::setParameterList(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const&)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum18PropScriptResourceE[vtable for Caelum::PropScriptResource]+0x88): undefined reference to `Ogre::Resource::prepare(bool)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum18PropScriptResourceE[vtable for Caelum::PropScriptResource]+0x158): undefined reference to `Ogre::Resource::_fireLoadingComplete(bool)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum18PropScriptResourceE[vtable for Caelum::PropScriptResource]+0x160): undefined reference to `Ogre::Resource::_firePreparingComplete(bool)'
../../extern/caelum/libcaelum.a(CaelumScriptTranslator.cpp.o):(.rodata._ZTVN6Caelum18PropScriptResourceE[vtable for Caelum::PropScriptResource]+0x168): undefined reference to `Ogre::Resource::_fireUnloadingComplete()'
../../extern/mygui_3.0.1/OgrePlatform/libMyGUIOgrePlatform.a(MyGUI_OgreVertexBuffer.cpp.o): In function `MyGUI::OgreVertexBuffer::createVertexBuffer()':
MyGUI_OgreVertexBuffer.cpp:(.text+0x36a): undefined reference to `Ogre::VertexData::VertexData(Ogre::HardwareBufferManagerBase*)'
collect2: ld returned 1 exit status
make[2]: *** [openmw] Error 1
make[1]: *** [apps/openmw/CMakeFiles/openmw.dir/all] Error 2
make: *** [all] Error 2
Greendogo wrote: At least this is different, right? :P
Zini wrote: You are not linking with Ogre. No idea what is going wrong there.
EmbraceUnity wrote: Just like that other error I had in the BSA Archive thread, it could be an error because of residual pieces of a previous version of OGRE.

I did a search on my /usr/ directory and found that, as with my BSA Archive problem, there were two similar folders.

/usr/lib/OGRE and /usr/lib/local/OGRE

I deleted the 2nd one and copied the 1st one into its spot, just I had done for the /usr/include/OGRE and /usr/local/include/OGRE directories in the BSA Archive thread.

Compiling now. Stay tuned.

EDIT: OK, that wasn't enough to make it work, but I got it to work after also deleting /usr/local/lib/libOgreMain.la /usr/local/lib/libOgreMain.so /usr/local/lib/libOgreMain-1.6.2.so and /usr/local/lib/pkgconfig/OGRE.pc

:D
Locked