monocasual / giada

Your Hardcore Loop Machine.
https://www.giadamusic.com
GNU General Public License v3.0
1.71k stars 98 forks source link

error: ‘WEB_MIDI_API’ is not a member of ‘RtMidi::Api’ #620

Open dromer opened 1 year ago

dromer commented 1 year ago

Environment

Trying to build from a clean repo:

[ 12%] Building CXX object CMakeFiles/giada.dir/src/core/kernelMidi.cpp.o
/home/dreamer/Sources/_audio/giada/src/core/kernelMidi.cpp: In static member function ‘static void giada::m::KernelMidi::logCompiledAPIs()’:
/home/dreamer/Sources/_audio/giada/src/core/kernelMidi.cpp:279:21: error: ‘WEB_MIDI_API’ is not a member of ‘RtMidi::Api’
  279 |   case RtMidi::Api::WEB_MIDI_API:
      |                     ^~~~~~~~~~~~
gvnnz commented 1 year ago

Hey @dromer, did you git submodule update --recursive first?

dromer commented 1 year ago

Yes, of course.

Simply removing this code from src/core/kernelMidi.cpp fixed it:

               case RtMidi::Api::WEB_MIDI_API:
                       u::log::print("  Web MIDI API\n");
                       break;