<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">You cannot build for i386. Support for that arch was famously removed in macOS 10.15 and those versions of Xcode which use its SDK, probably version 10 or so. Modern fat libs arm64 and x86_64.<br><br><div dir="ltr">enohp ym morf tnes<div>-----------</div><div>Dan Wilcox</div><div>danomatika.com</div><div>robotcowboy.com</div><div><br></div></div><div dir="ltr"><br><blockquote type="cite">On May 1, 2022, at 2:51 AM, Alexandre Torres Porres <porres@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qui., 10 de mar. de 2022 às 19:57, Dan Wilcox <<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I have a fork of pd-lib-builder which supports arm64 & universal builds on macOS. The PR has been sitting for some time but we have been using it successfully for a few projects for some time now:<div><br></div><div><a href="https://github.com/pure-data/pd-lib-builder/pull/69" target="_blank">https://github.com/pure-data/pd-lib-builder/pull/69</a></div><div><br></div><div>To build for arm64, you need a new enough Xcode (12.2 I believe) and that's it. You can cross-compile on an x86_64 machine for arm64 and vice-versa.<br></div></div></blockquote><div><br></div><div>So, I now have a partition with Catalina (10.15.7) and Xcode 12.4, which is the last version catalina accepts. </div><div><br></div><div>According to <a href="https://developer.apple.com/pt/support/xcode/">https://developer.apple.com/pt/support/xcode/</a> I believe 12.1 could have been possible already. 12.5 needs Big Sur. Here's a table from the link</div><div><br></div><div><table class="gmail-typography-caption" style="box-sizing:inherit;border-collapse:collapse;border-spacing:0px;margin:1em 0px;width:816.664px;font-size:12px;line-height:1.33337;letter-spacing:-0.01em;font-family:"SF Pro Text","SF Pro Icons","Helvetica Neue",Helvetica,Arial,sans-serif;min-width:628px;color:rgb(245,245,247);background-color:rgb(0,0,0)"><thead style="box-sizing:inherit"><tr style="box-sizing:inherit"><th style="box-sizing:inherit;font-size:1em;text-align:left;padding:1em 1em 1em 0px;border-bottom:1px solid rgb(153,153,153);background-color:transparent">Versão do Xcode</th><th style="box-sizing:inherit;font-size:1em;text-align:left;padding:1em 1em 1em 0px;border-bottom:1px solid rgb(153,153,153);background-color:transparent">Sistema operacional mínimo necessário</th><th style="box-sizing:inherit;font-size:1em;text-align:left;padding:1em 1em 1em 0px;border-bottom:1px solid rgb(153,153,153);background-color:transparent">SDK</th><th style="box-sizing:inherit;font-size:1em;text-align:left;padding:1em 1em 1em 0px;border-bottom:1px solid rgb(153,153,153);background-color:transparent">Arquitetura</th><th style="box-sizing:inherit;font-size:1em;text-align:left;padding:1em 1em 1em 0px;border-bottom:1px solid rgb(153,153,153);background-color:transparent">Destinos de implantação</th><th style="box-sizing:inherit;font-size:1em;text-align:left;padding:1em 1em 1em 0px;border-bottom:1px solid rgb(153,153,153);background-color:transparent">Simulador</th><th style="box-sizing:inherit;font-size:1em;text-align:left;padding:1em 1em 1em 0px;border-bottom:1px solid rgb(153,153,153);background-color:transparent">Swift</th></tr></thead></table></div><div><br></div><div><table class="gmail-typography-caption" style="box-sizing:inherit;border-collapse:collapse;border-spacing:0px;margin:1em 0px;width:816.664px;font-size:12px;line-height:1.33337;letter-spacing:-0.01em;font-family:"SF Pro Text","SF Pro Icons","Helvetica Neue",Helvetica,Arial,sans-serif;min-width:628px;color:rgb(245,245,247);background-color:rgb(0,0,0)"><tbody style="box-sizing:inherit"><tr style="box-sizing:inherit"><td style="box-sizing:inherit;padding:1em 1em 1em 0px;border-bottom-width:1px;border-bottom-style:solid;vertical-align:top;font-weight:600;width:85px">Xcode 12.4</td><td style="box-sizing:inherit;padding:1em 1em 1em 0px;border-bottom-width:1px;border-bottom-style:solid;vertical-align:top;width:158px">macOS Catalina 10.15.4 <span class="gmail-nowrap" style="box-sizing:inherit;display:inline-block;text-decoration:inherit;white-space:nowrap">(Mac com processador Intel)</span><br style="box-sizing:inherit"><br style="box-sizing:inherit">macOS Big Sur 11<br style="box-sizing:inherit"><span class="gmail-nowrap" style="box-sizing:inherit;display:inline-block;text-decoration:inherit;white-space:nowrap">(Mac com Apple Silicon)</span></td><td style="box-sizing:inherit;padding:1em 1em 1em 0px;border-bottom-width:1px;border-bottom-style:solid;vertical-align:top">iOS 14.4<br style="box-sizing:inherit">macOS 11.1<br style="box-sizing:inherit">tvOS 14.3<br style="box-sizing:inherit">watchOS 7.2<br style="box-sizing:inherit">DriverKit 20.2</td><td style="box-sizing:inherit;padding:1em 1em 1em 0px;border-bottom-width:1px;border-bottom-style:solid;vertical-align:top">x86_64<br style="box-sizing:inherit">armv7<br style="box-sizing:inherit">armv7s<br style="box-sizing:inherit">armv7k<br style="box-sizing:inherit">arm64<br style="box-sizing:inherit">arm64e<br style="box-sizing:inherit">arm64_32</td><td style="box-sizing:inherit;padding:1em 1em 1em 0px;border-bottom-width:1px;border-bottom-style:solid;vertical-align:top">iOS 9-14.4<br style="box-sizing:inherit">iPadOS 13-14.4<br style="box-sizing:inherit">macOS 10.9-11.1<br style="box-sizing:inherit">tvOS 9-14.3<br style="box-sizing:inherit">watchOS 2-7.2<br style="box-sizing:inherit">DriverKit 19-20.2</td></tr></tbody></table></div><div> </div><div>It says it can build for 'arm64' alright, but I tried creating a fat binary for both intel and M1 as I was doing in my monterey partition and didn't succeed. I'm using pd-lib-builder, verdsion 6.0, so I did:</div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">make install objectsdir=../ arch="i386 x86_64" extension=d_fat and that works just fine</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">but...</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">make install objectsdir=../ arch="arm64 x86_64" extension=d_fat fails miserably, this is what I get</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: </b></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(202,51,35)"><b>error: </b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>Unsupported architecture</b></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">






</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">#error Unsupported architecture</span></p>





</div><div><br></div><div>What should I do?</div><div><br></div><div>My attempt here is to be able to build a binary for fluidsynth~ that works for a wide range of OSes</div><div><br></div><div>thanks</div><div>cheers</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div><br><blockquote type="cite"><div>On Mar 10, 2022, at 11:30 PM, <a href="mailto:pd-dev-request@lists.iem.at" target="_blank">pd-dev-request@lists.iem.at</a> wrote:</div><br><div><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Message: 2</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Date: Thu, 10 Mar 2022 17:57:23 -0300</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">From: Alexandre Torres Porres <</span><a href="mailto:porres@gmail.com" style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">porres@gmail.com</a><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">></span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">To: Sebastian Shader <</span><a href="mailto:sebfumaster@aol.com" style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">sebfumaster@aol.com</a><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">></span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Cc: "</span><a href="mailto:pd-dev@lists.iem.at" style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">pd-dev@lists.iem.at</a><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">" <</span><a href="mailto:pd-dev@lists.iem.at" style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">pd-dev@lists.iem.at</a><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">></span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Subject: Re: [PD-dev] [PD] how to compile externals for apple silicon?</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Message-ID:</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;text-decoration:none">       </span><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline"><</span><a href="mailto:CAEAsFmiUpgiieWwpvM11eyY6kE6bdGiWFqFa8pbvPBjtuaoc4w@mail.gmail.com" style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">CAEAsFmiUpgiieWwpvM11eyY6kE6bdGiWFqFa8pbvPBjtuaoc4w@mail.gmail.com</a><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">></span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Content-Type: text/plain; charset="utf-8"</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">I guess I can install catalina on a partition, but I was hoping to use</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">pdlibbuilder in an easy way, is it possible?</span></div></blockquote></div><br><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">--------</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Dan Wilcox</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://twitter.com/danomatika" target="_blank">@danomatika</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://danomatika.com" target="_blank">danomatika.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://robotcowboy.com" target="_blank">robotcowboy.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><br>
</div>
<br></div></div></blockquote></div></div>
</div>
</div></blockquote></body></html>