Building on Windows

Install MSYS2 :

Once installed hit start and look for and run MSYS2 MinGW 64-bit. This will open a command shell. For visual studio code terminal integration see VSCode terminal integration

In msys install all dependencies using the following command:

pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtk3 mingw-w64-x86_64-meson mingw-w64-x86_64-libsamplerate mingw-w64-x86_64-fftw mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-libyaml mingw-w64-x86_64-libsndfile mingw-w64-x86_64-rubberband mingw-w64-x86_64-dlfcn mingw-w64-x86_64-SDL2 mingw-w64-x86_64-chromaprint guile libguile-devel mingw-w64-x86_64-gtksourceview3 mingw-w64-x86_64-graphviz

Let it run until all packages are done installing. The above will install git as well which is needed for the next step.


cd && mkdir git && cd git
git clone && cd zrythm

Clone dependencies

Some dependencies are not yet pulled by meson.


Carla (source code at: ) needs two zip:



Setup project files with meson meson build -Dsdl=enabled -Drtaudio=auto -Drtmidi=auto -Dcarla=auto

Compile and finalize ninja -C build install


The working directory must be the install bin, in the msys root directory: /mingw64/bin/zrythm.exe You can locate this exe by executing: start /mingw64/bin

Copy whichever dll are missing next to the executable. CarlaNativePlugin.dll can be found in the official ZRythm Trial version bin folder.

Debugging ( VSCode )

visual studio code: In VSCode open the root folder of zrythm. Hit F5 and you will be prompted with a selection of environment options. Select C++(GDB/LLDB), this will create a new launch.json file with a configuration for gdb.

Edit the following options:




hit F5 and the debugger should run.

VSCode terminal integration

VSCode allows you to change the integrated terminal. With this we can make calls to msys directly from VSCode.

Changing terminal from powershell to bash:

Open settings using File > Preferences > Settings or ctrl+, Select Workspace, this will make it so that these changes only apply to the current workspace. Click the "Open settings" button top right (file with arrow icon). This will open the settings as an editable json file.

Add the following lines

"": "C:\\msys64\\usr\\bin\\bash.exe",
"": ["--login", "-i"],
"": {
   "MSYSTEM": "MINGW64",

The above snippet assumes that msys64 was installed at the default location C:/msys64. Make sure it matches with your installation path.

To open the terminal hit ctrl+`


Because of licensing issues, you cannot distribute a build of ASIO. However, you can build one for yourself.

Building rtaudio with ASIO support

Download and install visual studio community edition and cmake. Make sure cmake is available in your path. Start a windows cmd.

# Clone the rt audio repository
git clone --single-branch
cd rtaudio
mkdir build
cd build
# Configure with asio enabled, and point the prefix to your mingw64 install dir (no trailing slash!)
# Build and install
cmake --build . --config Release
cmake --install .

Activate rtaudio from meson

Then from msys2 mingw64, you can build with:

@code # non empty output means install was successful pkg-config --list-all | grep rtaudio meson build -Denable_rtaudio=auto @endcode

Copyright (C) 2020 Sidar Talei, Matthieu Talbot

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.