Skip to content

Setting up on macOS

Alex Reinking edited this page Sep 9, 2024 · 1 revision

Install dependencies with Homebrew

First, install Homebrew if you haven't already, following the directions at https://brew.sh

This will require you to install Xcode as well as running xcode-select --install to get the AppleClang command line loaded.

Then, run:

$ brew install cmake doxygen ninja llvm libpng libjpeg [email protected] flatbuffers wabt pipx

From the root of the repository, run:

$ pip3 install -r python_bindings/requirements.txt

Build with CMake

When using Homebrew as a dependency manager, we provide a CMake preset:

$ cmake --preset macOS
$ cmake --build build/macOS

You can then run tests like so:

$ ctest --test-dir build/macOS