Thanks Mike. I dont have an M1 machine yet but try adding ARCHS=arm64 to the make step: 

$ ARCHS=arm64 make
$ sudo make install 

Thanks for the heads up on the pull requests, for some reason I dont get notifs on those. Ill review shortly. 

Spencer


On Sun, Aug 21, 2022 at 8:19 PM Michael Heuer <heuermh@gmail.com> wrote:
Hello,

I have a fork of the chugins repo

https://github.com/heuermh/chugins

that I'm stuck using because of a bunch of unmerged pull requests

https://github.com/ccrma/chugins/pulls

First, is there anyone that can help put the ccrma/chugins repo in a good state?


Second, on a new M1 mac with ChucK installed via Homebrew, I'm not certain if chugins are built correctly, and if so, where they should be installed.  E.g.

$ ls -als `which chuck`
0 lrwxr-xr-x  1 foo  admin  33 May 31 13:08 /opt/homebrew/bin/chuck -> ../Cellar/chuck/1.4.1.1/bin/chuck

$ file `which chuck`
/opt/homebrew/bin/chuck: Mach-O 64-bit executable arm64

$ lipo -archs `which chuck`
arm64

$ cd chugins
$ sudo make install
...
mkdir -p /usr/local/lib/chuck
cp -rf ABSaturator/ABSaturator.chug AmbPan/AmbPan.chug Bitcrusher/Bitcrusher.chug KasFilter/KasFilter.chug MagicSine/MagicSine.chug FIR/FIR.chug FoldbackSaturator/FoldbackSaturator.chug PanN/PanN.chug PitchTrack/PitchTrack.chug GVerb/GVerb.chug Mesh2D/Mesh2D.chug Spectacle/Spectacle.chug Elliptic/Elliptic.chug Sigmund/Sigmund.chug ExpDelay/ExpDelay.chug Overdrive/Overdrive.chug Multicomb/Multicomb.chug PowerADSR/PowerADSR.chug WinFuncEnv/WinFuncEnv.chug WPDiodeLadder/WPDiodeLadder.chug WPKorg35/WPKorg35.chug Binaural/Binaural.chug ExpEnv/ExpEnv.chug Ladspa/Ladspa.chug Perlin/Perlin.chug Rand/Rand.chug Wavetable/Wavetable.chug NHHall/NHHall.chug /usr/local/lib/chuck

$ ls -als /usr/local/lib/chuck
total 1120
 40 -rwxr-xr-x     1 foo  admin  17952 Aug 21 22:05 ABSaturator.chug
 32 -rwxr-xr-x     1 foo  admin  13412 Aug 21 22:05 AmbPan.chug
...

$ file /usr/local/lib/chuck/ABSaturator.chug
/usr/local/lib/chuck/ABSaturator.chug: Mach-O 64-bit dynamically linked shared library x86_64

$ lipo -archs /usr/local/lib/chuck/ABSaturator.chug
x86_64


Thank you in advance for your help!

   michael


_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users