Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.13 KB

File metadata and controls

42 lines (23 loc) · 1.13 KB

Build Le from Source

Dependencies

You will need C11 compiler. If you want Python bindings you should have C++14 compiler and Pybind11 installed.

Ubuntu

Use APT package manager to install dependencies:

sudo apt install g++ python3-pip ninja-build libpython3-dev sudo apt install libreadline-dev libjson-glib-dev
sudo -H pip3 install meson pybind11 numpy

macOS

Use Homebrew to install packages needed:

brew install meson pybind11 numpy readline gtk4 json-glib

Configuration

Meson Build system is used to automate building and installation. To create build directory, type:

meson setup {source_directory_name} {build_directory_name}

You can put your build directory inside of source directory:

cd {source_directory_name}
PATH=$PATH:/usr/local/cuda/bin/ meson setup {build_directory_name}

Compilation

Use ninja command from your build directory to compile binaries:

cd {build_directory_name}
ninja

Installation

To install compiled binaries locally, type:

sudo ninja install