-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_v3dv.sh
executable file
·54 lines (44 loc) · 1.62 KB
/
install_v3dv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh -e
echo 1/10 Update
sudo apt update
echo 2/10 Upgrade
sudo apt full-upgrade -y
echo 3/10 Install pre-requisites
sudo apt install -y libxcb-randr0-dev libxrandr-dev \
libxcb-xinerama0-dev libxinerama-dev libxcursor-dev \
libxcb-cursor-dev libxkbcommon-dev xutils-dev \
xutils-dev libpthread-stubs0-dev libpciaccess-dev \
libffi-dev x11proto-xext-dev libxcb1-dev libxcb-*dev \
bison flex libssl-dev libgnutls28-dev x11proto-dri2-dev \
x11proto-dri3-dev libx11-dev libxcb-glx0-dev \
libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev \
libva-dev x11proto-randr-dev x11proto-present-dev \
libclc-dev libelf-dev git build-essential mesa-utils \
libvulkan-dev ninja-build libvulkan1 \
libdrm-dev libxshmfence-dev libxxf86vm-dev libassimp-dev cmake
echo 4/10 Install meson
pip3 install meson --force-reinstall
echo $PATH | grep $HOME/.local/bin || export PATH=$HOME/.local/bin:$PATH
echo 5/10 Install mako
pip3 install mako
echo 6/10 Get v3dv
cd ~
git clone --single-branch --branch wip/igalia/v3dv https://gitlab.freedesktop.org/apinheiro/mesa.git mesa
echo 7/10 Build v3dv
cd mesa
meson --prefix /home/pi/local-install --libdir lib -Dplatforms=x11,drm -Dvulkan-drivers=broadcom -Ddri-drivers= -Dgallium-drivers=v3d,kmsro,vc4 -Dbuildtype=debug _build
ninja -C _build
ninja -C _build install
echo 8/10 Get demos
cd ~
git clone --recursive https://github.com/SaschaWillems/Vulkan.git
cd Vulkan
echo 9/10 Get assets
python3 download_assets.py
echo 10/10 Build demos
if [ ! -d build ]; then
mkdir build
fi
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make