Getting OpenFrameworks running in Mac OS Lion with Xcode 4.1
Today I was starting learning openFrameworks (a c++ plus library to make interactive projects), and so I started downloaded the last version of oF, that is here for download.
After download I have extract the compacted file and put this into my workspace.
So after that I have choose one of the examples programs that comes up with the oF library, to start test. I have decided to use the advanced3dExample, inside this folder we have the Xcode file, so we just click on it the Xcode should open with the project.
After pick up the program, and open the Xcode, I just tried build an run the code, but I have received a fail message.
Looking for in the web I have found that oF, have some problems with the MacOS 10.7 SDK, so to run properly the example, looks that the 10.7 changed some structure and code, and oF it’s not enable yet to use this new code, and structure. So what I have to do next, is change the Base SDK, of my project to use the old version MacOS 10.6 SDK, that’s works well with oF.
First off change the OpenFramework, Base SDK:
And after, change also your application Base SDK:
After be sure that both are using the 10.6 MacOS SDK, it’s time to compile again, but first check if you choose the correct program to be compile, as the fact that we have to projects (the example project, and the openFrameworks project), it’s possible that is selected to compile the openFramework not our application advanced3dExample.
So check if the project to be compiled is our example program, the image below shows where this information appears in the Xcode (it’s show beside the RUN icon):
In case that the program that shows there is not our example that we want you have to click to change:
Everything looks well now, so it’s time to build and run our example, and after the compilation it’s done we receive our application running:
Now I`m able to keep learning C++ and OpenFrameworks, and you also






Thanks – you saved my evening ;-D
you’re welcome