一、install vmware player 16
二、install ubuntu20.04 to vmware player 16
三、set up enviroment
sudo apt-get install -y wget build-essential python3 python3-pip git libelf-dev byacc flex libwayland-dev wayland-protocols libwayland-egl-backend-dev libx11-dev libxext-dev libxfixes-dev libxcb-glx0-dev libxcb-shm0-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-present-dev libxshmfence-dev libxxf86vm-dev zypper libgles2-mesa-dev libxrandr-dev vim
sudo pip3 install meson
sudo zypper source-install --build-deps-only Mesa
sudo apt install libunwind-dev libzstd-dev
sudo apt install valgrind libomxil-bellagio libva libtizonia
sudo apt install libpciaccess-dev
三、下载、配置、编译、安装mesa3d:
下载:wgethttps://archive.mesa3d.org//mesa-18.0-0-rc1.tar.gz
解压:tar xf mesa-18.0.0-0-rc1.tar.gz
创建编译目录:mkdir build
配置: meson build
如果配置失败,缺少库,则用
apt search libname来查找到缺少的库所在的包名,然后用
sudo apt install libname来安装
编译:ninja -C build
安装:sudo ninja -C build install