I wanted to try it, but unfortunately it doesn't build with Defold 1.6.3 on macOS.
WARNING: midi/include/RtMidi.h:137: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidi(RtMidi&& other) noexcept;'
ERROR: midi/include/RtMidi.h:137: 'expected ';' at end of declaration list
RtMidi(RtMidi&& other) noexcept;'
WARNING: midi/include/RtMidi.h:222: 'deleted function definitions are a C++11 extension [-Wc++11-extensions]
RtMidi(RtMidi& other) = delete;'
WARNING: midi/include/RtMidi.h:223: 'deleted function definitions are a C++11 extension [-Wc++11-extensions]
RtMidi& operator=(RtMidi& other) = delete;'
WARNING: midi/include/RtMidi.h:284: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidiIn(RtMidiIn&& other) noexcept : RtMidi(std::move(other)) { }'
ERROR: midi/include/RtMidi.h:284: 'expected ';' at end of declaration list
RtMidiIn(RtMidiIn&& other) noexcept : RtMidi(std::move(other)) { }'
WARNING: midi/include/RtMidi.h:428: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidiOut(RtMidiOut&& other) noexcept : RtMidi(std::move(other)) { }'
ERROR: midi/include/RtMidi.h:428: 'expected ';' at end of declaration list
RtMidiOut(RtMidiOut&& other) noexcept : RtMidi(std::move(other)) { }'
WARNING: midi/src/RtMidi.cpp:43: ''TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Wundef-prefix=TARGET_OS_]
#if (TARGET_OS_IPHONE == 1)'
WARNING: midi/src/RtMidi.cpp:362: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidi::RtMidi(RtMidi&& other) noexcept {'
ERROR: midi/src/RtMidi.cpp:362: 'expected function body after function declarator
RtMidi::RtMidi(RtMidi&& other) noexcept {'
ERROR: midi/src/RtMidi.cpp:417: 'explicit specialization of undeclared template class 'StaticAssert'
template<> class StaticAssert<true>{ public: StaticAssert() {} };'
ERROR: midi/src/RtMidi.cpp:419: 'expected unqualified-id
StaticAssert<rtmidi_num_api_names == RtMidi::NUM_APIS>();'
ERROR: midi/src/RtMidi.cpp:424: 'use of undeclared identifier 'rtmidi_compiled_apis'
apis = std::vector<RtMidi::Api>(rtmidi_compiled_apis,'
ERROR: midi/src/RtMidi.cpp:425: 'use of undeclared identifier 'rtmidi_compiled_apis'
rtmidi_compiled_apis + rtmidi_num_compiled_apis);'
ERROR: midi/src/RtMidi.cpp:425: 'use of undeclared identifier 'rtmidi_num_compiled_apis'
rtmidi_compiled_apis + rtmidi_num_compiled_apis);'
ERROR: midi/src/RtMidi.cpp:432: 'use of undeclared identifier 'rtmidi_api_names'
return rtmidi_api_names[api][0];'
ERROR: midi/src/RtMidi.cpp:439: 'use of undeclared identifier 'rtmidi_api_names'
return rtmidi_api_names[api][1];'
ERROR: midi/src/RtMidi.cpp:445: 'use of undeclared identifier 'rtmidi_num_compiled_apis'
for (i = 0; i < rtmidi_num_compiled_apis; ++i)'
ERROR: midi/src/RtMidi.cpp:446: 'use of undeclared identifier 'rtmidi_compiled_apis'
if (name == rtmidi_api_names[rtmidi_compiled_apis[i]][0])'
ERROR: midi/src/RtMidi.cpp:446: 'use of undeclared identifier 'rtmidi_api_names'
if (name == rtmidi_api_names[rtmidi_compiled_apis[i]][0])'
ERROR: midi/src/RtMidi.cpp:447: 'use of undeclared identifier 'rtmidi_compiled_apis'
return rtmidi_compiled_apis[i];'
ERROR: midi/src/RtMidi.cpp:529: 'definition of implicitly declared destructor
RtMidiIn :: ~RtMidiIn() throw()'
ERROR: midi/src/RtMidi.cpp:600: 'definition of implicitly declared destructor
RtMidiOut :: ~RtMidiOut() throw()'
WARNING: midi/include/RtMidi.h:137: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidi(RtMidi&& other) noexcept;'
ERROR: midi/include/RtMidi.h:137: 'expected ';' at end of declaration list
RtMidi(RtMidi&& other) noexcept;'
WARNING: midi/include/RtMidi.h:222: 'deleted function definitions are a C++11 extension [-Wc++11-extensions]
RtMidi(RtMidi& other) = delete;'
WARNING: midi/include/RtMidi.h:223: 'deleted function definitions are a C++11 extension [-Wc++11-extensions]
RtMidi& operator=(RtMidi& other) = delete;'
WARNING: midi/include/RtMidi.h:284: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidiIn(RtMidiIn&& other) noexcept : RtMidi(std::move(other)) { }'
ERROR: midi/include/RtMidi.h:284: 'expected ';' at end of declaration list
RtMidiIn(RtMidiIn&& other) noexcept : RtMidi(std::move(other)) { }'
WARNING: midi/include/RtMidi.h:428: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidiOut(RtMidiOut&& other) noexcept : RtMidi(std::move(other)) { }'
ERROR: midi/include/RtMidi.h:428: 'expected ';' at end of declaration list
RtMidiOut(RtMidiOut&& other) noexcept : RtMidi(std::move(other)) { }'
WARNING: midi/src/DefoldMIDI.cpp:123: 'object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
const char* name = midi->getPortName(port).c_str();'
WARNING: midi/include/RtMidi.h:137: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidi(RtMidi&& other) noexcept;'
ERROR: midi/include/RtMidi.h:137: 'expected ';' at end of declaration list
RtMidi(RtMidi&& other) noexcept;'
WARNING: midi/include/RtMidi.h:222: 'deleted function definitions are a C++11 extension [-Wc++11-extensions]
RtMidi(RtMidi& other) = delete;'
WARNING: midi/include/RtMidi.h:223: 'deleted function definitions are a C++11 extension [-Wc++11-extensions]
RtMidi& operator=(RtMidi& other) = delete;'
WARNING: midi/include/RtMidi.h:284: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidiIn(RtMidiIn&& other) noexcept : RtMidi(std::move(other)) { }'
ERROR: midi/include/RtMidi.h:284: 'expected ';' at end of declaration list
RtMidiIn(RtMidiIn&& other) noexcept : RtMidi(std::move(other)) { }'
WARNING: midi/include/RtMidi.h:428: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidiOut(RtMidiOut&& other) noexcept : RtMidi(std::move(other)) { }'
ERROR: midi/include/RtMidi.h:428: 'expected ';' at end of declaration list
RtMidiOut(RtMidiOut&& other) noexcept : RtMidi(std::move(other)) { }'
WARNING: midi/src/DefoldMIDI.cpp:123: 'object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
const char* name = midi->getPortName(port).c_str();'
WARNING: midi/include/RtMidi.h:137: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidi(RtMidi&& other) noexcept;'
ERROR: midi/include/RtMidi.h:137: 'expected ';' at end of declaration list
RtMidi(RtMidi&& other) noexcept;'
WARNING: midi/include/RtMidi.h:222: 'deleted function definitions are a C++11 extension [-Wc++11-extensions]
RtMidi(RtMidi& other) = delete;'
WARNING: midi/include/RtMidi.h:223: 'deleted function definitions are a C++11 extension [-Wc++11-extensions]
RtMidi& operator=(RtMidi& other) = delete;'
WARNING: midi/include/RtMidi.h:284: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidiIn(RtMidiIn&& other) noexcept : RtMidi(std::move(other)) { }'
ERROR: midi/include/RtMidi.h:284: 'expected ';' at end of declaration list
RtMidiIn(RtMidiIn&& other) noexcept : RtMidi(std::move(other)) { }'
WARNING: midi/include/RtMidi.h:428: 'rvalue references are a C++11 extension [-Wc++11-extensions]
RtMidiOut(RtMidiOut&& other) noexcept : RtMidi(std::move(other)) { }'
ERROR: midi/include/RtMidi.h:428: 'expected ';' at end of declaration list
RtMidiOut(RtMidiOut&& other) noexcept : RtMidi(std::move(other)) { }'
WARNING: midi/src/DefoldMIDI.cpp:123: 'object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
const char* name = midi->getPortName(port).c_str();'
I wanted to try it, but unfortunately it doesn't build with Defold 1.6.3 on macOS.