<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1476284787917_6662">> You’ll probably need to build form source in either environment if you want to be <br></div><div id="yui_3_16_0_ym19_1_1476284787917_7496">> sure of the deployment target. Both Homebrew and Macports are focused on <br></div><div>> running OS software for the current system, much less so for building baked <br></div><div>> libraries to run on other systems.</div><div id="yui_3_16_0_ym19_1_1476284787917_6751"><br></div><div id="yui_3_16_0_ym19_1_1476284787917_6790" dir="ltr">Ok, so I tried out homebrew on a fresh OSX 10.11 vm.  Great speed of installation, <br></div><div id="yui_3_16_0_ym19_1_1476284787917_6791" dir="ltr">and flawless downloading of necessary packages.  And it results in completely <br></div><div dir="ltr">borked external libs-- at least the ones that depend on an external library.</div><div id="yui_3_16_0_ym19_1_1476284787917_6792" dir="ltr"><br></div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18566">Take oggread~.pd_darwin for example:</div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18564"><br clear="none"></div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18570">With macports:<br clear="none"></div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18563">`otool -L oggread~.pd_darwin`<br clear="none"></div><div id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18027"><div id="yui_3_16_0_ym19_1_1476284787917_6831"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1476284787917_6832">gives this:<br></div><div id="yui_3_16_0_ym19_1_1476284787917_6913"><br clear="none"></div></div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18560">/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)</div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18558">/opt/local/lib/libvorbis.0. dylib (compatibility version 5.0.0, current version 5.8.0)</div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18556">/opt/local/lib/libvorbisenc.2. dylib (compatibility version 3.0.0, current version 3.11.0)</div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18555">/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 915.0.0)</div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18583"><div id="yui_3_16_0_ym19_1_1476284787917_7223"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1476284787917_7224">***</div><div id="yui_3_16_0_ym19_1_1476284787917_7225"><br></div><div>When building the app bundle, Hans (I think) wrote a script that can grab the <br></div><div id="yui_3_16_0_ym19_1_1476284787917_7226" dir="ltr">/opt/local/lib dependencies, copy them to the app bundle, and revise the path <br></div><div id="yui_3_16_0_ym19_1_1476284787917_7227" dir="ltr">in the binary using @executable_path to make sure the dependecies in the app <br></div><div id="yui_3_16_0_ym19_1_1476284787917_7228" dir="ltr">bundle are correctly found when loading an external.<br></div><div id="yui_3_16_0_ym19_1_1476284787917_7315"><br clear="none"></div></div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18585">Now, with homebrew:</div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18563">otool -L oggread~.pd_darwin<br clear="none"></div><div id="yui_3_16_0_ym19_1_1476284787917_5063" dir="ltr"><br clear="none"></div><div dir="ltr" id="yiv8949594039m_-9203480457081457445yui_3_16_0_ym19_1_1476280510330_18560">/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)</div><div id="yui_3_16_0_ym19_1_1476284787917_7509">/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 915.0.0)</div><div id="yui_3_16_0_ym19_1_1476284787917_7508"><br></div><div id="yui_3_16_0_ym19_1_1476284787917_7507">***</div><div id="yui_3_16_0_ym19_1_1476284787917_7506"><br></div><div id="yui_3_16_0_ym19_1_1476284787917_7505" dir="ltr">There's no path listed at all to the ogg lib dependencies.  When I try to load <br></div><div id="yui_3_16_0_ym19_1_1476284787917_8266" dir="ltr">oggread~ with the Purr Data app bundle I just created it doesn't search <br></div><div id="yui_3_16_0_ym19_1_1476284787917_7810" dir="ltr">/usr/local/lib and consequently reports missing symbols.</div><div id="yui_3_16_0_ym19_1_1476284787917_7568" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1476284787917_7566" dir="ltr">Any clue how to get the compiler to actually link to the necessary libs when <br></div><div id="yui_3_16_0_ym19_1_1476284787917_7954" dir="ltr">using homebrew? </div><div id="yui_3_16_0_ym19_1_1476284787917_8200" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1476284787917_8208" dir="ltr">-Jonathan<br> </div><div class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_ym19_1_1476284787917_6653" class="yahoo_quoted"><div id="yui_3_16_0_ym19_1_1476284787917_6652" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"><div id="yui_3_16_0_ym19_1_1476284787917_6651" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"><div id="yui_3_16_0_ym19_1_1476284787917_6657" class="y_msg_container"><div id="yiv2426489670"><div id="yui_3_16_0_ym19_1_1476284787917_7503"><div id="yui_3_16_0_ym19_1_1476284787917_7502" class="yiv2426489670"><br class="yiv2426489670" clear="none"><div id="yui_3_16_0_ym19_1_1476284787917_7744" class="yiv2426489670">
<div id="yui_3_16_0_ym19_1_1476284787917_7743" class="yiv2426489670" style="color:rgb(0, 0, 0);letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;">--------<br class="yiv2426489670" clear="none">Dan Wilcox<br class="yiv2426489670" clear="none"><a rel="nofollow" shape="rect" class="yiv2426489670" target="_blank" href="https://twitter.com/danomatika">@danomatika</a><br class="yiv2426489670" clear="none"><a rel="nofollow" shape="rect" class="yiv2426489670" target="_blank" href="http://danomatika.com/">danomatika.com</a><br class="yiv2426489670" clear="none"><div class="yiv2426489670"><a rel="nofollow" shape="rect" class="yiv2426489670" target="_blank" href="http://robotcowboy.com/">robotcowboy.com</a></div></div>

</div>
<br class="yiv2426489670" clear="none"><div class="yiv2426489670yqt1455914810" id="yiv2426489670yqt11861"><div id="yui_3_16_0_ym19_1_1476284787917_7501"><blockquote id="yui_3_16_0_ym19_1_1476284787917_7500" class="yiv2426489670" type="cite"><div class="yiv2426489670">On Oct 10, 2016, at 12:03 PM, Jonathan Wilkes <<a rel="nofollow" shape="rect" class="yiv2426489670" ymailto="mailto:jancsika@yahoo.com" target="_blank" href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>> wrote:</div><br class="yiv2426489670Apple-interchange-newline" clear="none"><div class="yiv2426489670"><div class="yiv2426489670"><div class="yiv2426489670" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;">> Judging from the output of brew —env, there is a MACOSX_DEPLOYMENT_TARGET you should be able to set/override. Simplest way would be <a rel="nofollow" shape="rect" class="yiv2426489670" target="_blank" href="http://stackoverflow.com/questions/23338713/homebrew-how-to-permanently-override-homebrew-cc-homebrew-cxx-env-settings">when running brew</a>:<div class="yiv2426489670qtdSeparateBR"><br class="yiv2426489670" clear="none"><br class="yiv2426489670" clear="none"></div><div class="yiv2426489670yahoo_quoted" id="yiv2426489670yui_3_16_0_1_1476120924952_4078" style="display:block;"><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4077" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4076" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv2426489670y_msg_container" id="yiv2426489670yui_3_16_0_1_1476120924952_4125"><div class="yiv2426489670" id="yiv2426489670"><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4124"><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4210"><br class="yiv2426489670" clear="none"></div><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4211">>     MACOSX_DEPLOYMENT_TARGET=10.6 brew …</div><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4143"><br class="yiv2426489670" clear="none"></div><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4144">> That, in combination with —build-from-source when installing packages, might give you want you need.<br class="yiv2426489670" clear="none"><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4145"><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4488"><br class="yiv2426489670" clear="none"></div><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4843">That could work, but then I'm back to building from source.  (macports uses binaries for most stuff, btw.)<br class="yiv2426489670" clear="none"></div><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4844"><br class="yiv2426489670" clear="none"></div><div class="yiv2426489670" id="yiv2426489670yui_3_16_0_1_1476120924952_4831">I'm happy to investigate further _if_ a homebrew dev says that they officially support installing this way.  There's a similar way <br class="yiv2426489670" clear="none"></div><div class="yiv2426489670" dir="ltr" id="yiv2426489670yui_3_16_0_1_1476120924952_6154">to change the deployment target for macports.  But one of the devs told me that kind of compatibility isn't a design goal and <br class="yiv2426489670" clear="none"></div><div class="yiv2426489670" dir="ltr" id="yiv2426489670yui_3_16_0_1_1476120924952_6138">they don't support doing that.</div><div class="yiv2426489670" dir="ltr" id="yiv2426489670yui_3_16_0_1_1476120924952_6126"><br class="yiv2426489670" clear="none"></div><div class="yiv2426489670" dir="ltr" id="yiv2426489670yui_3_16_0_1_1476120924952_6127">-Jonathan<br class="yiv2426489670" clear="none"></div></div></div></div></div></div> </div> </div>  </div></div></div></div></blockquote></div></div><br class="yiv2426489670" clear="none"></div></div></div><br><br></div> </div> </div>  </div></div></body></html>