IMGUI + SDL2 serial port application for SPC Player Arduino project. This project is a work in progress! Project supports both Linux and Windows and on Windows compilation requires MSYS2 environment.
After cloning this repository, you need to clone the Git submodules, by default submodules are not cloned initially. Do this by running following in a project directory:
git submodule init
git submodule udateYou system also need to have OpenGL drivers installed for your GPU. On Linux Mesa for example. Check your systems package manager for it. Usually these are already installed some way or other and no need to install anything.
On Windows I have tested this project with MinGW64 shell, that is shipped with MSYS2 installation.
First you need to install SDL2 and Boost libraries. To do that run:
pacman -S mingw-w64-i686-SDL2 mingw-w64-x86_64-boostWhen building with MSYS2. Make sure you install MinGW version of CMake
mingw-w64-x86_64-cmake. This will ensure that you are building for Windows.
You also need to install the tool for actual building. By default Ninja is used
if generator for the CMake is not specified. Install Ninja from
mingw-w64-x86_64-ninja. For further information check
CMake forMSYS2.
Install above packages with:
pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-ninjaTo build the application, run following commands in the project folder. Debug
build is compiled by default, if you want a release build, please add
-DCMAKE_BUILD_TYPE=Release to first CMake command.
mkdir build && cd build
cmake ..
cmake --build .You need to install SDL2 and Boost libraries for your system. On Arch Linux for example:
sudo pacman -S sdl sdl2 boostTo build the application, run following commands in the project folder. Debug
build is compiled by default, if you want a release build, please add
-DCMAKE_BUILD_TYPE=Release to first CMake command.
mkdir build && cd build
cmake ..
cmake --build .After everything compiles, executable spc_player will be placed under your
build directory. Run it from the build folder with:
./spc_playerAfter successful build, in the build folder simple execute:
ctestAnother way is to execute the test are the other executables under build/bin folder.