Game Development Community

Compili not working clean install

by Tom Timothy · in Game Mechanics Kit · 11/21/2009 (4:20 am) · 12 replies

Im not adding anything to tgea 1.8.1 but files from gmk to new project

When i build my soultion i get following 8 errors

Error 7 error LNK2001: unresolved external symbol "public: static class Physics * __cdecl Physics::getPhysics(bool)" (?getPhysics@Physics@@SAPAV1@_N@Z) guiTSControl.obj

Error 8 error LNK2001: unresolved external symbol "public: static class Physics * __cdecl Physics::getPhysics(bool)" (?getPhysics@Physics@@SAPAV1@_N@Z) interiorInstance.obj

Error 9 error LNK2001: unresolved external symbol "public: static class Physics * __cdecl Physics::getPhysics(bool)" (?getPhysics@Physics@@SAPAV1@_N@Z) terrData.obj

Error 10 error LNK2019: unresolved external symbol "public: static class Physics * __cdecl Physics::getPhysics(bool)" (?getPhysics@Physics@@SAPAV1@_N@Z) referenced in function "protected: virtual void __thiscall ClientProcessList::advanceObjects(void)" (?advanceObjects@ClientProcessList@@MAEXXZ) gameProcess.obj

Error 11 error LNK2001: unresolved external symbol "public: static class Physics * __cdecl Physics::getPhysics(bool)" (?getPhysics@Physics@@SAPAV1@_N@Z) player.obj

Error 12 error LNK2001: unresolved external symbol "public: static class Physics * __cdecl Physics::getPhysics(bool)" (?getPhysics@Physics@@SAPAV1@_N@Z) staticShape.obj

Error 13 error LNK2001: unresolved external symbol "public: static class Physics * __cdecl Physics::getPhysics(bool)" (?getPhysics@Physics@@SAPAV1@_N@Z) tsStatic.obj

Error 14 fatal error LNK1120: 1 unresolved externals ../../../game/Antsofwar_DEBUG.exe

this is using files from 1.2.4 GMK kit im sure its easy fix but i cant seem figure out what im doing wrong and have got same results more then 3 times trying to add kit




#1
11/30/2009 (10:28 am)
Hi Tom,

Have you worked it out?

Probably you just forget to add physics files to a project.
Please check similar threads at this forum, maybe this will help.

Thread 1
Thread 2
#2
12/01/2009 (3:18 am)
Okay am i getting this right for tgea 1.8.1 I take everything from kit 1_2_4 thats in the 1.8.1 folder added it over in clean install it should compile or am i missing somthing. Sorry Code level is low im much more into doing graphics. Im not even trying to start the physics yet just up to step four for first build
#3
12/01/2009 (9:58 am)

>Okay am i getting this right for tgea 1.8.1 I take everything from kit >1_2_4 thats in the 1.8.1 folder added it over in clean install it should >compile or am i missing somthing.

Have you read gmkProgrammersGuide.pdf ? It has step by step instruction to compile the project.

However if you are not coder you can use pre-compiled exe file from the package. Please download latest update from your GG account - GMK 1.2.6.

#4
12/02/2009 (7:01 pm)
just thought I would post here instead of starting new thread.
I am getting errors when compiling the basic install before adding physics.
clean install of T3D1.1A and GMK1.2.7. using code patch to merge engine code and game code.
project build fine in release and debug before adding GMK.
here are the errors

Error 14 fatal error C1083: Cannot open include file: 'btBulletDynamicsCommon.h': No such file or directory C:\Torque\Torque 3D 2009 Pro 1.1 Alpha\Engine\source\T3D\logickingMechanics\physics\bullet\physicsBullet.h 13

Error 35 error BK1506 : cannot open file '..\..\Link\VC2k8.Release.Win32\Denia DLL\rigidBody.sbr': No such file or directory BSCMAKE

Error 36 fatal error LNK1181: cannot open input file '..\..\..\game\denia.lib' Denia

Error 37 fatal error LNK1181: cannot open input file '..\..\..\game\denia.lib' NP Denia Plugin


probly something simple and any help would be appreciated
#5
12/03/2009 (2:10 pm)
Error 14 fatal error C1083: Cannot open include file: 'btBulletDynamicsCommon.h': No such file or directory C:\Torque\Torque 3D 2009 Pro 1.1 Alpha\Engine\source\T3D\logickingMechanics\physics\bullet\physicsBullet.h 13



Donald, this error indicates that either you not copied bullet files or
didn't provide include directories for bullet.

Please check steps 1 and 4 of Physics Pack installation from programmers guide:

Step 1
Bullet
Copy physicsPack\bullet directory to engine\lib directory.


Now you will need to change properties of your project in Visual Studio. You can access properties
by pressing Alt+F7.


Step 4
Provide path to include files.
Project Properties->C/C++->General->Additional Include Directories
Bullet
../../../../../engine/lib/bullet/include
#6
12/03/2009 (3:12 pm)
was doing the compile before adding the physics. Steps 1-4 of programmers guide.
#7
12/03/2009 (3:14 pm)
Please check where's the file btBulletDynamicsCommon.h is placed in your Torque dir.
Should be in the engine\lib\bullet

If it there than check for your DLL project.
Project Properties->C/C++->General->Additional Include Directories
Bullet
../../../../../engine/lib/bullet/include
#8
12/03/2009 (5:21 pm)
it is in \Torque 3D 2009 Pro 1.1 Alpha\Engine\lib\bullet\src

there is no include directory
#9
12/03/2009 (6:41 pm)
> there is no include directory

Hmm. You should copy it from the GMK package physicsPack\bullet
#10
12/03/2009 (9:04 pm)
ok I got it to work. just went ahead and added all the physics stuff then compiled nd it worked fine.
#11
12/05/2009 (1:20 pm)
Just so you know that with the current T3D1.1a and GMK 1.2.7 you can not do the compile at the end of this step in your instructions from Programmers guide.


4. Updating scripts and data files
Updating scripts are nearly identical to merging source code. If you’re starting a brand new project
you only have to overwrite files from “game” folder of your project with the ones of GMK.
Otherwise CodePatch will be in use again. This time you should provide paths to the “game” folder
in your project, the original base project, and game folder within GMK to “my path”, “base path”
and “their path” respectively.
The installation process is over now. If every thing has gone smoothly you should be able to
compile your engine from source codes and play with GMK features and editor.


although if you continue and complete the physics steps it works fine.
#12
12/05/2009 (3:39 pm)
skipping the compile in step 4 also fixed my problems FYI