Hello everyone
after 2 days of hitting my head hard against Xcode compilation problems here I’ve summed up all the forum post references and solutions that finally made it work
here is the documentation for whoever incurs in the same nasty problems of compilation with Xcode
HOW TO SOLVE XCODE COMPILATION PROBLEMS - a roundup of solutions
(what worked for me)
configuration tested:
Mac OsX 10.6.4 Snow Leopard
xcode 3.2.3
OpenFrameworks 0.062 FAT
IMPORTANT: The following settings MUST BE SET FOR BOTH the current project you are trying to compile
AND the openFrameworksLib.xcodeproj
steps for newbies:
1- open the project you want to compile (ie:/of_preRelease_v0062_osxSL_FAT/apps/windowExample/windowExample.xcodeproj)
2- upper menu “poject” > edit project settings
3- in the window that just opened > build tab
4- look for the following settings and set them as marked here:
--------------- SETTINGS (images further down) ---------------------
Architectures
Architecture: 32- bit Universal
Base SDK : Current Mac Os X
build Active Architecture Only: unchecked
Compiler Version: Gcc 4.0
Search Paths
Library Search Paths: all recursive except poco/include and addons
(double click the value to open the editing window)
-----------------------------------------------------------------------
-
REPEAT THE SAME STEPS FOR the openFrameworksLib.xcodeproj
(doubleclicking on the groups&files_sidebar > openFrameworks_folder > openFrameworksLib.xcodeproj of the current project caused me to crash Xcode)
best option is:
5- open /of_preRelease_v0062_osxSL_FAT/libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj
6- repeat steps 2->4
7 just to be sure clean all the targets and dependencies by
upper menu “build” > clean all targets (with all options checked)
8- build and run your application → voilà it should work (it did for me )
by double clicking the search paths you open these settings window
reference of other forum posts relating to similar Xcode compilation problems:
Their solutions are all summed up in mine and are what I used to find my solution.
If my solution doesn’t work for you, check these:
Snow Leopard and X
http://forum.openframeworks.cc/t/0.061-changes-to-xcode-project-structure/3076/0
change Gcc compiler version to 4.0
http://forum.openframeworks.cc/t/snow-leopard—sticky-thread/2749/0
change architecture and build settings
http://forum.openframeworks.cc/t/xcode-3.2.4—of-git-hub—can’t-compile/4624/0
http://forum.openframeworks.cc/t/snow-leopard-±new-xcode-=-of-nightmares/2599/0
problem with poco or Carbon.h precompilation - uncheck recursiveness of search paths
http://forum.openframeworks.cc/t/carbon.h-precompile-error/2189/11">http://forum.openframeworks.cc/t/carbon.h-precompile-error/2189/11]http://forum.openframeworks.cc/t/carbon.h-precompile-error/2189/11
thanks to you all for providing this awesome tool
hope it helps
cheers
beltran