Can't build demo project in Xcode
-
- Posts: 1
- Joined: Tue May 15, 2012 12:08 pm
Can't build demo project in Xcode
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?
-
- Posts: 4
- Joined: Tue May 29, 2012 1:51 pm
Re: Can't build demo project in Xcode
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
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