Game Development Community

Compile Error: GMK 1.2.10 and T3D 1.1 Preview

by Quinton Delpeche · in Game Mechanics Kit · 04/29/2011 (12:18 am) · 6 replies

Trying to get GMK 1.2.10 compiled and installed on T3D 1.1 Preview, and I have hit a brick wall. I have done some searching on the forums and haven't found a solution. I have also checked and double-checked and triple-checked the documentation to ensure that I have followed it step-by-step.

"libbullet" compiles correctly on its own. But when I try to compile the DLL for the game I get the following error:
1>Link:
1>     Creating library ../../../game/Re-Spawn.lib and object ../../../game/Re-Spawn.exp
1>physicsBullet.obj : error LNK2019: unresolved external symbol "bool (__cdecl* gContactAddedCallback)(class btManifoldPoint &,class btCollisionObject const *,int,int,class btCollisionObject const *,int,int)" (?gContactAddedCallback@@3P6A_NAAVbtManifoldPoint@@PBVbtCollisionObject@@HH1HH@ZA) referenced in function "public: __thiscall PhysicsBullet::PhysicsBullet(class PhysicsWorld *)" (??0PhysicsBullet@@QAE@PAVPhysicsWorld@@@Z)
1>physJointBullet.obj : error LNK2019: unresolved external symbol "public: void __thiscall btRigidBody::setDamping(float,float)" (?setDamping@btRigidBody@@QAEXMM@Z) referenced in function "public: __thiscall PhysJointBullet::PhysJointBullet(class Physics *,struct PhysJointInfo &)" (??0PhysJointBullet@@QAE@PAVPhysics@@AAUPhysJointInfo@@@Z)
1>btBody.obj : error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::setDamping(float,float)" (?setDamping@btRigidBody@@QAEXMM@Z)
...
1>../../../game/Re-Spawn.dll : fatal error LNK1120: 66 unresolved externals
1>
1>Build FAILED.

I am not sure if I am doing something stupid or whether I missed something in the documentation. Any help will be greatly appreciated.

I am compiling using Visual Studio 2010 on Windows 7 Professional.

Thanks
Q

About the author

Gobbo Games is an Independent Games Development company operating from Durban in South Africa. We believe in creating high-quality cost-effective games that remain true to the belief of Independent Game Developers around the world.


#1
04/29/2011 (2:11 am)
Never mind ... I fixed this.

1). Had to modify the libbullet project and change the intermediate directory from Vc2008 to Vc2010.

2). Had to add a reference to libbullet on the Framework and References section under common properties.

All good now. :)
#2
05/03/2011 (10:15 pm)
GMK 1.2.10 released?
#3
05/03/2011 (10:17 pm)
I think this is a Preview Release ... not sure. You will need to contact LogicKing to find out.
#5
09/06/2011 (10:27 am)
I get this:
Quote:
16> Creating library ../../../game/Tergus.lib and object ../../../game/Tergus.exp
16>physics.obj : error LNK2019: unresolved external symbol "public: static class Physics * __cdecl PhysicsBullet::createPhysicsBullet(class PhysicsWorld *)" (?createPhysicsBullet@PhysicsBullet@@SAPAVPhysics@@PAVPhysicsWorld@@@Z) referenced in function "public: static void __cdecl Physics::createPhysics(bool,class PhysicsWorld *)" (?createPhysics@Physics@@SAX_NPAVPhysicsWorld@@@Z)
16>../../../game/Tergus.dll : fatal error LNK1120: 47 unresolved externals
This of course is not ALL of it, but parts

I followed the docs exactly. I guess this was never resolved?
Also, if I used your precompiled EXE, it crashes all the time. If I go into the editor, and select anything with GMK, and try to exit out of GMK, it crashes. If I load your demo, and try to exit, it crashes.
#6
09/06/2011 (10:28 am)
I would like to think as much as your two addons cost, this would work a little better??