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

example doesn't run #53

Open
pconrad opened this issue May 13, 2024 · 1 comment
Open

example doesn't run #53

pconrad opened this issue May 13, 2024 · 1 comment

Comments

@pconrad
Copy link

pconrad commented May 13, 2024

The example:

./run.sh allolib/external/Gamma/examples/effects/vibrato.cpp

does not run under allolib_playground on arm64 architecture. Produces these errors:

Undefined symbols for architecture arm64:
  "gam::AudioIO::framesPerBuffer(int)", referenced from:
      gam::AudioApp::AudioApp() in vibrato.cpp.o
  "gam::AudioIO::framesPerSecond(double)", referenced from:
      gam::AudioApp::AudioApp() in vibrato.cpp.o
  "gam::AudioIO::start()", referenced from:
      _main in vibrato.cpp.o
  "gam::AudioIO::append(gam::AudioCallback&)", referenced from:
      gam::AudioApp::AudioApp() in vibrato.cpp.o
  "gam::AudioIO::channels(int, bool)", referenced from:
      gam::AudioApp::AudioApp() in vibrato.cpp.o
      gam::AudioApp::AudioApp() in vibrato.cpp.o
  "gam::AudioIO::AudioIO(int, double, void (*)(gam::AudioIOData&), void*, int, int)", referenced from:
      gam::AudioApp::AudioApp() in vibrato.cpp.o
  "gam::AudioIO::~AudioIO()", referenced from:
      _main in vibrato.cpp.o
      MyApp::~MyApp() in vibrato.cpp.o
      MyApp::MyApp() in vibrato.cpp.o
      gam::AudioApp::AudioApp() in vibrato.cpp.o
      MyApp::~MyApp() in vibrato.cpp.o
  "gam::AudioIOData::framesPerBuffer() const", referenced from:
      MyApp::onAudio(gam::AudioIOData&) in vibrato.cpp.o
      MyApp::onAudio(gam::AudioIOData&) in vibrato.cpp.o
      MyApp::onAudio(gam::AudioIOData&) in vibrato.cpp.o
      MyApp::onAudio(gam::AudioIOData&) in vibrato.cpp.o
ld: symbol(s) not found for architecture arm64

Are we building it incorrectly, or is this an example that hasn't been kept up to date with changes in the code?

@LancePutnam
Copy link
Member

I updated the Makefiles in the main branch to support arm64 (LancePutnam/Gamma@6ce48be). The allolib fork uses CMake, but I still see Makefile.common (the edited file) in the repo.

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