Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 1.68 KB

building.md

File metadata and controls

70 lines (55 loc) · 1.68 KB

Building Element

A simple guide on building Element with meson. Pease see mesonbuild.com for how to install meson on your platform.

Debian/Ubuntu

Dependencies

The following packages are needed...

sudo apt-get install python git build-essential pkg-config libboost-dev \
    libfreetype-dev libx11-dev libxext-dev libxrandr-dev libxcomposite-dev \
    libxinerama-dev libxcursor-dev libjack-dev libasound2-dev lv2-dev liblilv-dev \
    libsuil-dev ladspa-sdk libcurl4-openssl-dev fonts-roboto clang clang++

Compiling

meson setup build
meson compile -C build

If meson gives errors about missing packages, then you might need to also setup subprojects.

meson subprojects update --reset

Installing

sudo meson install -C build
sudo ldconfig

Arch Linux

Install these packages, then run the meson commands described above.

sudo pacman -S git lilv suil lv2 ladspa boost ttf-mswin10

Mac OSX

Dependencies

Install Boost using Homebrew.

brew install boost

Build

BOOST_ROOT="/usr/local/include" meson setup \
    --native-file="meson/subs.ini" \
    --native-file="meson/osx.ini" \
    build
meson compile -C build

This will make an app bundle somwhere in the build dir. Run it...

open $(find build -name "Element.app")

Windows (MSVC)

meson setup --native-file="meson/subs.ini" --native-file="meson/msvc.ini" build
meson compile -C build

After this, you should have build/element.exe. If it complains about missing boost and vstsdk paths, copy the msvc.ini, edit the paths, then use it in meson setup.