thestk / rtmidi

A set of C++ classes that provide a common API for realtime MIDI input/output across Linux (ALSA & JACK), Macintosh OS X (CoreMIDI) and Windows (Multimedia)
Other
979 stars 269 forks source link

'CoreMIDI/CoreMIDI.h' file not found #265

Open JSmithOner opened 2 years ago

JSmithOner commented 2 years ago

I'm trying to port rtMidi to WebAssembly, it compile just fine when using the dummy version but when asking to compile with __MACOSX_CORE__ flag the compiler is not able to find CoreMidi I get

rtmidi/RtMidi.h:642:10: fatal error: 'CoreMIDI/CoreMIDI.h' file not found

I've ran emcc -O3 -s WASM=1 -s --bind -I rtmidi rtmidi/RtMidi.cpp rtmidi/rtmidi_c.cpp -s ASSERTIONS=1 -D__MACOSX_CORE__ on a mac

and I'm on BigSur 11.5.2 on a mac mini m1

radarsat1 commented 2 years ago

I know nothing about WASM but is it expected that CoreMidi will work? Doesn't WASM have its own MIDI API?

tschiemer commented 2 years ago

know nothing of WASM either but looks like system frameworks are not in the search/include path?

/System/Library/Frameworks/CoreMIDI.framework for the midi headers but likely you'll need more than just that..