Open JSmithOner opened 3 years ago
Emscripten output runs in a JS or wasm environment, and it cannot access local system APIs like CoreMIDI. It can only access APIs available on the web, or in Node.js, or in wasm VMs etc.
Emscripten does try to emulate POSIX and other common APIs as much as possible. Maybe this library can be built using SDL, or OpenAL, which emscripten does support?
@kripken Thank you for your answer, yes just figured that out. That's too bad but that's the way it works. I wanted to emulate WebMIDI on every browsers but I can't.Thanks again.
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
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 macthe include is as follow
#include <CoreMIDI/CoreMIDI.h>
.The
clang
installed with XCode Command Line Tool normally finds it as it is linked to the correct file system Path.emcc
is not linked to this include path and cannot find it.running
$emcc -v
gives me the following output:where running
g++ -v
gives me this output:and I'm on BigSur 11.5.2 on a mac mini m1
Thnaks in advance