GPD Win2 >> Debian 9.0

build mesa


參考資訊:
1. how-to-install-the-latest-mesa-version-on-debian-9-stretch-linux

如果使用者是熱愛Linux顯示相關的開發,那可以參考如下編譯安裝Mesa的步驟,如果不是的話,建議不要安裝使用。

$ sudo apt install build-essential
$ sudo apt build-dep mesa libdrm2
$ sudo apt install llvm-3.9 llvm-3.9-dev clang-3.9 clang-3.9-dev libxvmc-dev libxcb-xvmc0-dev libvdpau-dev libomxil-bellagio-dev
$ sudo ln -s /usr/bin/llvm-config-3.9 /usr/bin/llvm-config
$ sudo vim /etc/apt/sources.list
  deb http://ftp.us.debian.org/debian/ sid main
  deb-src http://ftp.us.debian.org/debian sid main

$ sudo vim /etc/apt/preferences
  Package: *
  Pin: release a=stable
  Pin-Priority: 1000

  Package: *
  Pin: release a=unstable
  Pin-Priority: 2

  Package: libdrm2
  Pin: release a=unstable
  Pin-Priority: 1001

  Package: libdrm-*
  Pin: release a=unstable
  Pin-Priority: 1001

$ sudo apt update
$ sudo apt install libdrm2 libdrm-dev
$ cd ~/Downloads
$ git clone -b 17.1 git://anongit.freedesktop.org/mesa/mesa
$ cd mesa
$ ./autogen.sh --prefix=/usr --enable-texture-float --libdir=/usr/lib/x86_64-linux-gnu/ --with-gallium-drivers=i915,r300,r600,radeonsi,nouveau,swrast --with-egl-platforms=drm,x11 --enable-glx-tls --enable-shared-glapi --enable-glx --enable-driglx-direct --enable-gles1 --enable-gles2 --enable-gbm --enable-openmax --enable-xa --enable-osmesa --with-radeonsi-llvm-compiler --enable-sysfs --enable-vdpau --enable-xvmc --enable-openmax --enable-nine
$ make -j5
$ sudo make install


返回上一頁