Skip to content

Commit 18ac9c5

Browse files
authored
Add macOS install instructions
1 parent ea86aa3 commit 18ac9c5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,33 @@ dune exec -- eio-trace render -f trace.fxt trace.svg
5252

5353
[Eio]: https://github.com/ocaml-multicore/eio
5454
[Perfetto]: https://ui.perfetto.dev/
55+
56+
## macOS
57+
58+
These instructions will walk you through installing the system dependencies necessary in order to install eio-trace's dependencies from OPAM.
59+
60+
These instructions make use of [Homebrew](https://brew.sh/), adapt them to MacPorts, Fink, etc., if needed.
61+
62+
First ensure everything is up-to-date:
63+
```sh
64+
brew update
65+
brew upgrade
66+
opam update
67+
```
68+
69+
Then install the required packages:
70+
```sh
71+
brew install bash cairo gtk+3 m4 pkg-config libffi
72+
```
73+
74+
Consider restarting your terminal session at this stage.
75+
76+
You can now install eio-trace's dependencies.
77+
78+
### lablgtk3
79+
80+
If installing `conf-gtk3` fails with a `libffi` version error, run the following before trying again:
81+
```sh
82+
export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.4.4/lib/pkgconfig
83+
```
84+
Update the version number to match the currently installed version of libffi.

0 commit comments

Comments
 (0)