macos.rst 1.12 KB
Newer Older
1
2
3
Notes for macOS
================

4
5
6
7
.. image:: https://github.com/mesa3d/mesa/actions/workflows/ci.yml/badge.svg
    :target: https://github.com/mesa3d/mesa/actions/workflows/ci.yml
    :alt: macOS CI

8
9
10
11
Mesa builds on macOS without modifications. However, there are some details to
be aware of.

-  Mesa has a number of build-time dependencies. Most dependencies, including
Erik Faye-Lund's avatar
Erik Faye-Lund committed
12
   Meson itself, are available in `homebrew <https://brew.sh>`_, which has a
13
14
15
16
17
   Mesa package for reference. The exception seems to be Mako, a Python module
   used for templating, which you can install as `pip3 install mako`.
-  macOS is picky about its build-time environment. Type `brew sh` before
   building to get the Homebrew dependencies in your path.

18
19
20
21
22
Mesa's default builds with the Apple GLX uses Mesa as a front for the
hardware-accelerated system OpenGL framework, to provide hardware acceleration
to X11 applications on macOS running via XQuartz.

Mesa's software rasterizers also work on macOS. To build, set the build options
23
``-Dosmesa=true -Dglx=xlib`` and select an appropriate Gallium software
24
25
26
rasterizer.

For native hardware, stay tuned for updates here!