(FYI for macOS users are downloading and installing from the installer, universal binaries--intel and apple silicon--of the chugins are already included and installed with miniAudicle and command line chuck. A list of chugins currently included in the distribution can be found here: https://chuck.stanford.edu/doc/reference/chugins.html; a lot more is the way) Hi Michael!
I tried building the 1.5.0.0 tag of chugins on my M1 Mac and the architectures don't match
On macOS, the chugins architecture is controlled by the ARCHS variable, which by default is set to x86_64 (intel mac). You can build for different architectures by setting ARCHS before making, for example: (also 'make clean' before building for a different arch) ARCHS="arm64 x86_64" make osx The above builds universal binaries. Alternately, to build for only Apple Silicon: (also 'make clean' before building for a different arch) ARCHS="arm64" make osx I hope this helps! Ge! ~~~ Ge Wang Associate Professor Center for Computer Research in Music and Acoustics (CCRMA) Department of Music (also Computer Science, by Courtesy) Stanford University https://ccrma.stanford.edu/~ge/ ~ Artful Design: Technology in Search of the Sublime! -- what we make, makes us -- https://artful.design/ ~~~ On 5/22/23 7:15 PM, Michael Heuer wrote:
Hello,
I tried building the 1.5.0.0 tag of chugins on my M1 Mac and the architectures don't match
$ chuck -v3 ... [chuck]:(3:SEVERE): | | loading chugin 'ABSaturator.chug' [chuck]:(3:SEVERE): | | | cannot load chugin 'ABSaturator.chug', skipping... [chuck]:(3:SEVERE): | | | dlopen(/usr/local/lib/chuck/ABSaturator.chug, 0x0002): tried: '/usr/local/lib/chuck/ABSaturator.chug' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
chugins (HEAD detached at chuck-1.5.0.0) $ file `which chuck` /opt/homebrew/bin/chuck: Mach-O 64-bit executable arm64
chugins (HEAD detached at chuck-1.5.0.0) $ file /usr/local/lib/chuck/ABSaturator.chug /usr/local/lib/chuck/ABSaturator.chug: Mach-O 64-bit dynamically linked shared library x86_64
It is not obvious to me how to build chugins for arm64/Apple M1 architecture?
Cheers,
michael _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users