<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tweaks on Arcanelab Blog</title><link>https://blog.arcanelab.com/tags/tweaks/</link><description>Recent content in Tweaks on Arcanelab Blog</description><generator>Hugo</generator><language>en-US</language><copyright>Zoltán Majoros</copyright><lastBuildDate>Thu, 17 Mar 2011 15:38:00 +0100</lastBuildDate><atom:link href="https://blog.arcanelab.com/tags/tweaks/index.xml" rel="self" type="application/rss+xml"/><item><title>Making openframeworks v0.062 work with Xcode 3.2.5 Recently I wanted to do some…</title><link>https://blog.arcanelab.com/2011/03/making-openframeworks-v0-062-work-with-xcode-3-2-5-recently/</link><pubDate>Thu, 17 Mar 2011 15:38:00 +0100</pubDate><guid>https://blog.arcanelab.com/2011/03/making-openframeworks-v0-062-work-with-xcode-3-2-5-recently/</guid><description>&lt;h1&gt;Making openframeworks v0.062 work with Xcode 3.2.5&lt;/h1&gt;
&lt;p&gt;Recently I wanted to do some creative coding with &lt;a href="http://www.openframeworks.cc/"&gt;openframeworks&lt;/a&gt; on iOS and OS X, but the installation of the library didn&amp;rsquo;t go flawlessly. Here&amp;rsquo;s a short summary how to get version 0.062 to work with Xcode 3.2.5 on Mac OS X 10.6.6:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;download the openframeworks package from the official website: &lt;a href="http://www.openframeworks.cc/download"&gt;http://www.openframeworks.cc/download&lt;/a&gt; (&lt;a href="http://www.openframeworks.cc/versions/preRelease_v0.062/of_preRelease_v0062_osxSL_FAT.zip"&gt;direct link to file&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;extract it to an arbitrary location&lt;/li&gt;
&lt;li&gt;to install the xcode templates, follow the instructions in &lt;strong&gt;PATH_TO_OF_DIR/xcode templates/readme.txt&lt;/strong&gt;. (The &amp;ldquo;dragging method&amp;rdquo; didn&amp;rsquo;t work for me, though, so I had to do the &amp;ldquo;manual&amp;rdquo; install.)&lt;/li&gt;
&lt;li&gt;at this point we need to compile the openframeworks library, so open &lt;strong&gt;PATH_TO_OF_DIR&lt;/strong&gt;&lt;strong&gt;/libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;when I try to compile the library with the default settings, I get 111367 (no kidding!) errors, so after some experiments I figured the following projects settings need to be set (open the project settings and go to the &amp;ldquo;build&amp;rdquo; tab):&lt;br/&gt;- for Architectures set &amp;ldquo;32-bit Universal&amp;rdquo;&lt;br/&gt;- for Base SDK set &amp;ldquo;Mac OS X 10.5&amp;rdquo;&lt;br/&gt;- (optional, don&amp;rsquo;t do this if you&amp;rsquo;d like to support PPC-based Macs) for Build Active Architecture Only set TRUE (check)&lt;br/&gt;Now the library compiled for me without any errors. You can compile both &amp;ldquo;Debug&amp;rdquo; and &amp;ldquo;Release&amp;rdquo; versions.&lt;/li&gt;
&lt;li&gt;now you can go ahead and create an openframeworks project in Xcode by selecting &amp;ldquo;openFrameworks&amp;rdquo; in the User Templates section and select &amp;ldquo;Mac OS X empty example&amp;rdquo; in the right panel. It is &lt;strong&gt;very&lt;/strong&gt; important where you save your project: it must be located in &lt;strong&gt;PATH_TO_OF_DIR/apps/ARBITRARY_DIR/PROJECTNAME&lt;/strong&gt;. For me, for example: &lt;strong&gt;/Users/myusername/Programming/of_preRelease_v0062_osxSL_FAT/apps/Projects/NameOfMyCoolOFProject/&lt;/strong&gt;. If you fail to place the project at the right deepness in the directory tree, the relative paths in the project setting won&amp;rsquo;t resolve correctly, thus your project won&amp;rsquo;t compile.&lt;/li&gt;
&lt;li&gt;still we are not ready, because the default project settings are somewhat outdated, so go to your project settings and change the &amp;ldquo;Base SDK&amp;rdquo; to an existing one, 10.5 could be a good choice. (It might be a good idea to change the template project settings so that you wouldn&amp;rsquo;t have to do this every time you create a new project.)&lt;/li&gt;
&lt;li&gt;at this point the project will finally compile, but there is a warning remaining: &amp;ldquo;Warning: The Copy Files build phase contains this target&amp;rsquo;s Info.plist file &amp;lsquo;openFrameworks-Info.plist&amp;rsquo;.&amp;rdquo; To overcome this, just go and click on the &amp;ldquo;Targets&amp;rdquo; section, and in the list view find the entry named &amp;ldquo;openFrameworks-Info.plist&amp;rdquo; and delete it.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Now your project should compile without any warnings or errors. Yay, congratulations!&lt;/p&gt;</description></item></channel></rss>