We are using a fork of rtmidi where the rtmidi_c
files have been adapted for
better usage with RtMidi.Core.
The fork is regularly merged with upstream, ensuring fixes, improvements etc are carried over into the version we are using.
Guides on how to compile the runtime-dependent library binary.
- Open terminal and navigate to the root of the repository
- Compile project:
$ ./autogen.sh --no-configure $ ./configure $ make
- Copy the newly compiled
dylib
file into the RtMidi.Core project:$ cp .libs/librtmidi.dylib ~/git/RtMidi.Core/RtMidi.Core/librtmidi.dylib
Requires automake
, autoconf
and libtool
to be installed, which is easily done using Homebrew:
$ brew install autoconf automake libtool
- From the root of the repository, navigate to
msw/
- Open the solution file
rtmidilib.sln
- Change configuration to Export
- Change target framework to x64
- Build solution
- Copy newly compiled
dll
file for x64 into the RtMidi.Core project:$ cp msw/x64/Export/rtmidilib.dll ~/git/RtMidi.Core/RtMidi.Core/librtmidi.dylib
- Change target framework to Win32
- Build solution
- Copy newly compiled
dll
file for x86 into the RtMidi.Core project:$ cp msw/Export/rtmidilib.dll ~/git/RtMidi.Core/RtMidi.Core/rtmidi32.dll
Requires Visual Studio 2017 (or newer) with the following components installed (use Visual Studio Installer)
- Workload: Desktop development with C++
- Individual components:
- Windows 8.1 SDK
- Windows Universal CRT SDK
- Open terminal and navigate to the root of the repository
- Compile project:
$ ./autogen.sh $ ./configure $ make
- Copy the newly compiled
so
file into the RtMidi.Core project:$ cp .libs/librtmidi.so ~/git/RtMidi.Core/RtMidi.Core/librtmidi.so