Creating a project from scratch

From Physics Simulation Wiki

(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
* Create a new C++ console application, using XCode:
* Create a new C++ console application, using XCode:
-
[[Image:newxcodeproject.jpg]]
+
[[Image:newxcodeproject.png]]
*  put it in next to bullet-2.x, in the develop folder:
*  put it in next to bullet-2.x, in the develop folder:
-
[[Image:developfolder.jpg]]
+
[[Image:developfolder.png]]
* Open the main.cpp file and add #include "btBulletDynamicsCommon.h":
* Open the main.cpp file and add #include "btBulletDynamicsCommon.h":
-
[[Image:addcommoninclude.jpg]]
+
[[Image:addcommonincludepng]]
* Edit the project settings
* Edit the project settings
-
[[Image:editxcodeprojectsettings.jpg]]
+
[[Image:editxcodeprojectsettings.png]]
* Add the bullet-2.x/src folder:
* Add the bullet-2.x/src folder:
-
[[Image:addbulletsrcinclude.jpg]]
+
[[Image:addbulletsrcinclude.png]]
-
[[Image:addbulletsrcinclude.jpg]]
+
[[Image:addbulletsrcinclude1.png]]
* Now build the project:
* Now build the project:
-
[[Image:buildxcode.jpg]]
+
[[Image:buildxcode.png]]
From here, continue to the [[HelloWorld]] tutorial.
From here, continue to the [[HelloWorld]] tutorial.

Revision as of 22:09, 3 November 2008

Creating a project from scratch using Visual Studio

Creating a project from scratch using XCode

Assume we downloaded bullet-2.x.tgz and unzipped it into a folder /Users/name/develop, we will have for example: /Users/name/develop/bullet-2.72

  • Create a new C++ console application, using XCode:

Image:newxcodeproject.png

  • put it in next to bullet-2.x, in the develop folder:

Image:developfolder.png

  • Open the main.cpp file and add #include "btBulletDynamicsCommon.h":

File:Addcommonincludepng

  • Edit the project settings

Image:editxcodeprojectsettings.png

  • Add the bullet-2.x/src folder:

Image:addbulletsrcinclude.png Image:addbulletsrcinclude1.png

  • Now build the project:

Image:buildxcode.png From here, continue to the HelloWorld tutorial.

Personal tools