Skip to content

Instantly share code, notes, and snippets.

@yisonPylkita
Last active February 3, 2023 23:18
Show Gist options
  • Save yisonPylkita/00f549d1e7aa228ee78f6d29ceb68b81 to your computer and use it in GitHub Desktop.
Save yisonPylkita/00f549d1e7aa228ee78f6d29ceb68b81 to your computer and use it in GitHub Desktop.

Create VM

multipass launch 22.04 -n primary -c 4 -m 4G -d 25G
multipass shell

Instal system packages

sudo apt update & sudo apt upgrade -y && sudo apt install -y build-essential cmake libgl1-mesa-dev libpulse-dev libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb1 libxkbcommon-dev libxcb-xkb-dev qt6-base-dev qt6-3d-dev

Vulkan SDK (not used for now; skip this step)

sudo apt install mesa-vulkan-drivers vulkan-tools && \
sudo apt install -y libglm-dev cmake libxcb-dri3-0 libxcb-present0 libpciaccess0 \
libpng-dev libxcb-keysyms1-dev libxcb-dri3-dev libx11-dev g++ gcc \
libwayland-dev libxrandr-dev libxcb-randr0-dev libxcb-ewmh-dev \
git python3 bison libx11-xcb-dev liblz4-dev libzstd-dev python3-distutils \
ocaml-core ninja-build pkg-config libxml2-dev wayland-protocols qtcreator \
qtbase5-dev qt5-qmake qtbase5-dev-tools

mkdir vulkan && cd vulkan
wget https://sdk.lunarg.com/sdk/download/1.3.239.0/linux/vulkansdk-linux-x86_64-1.3.239.0.tar.gz
tar xvf vulkansdk-linux-x86_64-1.3.239.0.tar.gz
cd 1.3.239.0

Remove g++-multilib and python from ./vulkansdk and run it

./vulkansdk -j $(nproc)
echo source ~/vulkan/1.3.239.0/setup-env.sh >> ~/.profile

Install Rust & open new shell (ENV update)

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Exit VM and login once again

exit
multipass shell

Download repo

git clone --recursive https://github.com/obhq/obliteration.git ~/obliteration

Build project

cd ~/obliteration
cmake --preset linux-debug .
cmake --build --preset linux-debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment