On Feb 11, 2012, at 11:31 AM, Hans-Christoph Steiner wrote:
I just tried loading gridflow 9.13 on Pd-extended 0.43 on Mac OS X 10.6.8, and it couldn't load because it was looking for libpng12.0.dylib inside of Pd-extended. The included dylibs are automatically included based on what the included objects are linked to, so they are not good to rely on, because they can change in a given version.
So you can easily include libpng12.0.dylib in your gridflow package, here's how:
cp /Applications/Pd-extended.app/Contents/lib/libpng12.0.dylib \ /Library/Pd/gridflow/libpng12/ install_name_tool -id /Library/Pd/gridflow/libpng12/libpng12.0.dylib \ /Library/Pd/gridflow/libpng12/libpng12.0.dylib install_name_tool -change @executable_path/../../lib/libpng12.0.dylib \ @loader_path/libpng12/libpng12.0.dylib \ /Library/Pd/gridflow/gridflow.pd_darwin
Now the gridflow/ folder can go into /Library/Pd, ~/Library/Pd or anywhere really. @loader_path is the path from where gridflow.pd_darwin is loaded.
I forgot to say, it will be relocatable once all of the libs in gridflow/libs are set to @loader_path/libs/, i.e.
install_name_tool -change \ /Library/Pd/gridflow/libs/libglib-1.2.0.dylib \ @loader_path/libs/libglib-1.2.0.dylib \ /Library/Pd/gridflow/gridflow.pd_darwin
.hc
----------------------------------------------------------------------------
"[T]he greatest purveyor of violence in the world today [is] my own government." - Martin Luther King, Jr.