Skip to content
Eric Engeström edited this page Mar 19, 2016 · 1 revision

Prerequisites

Ubuntu

Tested on Ubuntu 16.04

Install the driver

Install the Vulkan driver for Intel graphics cards (https://launchpad.net/~canonical-x/+archive/ubuntu/vulkan)

sudo apt-add-repository ppa:canonical-x/vulkan
sudo apt update
sudo apt install vulkan-utils mesa-vulkan-drivers

Install the project's dependencies

sudo apt install libassimp-dev libxcb1-dev

Archlinux

Install the driver

pacman -S vulkan-devel vulkan-intel

Install the project's dependencies

pacman -S assimp libxcb

Build

Clone the repository

git clone https://github.com/SaschaWillems/Vulkan
cd Vulkan

Build everything

mkdir -p build
cd build
cmake ..
make

Run

cd bin
./triangle

Troubleshooting

Enable DRI3

cat << EOF > /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "DRI"    "3"
EndSection
EOF