ODE on Xcode (Leopard)

Machine Learning 2010. 1. 7. 14:24

0. Compile ode.11.1 according to the instruction in the 'readme' file

- If it doesn't copy libs and headers in /usr/local/** then;

-- copy libdrawstuff.a, libdrawstuff.la, libode.a, libode.la into /usr/local/lib

-- copy ode/*.h into /usr/local/include/ode

-- copy drawstuff/*.h into /usr/local/include/drawstuff

1. File->New Project->Command LIne Utility/C++ Tool
201001071355.jpg

2. Select folder and Name the project as you want

3. Create Group names "Frameworks" and add 3 Frameworks (AGL.Framework, Carbon.Framework and OpenGL.Framework)


201001071404.jpg

4. Drag 3 frameworks and drop them into Target->[yourProjectName]->Copy Files


201001071408.jpg

5. Copy contents of "demo_friction.cpp" (for example) and past it on the main.cpp file.


201001071411.jpg

6. Goto "project [yourProjectName] Info" -> "Build" Tap -> "Search Paths" section;

- add "/usr/local/include" on "Header Search Paths"

- add "/usr/local/lib" on "Library Search Paths"

7. Goto "project [yourProjectName] Info" -> "Build" Tap -> "Linking" section;

- add "-ldrawstuff -lode" on "Other Linker Flags"


201001071417.jpg

8. Copy "texturepath.h" and "textures" folder into your project directory

9. Compile and Run~!


katty2.0.zip

: