AlloSphere-Research-Group / allolib

Library for interactive multimedia application development
BSD 3-Clause "New" or "Revised" License
36 stars 13 forks source link

example doesn't run #53

Open pconrad opened 1 month ago

pconrad commented 1 month ago

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 commented 1 month ago

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.