<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Might be related to this:&nbsp;<a href="http://stackoverflow.com/questions/10111987/xcode-build-error-arm-apple-darwin11-gcc-4-2-1-execvp-no-such-file-or-director?rq=1">http://stackoverflow.com/questions/10111987/xcode-build-error-arm-apple-darwin11-gcc-4-2-1-execvp-no-such-file-or-director?rq=1</a><div><br></div><div>You probably need to explictly set CC. See this script which sets the ENV variables based on the SDK root:&nbsp;<a href="https://github.com/danomatika/apothecary/blob/master/scripts/apothecary/formulas/tess2/ios/build_ios.sh">https://github.com/danomatika/apothecary/blob/master/scripts/apothecary/formulas/tess2/ios/build_ios.sh</a></div><div>&nbsp;<br><div><div>On Jul 28, 2013, at 10:14 PM, Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="background-color: rgb(255, 255, 255); font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Thanks.&nbsp; I've got the xcode-select and -isysroot pointing at the correct location.<br>Any ideas on the error I'm getting (below)?<br><br>-Jonathan<br><br>cd ../obj;&nbsp; cc -Wl -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework Carbon -framework CoreMIDI -arch i386 -arch ppc&nbsp; -o ../bin/pd g_canvas.o g_graph.o g_text.o g_rtext.o g_array.o g_template.o g_io.o g_scalar.o g_traversal.o g_guiconnect.o g_readwrite.o g_editor.o g_all_guis.o g_bang.o g_hdial.o g_hslider.o g_mycanvas.o g_numbox.o g_toggle.o g_vdial.o g_vslider.o g_vumeter.o m_pd.o m_class.o m_obj.o m_atom.o m_memory.o m_binbuf.o m_conf.o m_glob.o m_sched.o s_main.o s_inter.o s_file.o s_print.o s_loader.o s_path.o s_entry.o s_audio.o s_midi.o s_utf8.o d_ugen.o d_ctl.o d_arithmetic.o d_osc.o d_filter.o d_dac.o d_misc.o d_math.o d_fft.o d_array.o
 d_global.o d_delay.o d_resample.o x_arithmetic.o x_connective.o x_interface.o x_midi.o x_misc.o x_time.o x_acoustics.o x_net.o x_qlist.o x_gui.o x_list.o d_soundfile.o s_midi_pm.o s_audio_pa.o s_audio_paring.o ../portaudio/src/common/pa_allocation.o ../portaudio/src/common/pa_converters.o ../portaudio/src/common/pa_cpuload.o ../portaudio/src/common/pa_dither.o ../portaudio/src/common/pa_front.o ../portaudio/src/common/pa_process.o ../portaudio/src/common/pa_stream.o ../portaudio/src/common/pa_trace.o ../portaudio/src/common/pa_debugprint.o ../portaudio/src/common/pa_ringbuffer.o ../portaudio/src/os/unix/pa_unix_util.o ../portaudio/src/os/mac_osx/pa_mac_hostapis.o ../portaudio/src/hostapi/coreaudio/pa_mac_core.o ../portaudio/src/hostapi/coreaudio/pa_mac_core_blocking.o ../portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.o ../portmidi/pm_mac/pmmac.o ../portmidi/pm_mac/pmmacosxcm.o ../portmidi/pm_common/pmutil.o ../portmidi/pm_common/portmidi.o
 ../portmidi/porttime/ptmacosx_cf.o d_fft_mayer.o d_fftroutine.o&nbsp; -ldl -lm -lpthread<br>clang: warning: unknown warning option '-Wl'<br>llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory<br>clang: error: linker (via gcc) command failed with exit code 255 (use -v to see invocation)<br>make: *** [../bin/pd] Error 255<br>macintosh-3:src David$ xcode-select -print-path<br>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer<br><br>Wee. You're lucky I just did a bunch of low level library compiling stuff on <b style="background-color: rgb(255, 255, 102); ">OSX</b>/iOS for OpenFrameworks ...
<br><div>
<div>On Jul 27, 2013, at 5:51 AM, <a href="mailto:pd-list-request%20%3Cat%3E%20iem.at">pd-list-request &lt;at&gt; iem.at</a> wrote:</div>
<br class="Apple-interchange-newline"><blockquote type="cite">
<div>
<span>From:<span class="Apple-converted-space">&nbsp;</span></span><span>Jonathan Wilkes &lt;<a href="mailto:jancsika%20%3Cat%3E%20yahoo.com">jancsika &lt;at&gt; yahoo.com</a>&gt;<br></span>
</div>
<div>
<span>Subject:<span class="Apple-converted-space">&nbsp;</span></span><span>Re: [PD] <b style="background-color: rgb(255, 255, 102); ">Building</b> Pd App on <b style="background-color: rgb(255, 255, 102); ">OSX</b><br></span>
</div>
<div>
<span>Date:<span class="Apple-converted-space">&nbsp;</span></span><span>July 27, 2013 1:34:11 AM EDT<br></span>
</div>
<div>
<span>To:<span class="Apple-converted-space">&nbsp;</span></span><span>Miller Puckette &lt;<a href="mailto:msp%20%3Cat%3E%20ucsd.edu">msp &lt;at&gt; ucsd.edu</a>&gt;<br></span>
</div>
<div>
<span>Cc:<span class="Apple-converted-space">&nbsp;</span></span><span>"<a href="mailto:pd-list%20%3Cat%3E%20iem.at">pd-list &lt;at&gt; iem.at</a>" &lt;<a href="mailto:pd-list%20%3Cat%3E%20iem.at">pd-list &lt;at&gt; iem.at</a>&gt;<br></span>
</div>
<br><br><span>On 07/06/2013 06:18 PM, Miller Puckette wrote:</span><br><blockquote type="cite">Yeah... I originally assembled it by trial and error, starting from the<br>"Wish Shell" app and changing stuff by trial and error. &nbsp;It might even<br>be the case that the "Wish Shell.app" archive used by the script below<br>can be replaced with your own local one... but I thought it safer to cache<br>&nbsp;copy once I had it all working.<br>
</blockquote>
<br><span>After yet another wasted hour on a non-free OS,</span><br><span>some questions regarding makefile.mac:</span><br><br><span>* what is -O6? &nbsp;It throws an error right off the bat. &nbsp;(I changed it to -O3 to fix)</span><br><span>* why is there "-arch ppc" as well as i386?</span><br>
</blockquote>
<div><br></div>
<div>By specifying multiple architectures, <b style="background-color: rgb(255, 255, 102); ">OSX</b> will build a "fat" lib that supports them in a single binary.</div>
<div><br></div>
<div>i386 + ppc is the&nbsp;old "universal binary/lib". The new 10.7+ format is i386 + x86_64 so I'd suggest dropping the old format</div>
<div>now as the vast majority of people are using newer Intel machines.</div>
<br><blockquote type="cite">
<span>* Why is there -isysroot? &nbsp;If I'm using Xcode 4.6 the directory</span><br><span>specified after that flag in makefile.mac doesn't exist, and I get an error</span><br><span>that stdlib.h doesn't exist.</span><br>
</blockquote>
<div><br></div>
<div>sysroot should point to the Mac <b style="background-color: rgb(255, 255, 102); ">OSX</b> SDK location. For newer Xcodes, there is a commandline util that returns the path to the Xcode</div>
<div>developer root:&nbsp;xcode-select -print-path. With Xcode 4.6, it returns:</div>
<div><br></div>
<div>/Applications/Xcode.app/Contents/Developer</div>
<div><br></div>
<div>For example, with the 10.8 SDK you can use this:</div>
<div>$(xcode-select -print-path)/Platforms/Mac<b style="background-color: rgb(255, 255, 102); ">OSX</b>.platform/Developer/SDKs/Mac<b style="background-color: rgb(255, 255, 102); ">OSX</b>10.8.sdk/</div>
<div><br></div>
<div>Naturally, you can do a search in that SDKs folder and choose the 
last one to build for the latest SDK or simply use a shell variable:</div>
<div><br></div>
<div><b style="background-color: rgb(255, 255, 102); ">OSX</b>_SDK_VER=10.8</div>
<div>SYSROOT=$(xcode-select -print-path)/Platforms/Mac<b style="background-color: rgb(255, 255, 102); ">OSX</b>.platform/Developer/SDKs/Mac<b style="background-color: rgb(255, 255, 102); ">OSX</b>$<b style="background-color: rgb(255, 255, 102); ">OSX</b>_SDK_VER.sdk/</div>
<br><blockquote type="cite">
<span>* Any hint what -isysroot should be to find something as</span><br><span>common as stdlib.h?</span><br>
</blockquote>
<div><br></div>
<div>Yes, it contains all of the includes and libs for that particular SDK.</div>
<br><blockquote type="cite">
<span>* Is "make -f makefile.mac" supposed to compile using cc, gcc, or something else?</span><br>
</blockquote>
<br>
</div>
<div>gcc should be fine for now, you could target llvm-gcc if you want, but gcc isn't disappearing complete in the meantime.</div>
<div><br></div>



<div>--------</div>
<div>Dan Wilcox</div>
<div> &lt;at&gt; danomatika</div>
<div><a href="http://danomatika.com/">danomatika.com</a></div>
<div><a href="http://robotcowboy.com/">robotcowboy.com</a></div>
<div><br></div>
<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--------</div><div>Dan Wilcox</div><div>@danomatika</div><div><a href="http://danomatika.com">danomatika.com</a></div><div><a href="http://robotcowboy.com">robotcowboy.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>