-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild_install_renderdoc.sh
66 lines (54 loc) · 1.28 KB
/
build_install_renderdoc.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
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
# Move to /root/
cd /root
export DEBIAN_FRONTEND=noninteractive
apt-get install -y \
python3-dev \
libxcb-keysyms1-dev \
libx11-xcb-dev \
libx11-dev \
libxcb-keysyms1-dev:i386 \
libx11-xcb-dev:i386 \
libx11-dev:i386 \
bison \
autoconf \
automake \
libpcre3-dev \
qt5-qmake \
libqt5svg5-dev \
libqt5x11extras5-dev \
cmake \
git
apt-get install -y git ninja-build clang gcc-i686-linux-gnu g++-i686-linux-gnu \
llvm-dev libvulkan-dev libpciaccess-dev libglvnd-dev
# Just in case we missed some
apt-get build-dep -y renderdoc
git clone --depth=1 --branch v1.31 https://github.com/baldurk/renderdoc.git
cd renderdoc
mkdir Build
mkdir Build_x86
cd Build
cmake -DLIB_SUFFIX=/x86_64-linux-gnu \
-DVULKAN_JSON_SUFFIX=.x86_64 \
-DENABLE_PYRENDERDOC=False \
-DCMAKE_INSTALL_PREFIX=/usr \
-DVULKAN_LAYER_FOLDER=/usr/share/vulkan/implicit_layer.d/ \
..
make -j65
make install
cd ../
cd Build_x86
cmake -DLIB_SUFFIX=/i386-linux-gnu \
-DVULKAN_JSON_SUFFIX=.i686 \
-DENABLE_RENDERDOCCMD=False \
-DENABLE_QRENDERDOC=False \
-DENABLE_PYRENDERDOC=False \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_COMPILER=i686-linux-gnu-gcc \
-DCMAKE_CXX_COMPILER=i686-linux-gnu-g++ \
-DVULKAN_LAYER_FOLDER=/usr/share/vulkan/implicit_layer.d/ \
..
make -j65
make install
cd /
rm -Rf /root/renderdoc