Dependencies:
On Debian-based systems:
sudo apt install qtbase5-dev libfluidsynth-dev
In the project directory:
mkdir build
cd build
cmake ..
brew install qt fluidsynth
In the project directory:
mkdir build
cd build
cmake ..
Assuming you have already setup MSYS2 and a MinGW-w64 C/C++ toolchain:
pacman -Syu mingw-w64-x86_64-qt5 mingw-w64-x86_64-fluidsynth mingw-w64-x86_64-cmake
In the project directory:
mkdir build
cd build
cmake -G "MSYS Makefiles" ..
- If you don't have Visual Studio, install Visual C++ Build Tools
- Download http://landinghub.visualstudio.com/visual-cpp-build-tools
- Launch setup, install
- Add
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64
to yourPATH
- Add
C:\Program Files (x86)\Windows Kits\10\bin\x64\ucrt
to yourPATH
- Install Qt
- Go to https://www.qt.io/download-qt-for-application-development then "Get your open source package"
- Launch setup
- In "Select Components", check "Qt > Qt 5.9.2 > msvc2015 64-bit"
- Install
- Add
C:\Qt\5.9.2\msvc2015_64\bin
to yourPATH
- Install pre-built Fluidsynth
- Download https://github.com/fanfaresimulator/fanfaresimulator/files/1505797/vendor.zip
- Move it in the project directory
- Right click > Extract All
- Add the
vendor\lib
directory to yourPATH
- Install CMake
- Go to https://cmake.org/download/ then "Latest Release > Binary Distributions > Windows win64-x64 Installer"
- Launch setup, install
- Run CMake
- If you have Visual Studio
- Launch CMake (cmake-gui)
- Select source directory
- Create a new directory "build" and select it as build directory
- Configure
- Select "Visual Studio 14 2015 Win64"
- Generate
- Open project (or open
fanfaresimulator.sln
with Visual Studio) - Build
- If you don't have Visual Studio, from the CLI:
mkdir build cd build cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_PREFIX_PATH=C:\Qt\5.9.2\msvc2015_64 msbuild fanfaresimulator.sln
- If you have Visual Studio
And you're done!
cd build # If you're not there already
make
Start the server and some clients:
./fanfaresimulator-server
./fanfaresimulator-client
If you want to select a custom MIDI file:
./fanfaresimulator-server <midi-file>
If you want to change the number of players (put 0 to just play the partition):
./fanfaresimulator-server --players-nbr=4
rm -rf build
mkdir build
cd build
cmake ..