# Build instructions
sp_midi uses cmake for build management.

## Requisites:
### Windows:
* cmake (version 3.0 or later)
* Microsoft Visual C++ 2019 (Community or Express editions are fine)

### Linux (you can normally install all these using your distribution package manager)
* cmake (version 3.0 or later)
* gcc compiler (4.9 or later)
* ALSA development libraries

### Mac
Don't know yet...


## Building
* go to the root directory where you have the sp_midi sources (probably where this file is)
* create `build` directory, and get into it (`mkdir build`, and then `cd build`)
* It is normally enough to do `cmake ..`. If cmake complains about not finding a library make sure that it is installed.
* On Linux, if cmake was successful then it created the necessary Makefiles. Do `make`, and that will compile the code and create the binaries.
* On Windows, if cmake was successful then it created the necessary Visual Studio solution and Project files. Open the `sp_midi.sln` file, and Build normally to create the binaries.


