My First Project Xcode

This tutorial is for Xcode 3.2.6. (Tutorial for Xcode 4 will be available soon.)

1) Create a new Xcode project. For the basic application with ViiM go with Application in the left pane -> Command Line Tool, press choose... and save it wherever you want. 2) Now that you have your project's main window in front of you, you can delete the Documentation folder because it's not needed (you can Also move to trash). 3) Now we add ViiM.framework: right click on your project and choose Add -> Existing frameworks.... Press Add other, navigate to your /Library/Frameworks folder and choose ViiM.framework. 4) Expand the Targets and double click on your target to show the target info pane. Now choose the build settings tab and change the following (you can just write the following underlined words in the "Search in Build Settings" search bar to go directly to them)
 * Architectures to Standard (32/64-bit Intel)
 * Valid Architectures to x86_64
 * In Header Search Paths add
 * /usr/local/include
 * /usr/include/ni

NOTE: Take special care if you are in Debug or Release, because changes in one profile won't affect the other! 5) Quit the target info pane and finally include ViiM with #include in your main.cpp and you're ready to go! 6) Here is ViiM "hello world" application. You create the ViiM object, start the sensor and constantly update the frames per second and print it to the terminal. You can download the project in the end of this page. To see the Debugger Console, click on the gdb icon: P.S.: There might be an issue when linking the project in debug, related to OpenNI. If you bump into this problem try changing Optimization Level to Fastest, Smallest [-Os] Xcode 3.2 MyFirstProject