Can't build OgreBullet

BigBoss

12-08-2011 13:38:08

Hello!

I have trouble building OgreBullet in Visual Studio 2008 (VC9).
I get the following errors:


Error 4 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\collisions\include\OgreBulletCollisionsPreRequisites.h 39 OgreBulletCollisions

Error 9 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\dynamics\include\OgreBulletDynamicsPreRequisites.h 37 OgreBulletDynamics

Error 13 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\dynamics\include\ogrebulletdynamicsprerequisites.h 37 Dynamics_Demos

Error 19 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\dynamics\include\ogrebulletdynamicsprerequisites.h 37 Dynamics_Demos

Error 22 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\dynamics\include\ogrebulletdynamicsprerequisites.h 37 Dynamics_Demos

Error 25 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\dynamics\include\ogrebulletdynamicsprerequisites.h 37 Dynamics_Demos

Error 28 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\dynamics\include\ogrebulletdynamicsprerequisites.h 37 Dynamics_Demos

Error 31 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\dynamics\include\ogrebulletdynamicsprerequisites.h 37 Dynamics_Demos

Error 32 fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory c:\ogresdk\addons\ogrebullet\demos\include\betagui.h 8 Dynamics_Demos


It seems it cannot find Ogre.h, I have built Bullet itself and correctly set up the environment variables so I don't really know what's the problem so now I'm stuck.

Please help!

Kosmos

12-08-2011 14:37:07

just change include paths for your current directory structure.
if it can't find ogre.h, that mean you done something wrong.
i have working projects for vc++ 2010 and can share with it if you need

BigBoss

19-08-2011 12:43:27

Thanks for the help, I managed to solve the issue, it works now!
Sorry for the late reply.

RCyberW

25-08-2011 00:27:27

Hi, I'm new to OgreBullet and I'm having similar issue, can you explain how did you come to your solution? I'm using Visual Studio 2010

CiaranMcC

24-09-2011 11:15:36

Thanks for the help, I managed to solve the issue, it works now!
Sorry for the late reply.


What was the solution? I'm using Visual Studo 2010 and getting the same problem

nww02

27-09-2011 21:31:54

@KieranMcC:

You need to go into the Project settings (right clicking on your project in the solution explorer, for example), open up the C/C++, General settings and Add ensure the includes folder under where you installed OGRE is added to the "Additional Include Directories".

for example, it might be C:\OgreSDK_vc9_v1-7-2\includes\OGRE

Basically, point it at the folder where the ogre.h is and you'll probably find it all springs to life. If not, check your includes folder, as detailed above.

Bear in mind that getting this compiled is really quite tricky unless you're a C++ Guru.

CiaranMcC

28-09-2011 17:46:33

@nww02
Yes I know have spent the last few days trying to get this to built. Currently trying to build btOgre, which is another wrapper for bullet.