• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Notes for macOS
2================
3
4Mesa builds on macOS without modifications. However, there are some details to
5be aware of.
6
7-  Mesa has a number of build-time dependencies. Most dependencies, including
8   Meson itself, are available in `homebrew <https://brew.sh>`, which has a
9   Mesa package for reference. The exception seems to be Mako, a Python module
10   used for templating, which you can install as `pip3 install mako`.
11-  macOS's default C compiler doesn't play nice with some C11 idioms used in
12   Mesa. To workaround, set `-Dc_std=c11`.
13-  macOS is picky about its build-time environment. Type `brew sh` before
14   building to get the Homebrew dependencies in your path.
15
16Mesa's default builds with the Apple GLX uses Mesa as a front for the
17hardware-accelerated system OpenGL framework, to provide hardware acceleration
18to X11 applications on macOS running via XQuartz.
19
20Mesa's software rasterizers also work on macOS. To build, set the build options
21`-Dosmesa=true -Dglx=gallium-xlib` and select an appropriate Gallium software
22rasterizer.
23
24For native hardware, stay tuned for updates here!
25