Follow us on Instagram!
Giada source code is hosted and mantained on GitHub. It requires a C++17-compatible compiler, Git and CMake already installed. This document is about setting up Giada from the command line, but you can also configure and build it directly in your IDE.
First of all clone the remote repository on your machine:
git clone firstname.lastname@example.org:monocasual/giada.git
a new folder giada/ will be created. Go inside and initialize the submodules (i.e. the dependencies):
git submodule update --init --recursive
Invoke CMake from inside the giada/ folder as follows:
cmake -B <build-directory> -S .
cmake -B build/ -S .
CMake will generate the proper project according to your environment: Makefile on Linux, Visual Studio solution on Windows, XCode project on macOS. When the script is done without errors, open the generated project with your IDE or run CMake from the command line to compile Giada. Command line example:
cmake --build build/
Some dependencies are included as git submodules. However, Giada requires other external libraries to be installed on your system. Namely:
FLTK — 1.3.[0 or greater];
Libsndfile — 1.0.28 or greater;
Libsamplerate — 0.1.9 or greater;
RtMidi — 3.0.0 or greater;
(optional, used for tests) Catch2 — 2.0 or greater;
You can pass several parameters to CMake during the configuration stage as -D<parameter>=<value>. For example:
cmake -B build/ -S . -DPARAMETER1=VALUE1 -DPARAMETER2=VALUE2
|CMAKE_BUILD_TYPE||Defines the build type.||Debug, Release|
|WITH_VST2||Enables support for VST2 plug-ins. Requires the now deprecated VST2.x SDK by Steinberg. Disabled by default.||ON, OFF|
|WITH_VST3||Enables support for VST3 plug-ins. Disabled by default.||ON, OFF|
|WITH_TESTS||Includes the test suite. Requires the Catch2 library installed. Disabled by default.||ON, OFF|
|WITH_ALSA||(Linux only) Enables ALSA support. Enabled by default.||ON, OFF|
|WITH_PULSE||(Linux only) Enables PulseAudio support. Enabled by default.||ON, OFF|
|WITH_JACK||(Linux only) Enables JACK support. Enabled by default.||ON, OFF|
All unit tests in Giada are based on Catch2 automated test framework, which supports several command-line options. Please take a look at the official documentation to understand the gritty details. Giada must be configured with -DWITH_TESTS=ON first, while tests are run as following:
./giada --run-tests [optional catch parameters]