Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
INSTALL.rst
1.. SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex at zrythm dot org>
2.. SPDX-License-Identifier: FSFAP
3
4Installation Instructions
5=========================
6
7Prerequisites
8-------------
9
10Build Tools
11~~~~~~~~~~~
12
13You will need the GNU toolchain, a C/C++ compiler
14and the following
15
16`meson (Apache-2.0) <https://mesonbuild.com/>`_
17 Build system
18
19`guile (GPLv3+) <https://www.gnu.org/software/guile/>`_
20 Used in various build scripts
21
22`sassc (Expat) <https://github.com/sass/sassc>`_
23 CSS compilation
24
25`lilv (ISC) <https://drobilla.net/software/lilv>`_
26 LV2 plugin hosting library used in tests only
27
28.. `blueprint-compiler (LGPLv3+) <https://gitlab.gnome.org/jwestman/blueprint-compiler>`_
29.. UI file compilation
30
31If your meson version is too old, you can either
32install meson from
33`pip <https://pypi.org/project/pip/>`_
34or run ``meson.py`` directly from
35`meson's source code <https://github.com/mesonbuild/meson>`_.
36
37Dependencies
38~~~~~~~~~~~~
39
40The following dependencies must be installed before
41attempting to build or run Zrythm.
42
43Required
44++++++++
45
46`carla (GPLv2+) <https://kx.studio/Applications:Carla>`_
47 Support for various plugin formats
48
49`fftw (GPLv2+) <http://www.fftw.org/>`_
50 Threaded fftw for plugins
51
52`gtk4 (LGPLv2.1+) <https://gtk.org/>`_
53 GUI toolkit
54
55`gtksourceview (LGPLv2.1+) <https://wiki.gnome.org/Projects/GtkSourceView>`_
56 Source code editor widget
57
58`libadwaita (LGPLv2.1+) <https://gitlab.gnome.org/GNOME/libadwaita>`_
59 Additional widgets
60
61`libbacktrace (3-Clause BSD) <https://github.com/ianlancetaylor/libbacktrace>`_
62 Backtraces
63
64`libcurl (X11) <https://curl.se/libcurl/>`_
65 Network connections
66
67`libpanel (LGPLv3+) <https://gitlab.gnome.org/chergert/libpanel/>`_
68 Dock and panel widgets
69
70Note: if you want detach support use `our fork <https://gitlab.zrythm.org/zrythm/libpanel-detach>`_ (``zrythm_detach`` branch).
71
72`libsndfile (LGPLv2.1+) <http://libsndfile.github.io/libsndfile/>`_
73 Audio file IO
74
75`pcre2 (3-Clause BSD) <https://www.pcre.org/>`_
76 Regex
77
78`rubberband (GPLv2+) <https://breakfastquay.com/rubberband/>`_
79 Time-stretching and pitch-shifting
80
81`soxr (LGPLv2.1+) <https://sourceforge.net/projects/soxr/>`_
82 Resampling
83
84`vamp-plugin-sdk (X11) <https://vamp-plugins.org/>`_
85 Audio analysis
86
87`xxhash (2-Clause BSD) <https://cyan4973.github.io/xxHash/>`_
88 Hashing
89
90`yyjson (MIT) <https://github.com/ibireme/yyjson>`_
91 JSON manipulation
92
93`zix (ISC) <https://github.com/drobilla/zix>`_
94 Portability wrappers and data structures
95
96`zstd (3-Clause BSD) <https://github.com/facebook/zstd>`_
97 Compression
98
99Recommended
100+++++++++++
101
102`boost (Boost) <https://www.boost.org/>`_
103 C++ utilities required for building the bundled plugins
104
105`jack (LGPLv2.1+) <https://jackaudio.org/>`_
106 Low latency audio/MIDI backend
107
108`lsp-dsp-lib (LGPLv3+) <https://github.com/sadko4u/lsp-dsp-lib>`_
109 SIMD-optimized signal processing
110
111`rtaudio (Expat) <http://www.music.mcgill.ca/~gary/rtaudio/>`_
112 Various audio backends
113
114`rtmidi (Expat) <https://www.music.mcgill.ca/~gary/rtmidi/>`_
115 Various MIDI backends
116
117Optional
118++++++++
119
120`graphviz (EPLv1.0) <http://graphviz.org/>`_
121 Process graph export (only used for debugging)
122
123`libcyaml (ISC) <https://github.com/tlsa/libcyaml/>`_
124 Serialization into YAML (only needed to upgrade old projects created before `v1.0.0-beta.5.0`)
125
126Experimental
127++++++++++++
128
129`SDL2 (zlib) <https://www.libsdl.org/>`_
130 Audio backend
131
132Configuration
133-------------
134
135Configure the build directory, optionally passing options::
136
137 meson setup build -Doption_name=value
138
139To see all available options, type the following
140after the build directory is initialized, or look
141inside `meson_options.txt <meson_options.txt>`_.
142Built-in meson options can be found
143`here <https://mesonbuild.com/Builtin-options.html>`_::
144
145 meson configure build
146
147To change an option after configuration, use::
148
149 meson configure build -Doption_name=value
150
151To change environment variables (such as ``CC`` and
152``CXX``) while keeping the current configuration, use::
153
154 MY_ENV_VARIABLE=myvalue meson build --wipe
155
156To start from scratch, remove the ``build`` directory::
157
158 rm -rf build
159
160Optimization
161~~~~~~~~~~~~
162
163The default build type is ``debugoptmized``, which
164is equivalent to ``-Ddebug=true -Doptimization=2``
165(``-O2 -g``). This works well in most cases. For
166extremely optimized builds, we suggest building with
167the following options::
168
169 -Ddebug=true -Doptimization=3 -Dextra_optimizations=true -Dnative_build=true
170
171We suggest always keeping ``-Ddebug=true`` to assist
172with meaningful stack traces and bug reports.
173
174Compilation
175-----------
176
177Compile after configuring the build directory::
178
179 meson compile -C build
180
181To clean the build directory while keeping the
182current configuration, use::
183
184 meson compile --clean -C build
185
186Installation
187------------
188
189Once the program is built, it will need to be
190installed the first time before it can run (to
191install the `GSettings <https://developer.gnome.org/gio/stable/GSettings.html>`_ among other things)::
192
193 meson install -C build
194
195If you don't want to install anything permanent on
196your system, you can install it somewhere
197temporary by configuring with
198``--prefix=/tmp/zrythm`` for example, and
199then you can run it with
200``/tmp/zrythm/bin/zrythm_launch``.
201
202Running
203-------
204
205When running Zrythm from the command line, it is
206recommended to use ``zrythm_launch`` instead of
207running the ``zrythm`` binary directly. This takes
208care of using the correct GSettings schemas and
209other resources in the installed prefix.
210
211For debugging and other developer tools, see
212`HACKING.md <HACKING.md>`_.