Game Development Community

Compiling issues (FIXED)

by Michael Branin · in Game Mechanics Kit · 11/18/2009 (1:17 am) · 8 replies

ok I am using win 7 64bit and visual studio Express 2008.

I can compile T3d 1.01 just fine, and I can compile GMK merged into T3d just fine.

Until ...

When trying to follow the directions for adding in the bullet physics pack I keep coming across this error.

Error	1	fatal error C1083: Cannot open include file: 'btBulletDynamicsCommon.h': No such file or directory	d:torquetorque 3d 2009 sdk 1.0.1 - gmkenginesourcet3dlogickingmechanicsphysicsbulletphysicsbullet.h	13

I know I have followed the programmers guide to the letter and still I keep getting this eeor on compile.
Any ideas?

#1
11/18/2009 (6:59 am)

Michael, it just can't find bullet header files.

You probably missed one of the following steps during installation:

(Step 1) Check that you have copied physicsPack\bullet directory to engine\lib directory.
(Step 4)
Check that you have provided path to include files.
Project Properties->C/C++->General->Additional Include Directories
Bullet
../../../../../engine/lib/bullet/include



#2
11/18/2009 (8:31 am)
you have to make sure when adding the include files and the other steps that you do for both release and debug.
#3
11/18/2009 (9:21 am)
ok under

Project Properties->C/C++->General->Additional Include Directories

the only line included there is

../../../../../engine/lib/bullet/lib

I have this exact same line in both the debug and the release builds and I still get the same error every time I try to compile

Also I have copied the entire bullet folder to my engine/libs folder so the path to my include folder is

D:\Torque\Torque 3D 2009 SDK 1.0.1 - GMK\Engine\lib\bullet\include

I have even tried to put the actual true path in

Project Properties->C/C++->General->Additional Include Directories

so that it reads as

D:\Torque\Torque 3D 2009 SDK 1.0.1 - GMK\Engine\lib\bullet\include

Nomatter what it still tells me it can not find this include file when compiling
#4
11/18/2009 (9:22 am)
In Project Properties->C/C++->General->Additional Include Directories
Should be not the ../../../../../engine/lib/bullet/lib
but the ../../../../../engine/lib/bullet/include
#5
11/18/2009 (9:27 am)
Sigh lol I meant includeit is include sorry about the misprint
#6
11/18/2009 (9:32 am)
Are you sure this is misprint? Since you have also provide path to libs.



Step 2
Provide path to additional library directories.
Project Properties->Linker->General->Additional Library Directories
Bullet
../../../../../engine/lib/bullet/lib

Step 4
Provide path to include files.
Project Properties->C/C++->General->Additional Include Directories
Bullet
../../../../../engine/lib/bullet/include


If you provided these paths and still got this error then there's missing files in
your_torque_3d_path/Engine/lib/bullet

Have you copied bullet's files there?

Step 1
Bullet
Copy physicsPack/bullet directory to engine/lib directory.
#7
11/18/2009 (9:46 am)
Hold up should I be adding these changes to my torque project settings or my torque project dll settings.
#8
11/18/2009 (9:55 am)
Never mind. I just compiled successfully. you have to add those changes to the dll project not the actual project.