Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker errors on macOS ARM64; Update lib_osx/libportaudio.a #62

Open
kybr opened this issue Nov 17, 2023 · 1 comment
Open

Linker errors on macOS ARM64; Update lib_osx/libportaudio.a #62

kybr opened this issue Nov 17, 2023 · 1 comment

Comments

@kybr
Copy link
Contributor

kybr commented Nov 17, 2023

OS: macOS Ventura 13.6
ARCH: Apple M1 (ARM64)

The error:

git clone https://github.com/LancePutnam/Gamma
cd Gamma
make
...
./run.sh examples/synths/Vib.cpp
ld: warning: ignoring file '/XXX/Gamma/external/lib_osx/libportaudio.a': fat file missing arch 'arm64', file has 'x86_64,unknown,i386,ppc'
ld: Undefined symbols:
  _Pa_CloseStream, referenced from:
      gam::AudioIO::~AudioIO() in libGamma.a[14](AudioIO.o)
      gam::AudioIO::close() in libGamma.a[14](AudioIO.o)
      gam::AudioIO::reopen() in libGamma.a[14](AudioIO.o)
      gam::AudioIO::reopen() in libGamma.a[14](AudioIO.o)
...

The remedy:

brew install portaudio
cp /opt/homebrew/lib/libportaudio.a external/lib_osx/libportaudio.a
./run.sh examples/synths/Vib.cpp
Press 'enter' to quit...

I don't love having a compiled library in the repository, but given that it is there, I think it needs updating.

@LancePutnam
Copy link
Owner

Yeah, I've been meaning to remove the binaries from the repo (the entire externals/ dir). It can be more convenient getting things up and running, but I just don't want to maintain it anymore. As an alternative, I could create an install script for dependencies, but that doesn't work for VS users. Otherwise I leave it entirely up to the user to install dependencies. Any thoughts welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants