Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue May 15, 2012 12:26 pm 
Offline

Joined: Tue May 15, 2012 12:08 pm
Posts: 1
I downloaded bullet 2.80 (rev2531), installed it as described in wiki, and tried to build BULLET_PHYSICS.xcodeproj. I got "file not found" errors for OpenGL/OpenGL.h and OpenGL/gl.h when it tried to build OpenGLSupport target. What do I have to do to build demo project?


Top
 Profile  
 
PostPosted: Tue Jun 12, 2012 3:09 am 
Offline

Joined: Tue May 29, 2012 1:51 pm
Posts: 4
The way I work with the demos is:

1) Create new Xcode project

2) Add Libraries to link with (click project, go to targets, Build Phases tab, "plus" Link With Libraries)
Add...
GLUT.framework
OpenGL.framework
LinearMath.framework
BulletCollision.framework
BulletDynamics.framework

3) Copy .cpp and .h files from the demo I am interested in (say VehicleDemo for example)

4) Most demos require the .cpp and .h files from Demos/OpenGL... So I copy all of those into my project.

5) I get errors on the "btBulletDynamicsCommon.h" because of how frameworks are structured, vs an includes directory...
So I modify the #include line in the files that need it as follows:
#include "BulletDynamics/btBulletDynamicsCommon.h"

I hope that helps some. Cmake did not do the trick for me, but it turns out to be pretty easy to copy the files into a fresh project to get things working as described above.

-Brian


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group