2021-04-10 10:14:14 +08:00
|
|
|
Notes for macOS
|
|
|
|
================
|
|
|
|
|
2022-08-15 17:22:57 +08:00
|
|
|
.. image:: https://github.com/mesa3d/mesa/actions/workflows/macos.yml/badge.svg
|
|
|
|
:target: https://github.com/mesa3d/mesa/actions/workflows/macos.yml
|
2022-06-09 17:47:00 +08:00
|
|
|
:alt: macOS CI
|
|
|
|
|
2021-04-10 10:14:14 +08:00
|
|
|
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
|
2022-03-02 17:53:54 +08:00
|
|
|
Meson itself, are available in `homebrew <https://brew.sh>`_, which has a
|
2021-04-10 10:14:14 +08:00
|
|
|
Mesa package for reference. The exception seems to be Mako, a Python module
|
2022-11-03 03:50:58 +08:00
|
|
|
used for templating, which you can install as ``pip3 install mako``.
|
|
|
|
- macOS is picky about its build-time environment. Type ``brew sh`` before
|
2021-04-10 10:14:14 +08:00
|
|
|
building to get the Homebrew dependencies in your path.
|
|
|
|
|
2021-04-21 03:14:32 +08:00
|
|
|
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
|
2022-03-02 20:04:40 +08:00
|
|
|
``-Dosmesa=true -Dglx=xlib`` and select an appropriate Gallium software
|
2021-04-21 03:14:32 +08:00
|
|
|
rasterizer.
|
|
|
|
|
|
|
|
For native hardware, stay tuned for updates here!
|