From: Cole Poirier Date: Thu, 27 Aug 2020 19:34:49 +0000 (-0700) Subject: dev-env-setup add specific mesa apt dependencies install script, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b15ad60dd5118b1238636c6ad806f6551b3196e;p=dev-env-setup.git dev-env-setup add specific mesa apt dependencies install script, mesa-dev-env-setup script --- diff --git a/install-mesa-apt-reqs b/install-mesa-apt-reqs new file mode 100755 index 0000000..169ca51 --- /dev/null +++ b/install-mesa-apt-reqs @@ -0,0 +1,29 @@ +#!/bin/bash +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi +echo "deb http://deb.debian.org/debian buster-backports main" | tee \ + -a /etc/apt/sources.list +apt-get update -y +apt-get upgrade -y +apt-get install -y build-essential \ + cmake \ + git \ + pkg-config \ + libatomic-ops-dev \ + libcairo2-dev \ + libcunit1-dev \ + libpciaccess-dev \ + libunwind-dev \ + llvm-8 \ + llvm-8-dev \ + python3.7 \ + python3.7-dev \ + python3-setuptools \ + libzstd-dev \ + libzstd1 \ + zlib1g +apt-get install -y -t buster-backports meson +apt-get build-dep -y libdrm +apt-get build-dep -y mesa diff --git a/lsoc-mesa-dev-env-setup b/lsoc-mesa-dev-env-setup new file mode 100755 index 0000000..1b75db4 --- /dev/null +++ b/lsoc-mesa-dev-env-setup @@ -0,0 +1,15 @@ +#!/bin/bash +mkdir -p ~/opt/lsoc_mesa +cd ~/opt +git clone https://gitlab.freedesktop.org/mesa/drm.git +cd drm +mkdir build && cd build +meson -Dbuildtype=release -Dprefix=/home/$USER/opt/lsoc_mesa .. +ninja install +export PKG_CONFIG_PATH=~/opt/lsoc_mesa/lib/x86_64-linux-gnu/pkgconfig/ +cd ~/opt +git clone https://gitlab.freedesktop.org/mesa/mesa.git +cd mesa +mkdir build && cd build +meson -Dbuildtype=debug -Dprefix=/home/$USER/opt/lsoc_mesa +ninja install