[PD-dev] embedding macOS libraries (was Re: building fluidsynth~)

IOhannes m zmoelnig zmoelnig at iem.at
Wed May 4 08:14:49 CEST 2022


On 5/4/22 03:47, Sebastian Shader via Pd-dev wrote:
> for a simpler example of the changing-rpath mehod, purest_json also distributes shared libs on osx (recursively through the dependencies) https://github.com/residuum/PuRestJson

probably simpler.
but from what i've seen so far, this is just another copy (of with some 
minor modifications) of the original embed-OSX-libraries script that 
hans-christof wrote two decades ago.

my script (that roman mentioned) [1] for the iem-ci (where it is stress 
tested wih all those iem externals, including beasts like Gem), is also 
based on that original embed-OSX-libraries script, but has seen a number 
of improvements over the last 20 years, like being independent of 
homebrew (think macports; or your own personal package manager) or 
having a consistent interface across various platforms (i have multiple 
scripts [2] for windows/macOS/linux, but they all share the same interface).

> but modifying its dependencies.sh file could still work on another directory that you build universals into yourself.

yes.
or just use a script that already has those modifications :-)

of course you can use/hack/... whatever script you find out there.

the reason why i promote mine is, that i want it to become better and 
better and fix all the bugs that people on diverse environments come 
across (with a strong focus on making it work in automated environments).
so that when people come and ask "how do i ship all those external 
libraries with my Pd-external" there is a single reference 
implementation, rather than handful scripts all tailored to specific 
needs and with their own idiosyncratic (or just inherited) bugs.



gfmasdr
IOhannes

[1] <https://git.iem.at/pd/iem-ci/-/blob/main/localdeps/localdeps.macos.sh>
[2] <https://git.iem.at/pd/iem-ci/-/tree/main/localdeps>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20220504/28d4c22f/attachment.sig>


More information about the Pd-dev mailing list