[PD] how to compile fat externals for apple with d_i386/d_amd64/d_arm64?)

IOhannes m zmoelnig zmoelnig at iem.at
Tue Apr 19 13:11:46 CEST 2022


On 4/17/22 19:14, Alexandre Torres Porres wrote:
> So, yeah, doesn't seem possible, but I'm still not sure yet, and other
> than, it seems I can't mix in the download a fat binary (with 64/arm) along
> with some other binary for 32 bits (darwin or 'd_i386'). If I'm using Pd 32
> bits it won't be able to load the correct one as it tries to load the fat
> one and fails!

hmm.

i guess there's two separate bugs here

1. i *think*, on macOS Pd should first try to load the arch-specific 
extensions (`.d_i386`), and only then it should fall back to loading the 
fat binary (`.d_fat`).
obviously it doesn't do that [1] right now.

2. if it fails to open a given binary (e.g. because of the wrong 
architecture), it should continue to try the other file extensions.
could you provide the full (related) output of the Pd-console, when it 
tries (and fails) to load the i386 binary?


mfasr
IOhannes


[1] 
<https://github.com/pure-data/pure-data/blob/18c9695ba4de543c51c2c013b45b99b8f1c35a19/src/s_loader.c#L68-L69>
-------------- 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-list/attachments/20220419/fb58b0e5/attachment.sig>


More information about the Pd-list mailing list