From 5b15ad60dd5118b1238636c6ad806f6551b3196e Mon Sep 17 00:00:00 2001 From: Cole Poirier Date: Thu, 27 Aug 2020 12:34:49 -0700 Subject: [PATCH] dev-env-setup add specific mesa apt dependencies install script, mesa-dev-env-setup script --- install-mesa-apt-reqs | 29 +++++++++++++++++++++++++++++ lsoc-mesa-dev-env-setup | 15 +++++++++++++++ 2 files changed, 44 insertions(+) create mode 100755 install-mesa-apt-reqs create mode 100755 lsoc-mesa-dev-env-setup 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 -- 2.30.2