File: building.md

package info (click to toggle)
bali-phy 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 15,392 kB
  • sloc: cpp: 120,442; xml: 13,966; haskell: 9,975; python: 2,936; yacc: 1,328; perl: 1,169; lex: 912; sh: 343; makefile: 26
file content (45 lines) | stat: -rw-r--r-- 841 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Building and installing bali-phy

## Prequisites

You will need a C++ compiler that understands C++20:

* gcc 10 (or higher) works
* clang 3 (or higher) works
* XCode 14.0 (or higher) works

You will also need to install

* cairo graphics library (optional, but required to build the `draw-tree` program)

To build the executables, you will need

* meson
* ninja

To build the documentation, you will need

* pandoc

### Mac
On Macs you can install all the prerequisites using homebrew as follows:

```sh
sudo brew install meson pkg-config pandoc cairo
```

### Linux
On Debian and Ubuntu systems you can install all the prequisites with the following command:

``` sh
sudo apt-get install g++ meson pandoc libcairo2-dev
```

## Compilation

``` sh
cd BAli-Phy/
meson build --prefix=$HOME/Applications/bali-phy
ninja -C build install
```