-
Notifications
You must be signed in to change notification settings - Fork 4
Linux Environment Setup
Nathan Reagan edited this page Apr 23, 2025
·
9 revisions
Run the following in a bash terminal to install the VulkanSDK Tarball for x86_64 systems. Note that $sdkVersion may be modified as needed.
sdkVersion=1.3.236.0
outDirectory=/opt/vulkansdk
sdkTar=vulkansdk-linux-x86_64-$sdkVersion.tar.gz
sudo rm -rf $outDirectory
wget -P /tmp https://sdk.lunarg.com/sdk/download/$sdkVersion/linux/$sdkTar
sudo mkdir -p $outDirectory
sudo tar -xf /tmp/$sdkTar -C $outDirectory
rm -f /tmp/$sdkTar
sudo wget -P $outDirectory https://sdk.lunarg.com/sdk/download/$sdkVersion/linux/config.jsonAdditionally, append the following to your bash environment (e.g. ~/.bashrc), again updating the version number as needed:
export VULKAN_SDK=/opt/vulkansdk/1.3.236.0/x86_64
export PATH=$VULKAN_SDK/bin:$PATH
export LD_LIBRARY_PATH=$VULKAN_SDK/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export VK_LAYER_PATH=$VULKAN_SDK/share/vulkan/explicit_layer.dRun the following in a bash terminal for the target OS.
sudo apt install \
git \
libx11-dev \
libx11-xcb-dev \
libxkbcommon-x11-dev \
libxcb-cursor-dev \
libxcb-xfixes0-dev \
libxcb-keysyms1-dev \
libxcursor-dev \
libxrandr-dev \
libxinerama-dev \
libgl-dev \
libxi-devsudo dnf install \
git \
libX11-devel \
xcb-util-devel \
libxkbcommon-x11-devel \
xcb-util-cursor-devel \
libxcb-devel \
xcb-util-keysyms-devel \
libXcursor-devel \
libXrandr-devel \
libXinerama-devel \
mesa-libGL-devel \
libXi-devel