PDA

View Full Version : TrinityCore 4.3.4 Compilation 4.3.4 to tools



Skream
08-27-2016, 05:31 PM
Hello everybody. Need help with compiling 4.3.4 on ubuntu 14.04

I'm trying to compile a tools, produces 98% of such a mistake here;


../game/libgame.a(GameObject.cpp.o): In function `GameObject::UpdateModel()':
GameObject.cpp:(.text+0xdef): undefined reference to `GameObjectModel::~GameObjectModel()'
GameObject.cpp:(.text+0xdff): undefined reference to `GameObjectModel::Create(GameObject const&)'
../game/libgame.a(GameObject.cpp.o): In function `GameObject::~GameObject()':
GameObject.cpp:(.text+0x19f2): undefined reference to `GameObjectModel::~GameObjectModel()'
../game/libgame.a(GameObject.cpp.o): In function `GameObject::Create(unsigned int, unsigned int, Map*, unsigned int, float, float, float, float, float, float, float, float, unsigned int, GOState, unsigned int)':
GameObject.cpp:(.text+0x5024): undefined reference to `GameObjectModel::Create(GameObject const&)'
../game/libgame.a(World.cpp.o): In function `World::SetInitialWorldSettings()':
World.cpp:(.text+0xabda): undefined reference to `LoadGameObjectModelList()'
../collision/libcollision.a(DynamicTree.cpp.o): In function `DynamicMapTree::isInLineOfSight(float, float, float, float, float, float, unsigned int) const':
DynamicTree.cpp:(.text+0x8f8): undefined reference to `GameObjectModel::intersectRay(G3D::Ray const&, float&, bool, unsigned int) const'
DynamicTree.cpp:(.text+0x11bd): undefined reference to `GameObjectModel::intersectRay(G3D::Ray const&, float&, bool, unsigned int) const'
../collision/libcollision.a(DynamicTree.cpp.o): In function `DynamicMapTree::getHeight(float, float, float, float, unsigned int) const':
DynamicTree.cpp:(.text+0x1afa): undefined reference to `GameObjectModel::intersectRay(G3D::Ray const&, float&, bool, unsigned int) const'
../collision/libcollision.a(DynamicTree.cpp.o): In function `DynamicMapTree::getObjectHitPos(unsigned int, G3D::Vector3 const&, G3D::Vector3 const&, G3D::Vector3&, float) const':
DynamicTree.cpp:(.text+0x269b): undefined reference to `GameObjectModel::intersectRay(G3D::Ray const&, float&, bool, unsigned int) const'
DynamicTree.cpp:(.text+0x31ac): undefined reference to `GameObjectModel::intersectRay(G3D::Ray const&, float&, bool, unsigned int) const'
../collision/libcollision.a(DynamicTree.cpp.o):DynamicTree.cpp: (.text._ZNK3BIH12intersectRayIN7BIHWrapI15GameObje ctModel11BoundsTraitIS2_EE11MDLCallbackI31DynamicT reeIntersectionCallbackEEEEvRKN3G3D3RayERT_Rfb[_ZNK3BIH12intersectRayIN7BIHWrapI15GameObjectModel 11BoundsTraitIS2_EE11MDLCallbackI31DynamicTreeInte rsectionCallbackEEEEvRKN3G3D3RayERT_Rfb]+0x26a): more undefined references to `GameObjectModel::intersectRay(G3D::Ray const&, float&, bool, unsigned int) const' follow
collect2: error: ld returned 1 exit status
make[2]: *** [src/server/worldserver/worldserver] Error 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [all] Error 2

Although, no tools, Campiglio rules without error.
What's the trouble?

Tommy
08-28-2016, 11:58 PM
Never seen those errors before so I'm not really sure. It does say "undefined reference to" so I'd assume where that code is being called it either doesn't have all the included files or some other cause. When you say TrinityCore 4.3.4 do you mean the official currently unsupported TrinityCore 4.3.4 or a derived third party source (e.g. Skyfire, etc)?