mac 源码安装mesa20.3.1
亲测可成功安装!
mesa版本:mesa-20.3.1
## 安装依赖
pip3 install mako
brew install meson
brew install cmake
brew install pkg-config
brew install expat
brew install flex
brew install Bison
echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
brew install libxext
brew install libxdamage
## 下载源代码
mkdir workplace
cd workplace
curl -O https://archive.mesa3d.org//mesa-20.3.1.tar.xz
## 开始构建
tar xvf mesa-20.3.1.tar.xz
cd mesa-20.3.1
mkdir build
meson build -Dc_std=c11
## 安装
sudo ninja -C build/ install
参考:
https://docs.mesa3d.org/install.html
https://docs.mesa3d.org/meson.html