A simple guide on building Element with meson. Pease see mesonbuild.com for how to install meson on your platform.
Sub Modules
This project uses submodules. Be sure to do this on a fresh clone, or when pulling changes.
git submodule update --init
Dependencies
The following packages are needed...
sudo apt-get install python git build-essential pkg-config libboost-dev libfreetype6-dev libx11-dev libxext-dev libxrandr-dev libxcomposite-dev libxinerama-dev libxcursor-dev libasound2-dev lv2-dev liblilv-dev libsuil-dev ladspa-sdk libcurl4-openssl-dev fonts-roboto clang clang++
Compiling
meson setup builddir
meson compile -C builddir
Installing
sudo meson install -C builddir
sudo ldconfig
Install these packages, then run the meson
commands described above.
sudo pacman -S git lilv suil lv2 ladspa boost ttf-mswin10
Dependencies
brew install boost
Build
BOOST_ROOT="/usr/local/include" meson setup --native-file="tools/machine/osx.ini" builddir
meson compile -C builddir
# install is needed to assemble the app bundle.
meson install --destdir="." -C builddir
The command above will produce a universal binary as builddir/tmp/Element.app
meson setup --native-file="tools/machine/msvc.ini" builddir
meson compile -C builddir
After this, you should have builddir/element.exe
. If it complains about missing boost
and vstsdk paths, copy the msvc.ini
, edit the paths, then use it in meson setup
.
If you don't have the vstsdk2.4, it can be removed from the .ini file, but there won't be support for VST2