Installation¶
This guide covers installing the prerequisites needed to build VulkanW3DViewer.
Prerequisites¶
Vulkan SDK¶
The Vulkan SDK is required for building and running the application.
- Download the Vulkan SDK from LunarG
- Run the installer
- The SDK should install to
C:/VulkanSDK/ - Verify the
VULKAN_SDKenvironment variable is set
Ubuntu/Debian:
# Add LunarG repository
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
# Install SDK
sudo apt update
sudo apt install vulkan-sdk
Arch Linux:
Fedora:
- Download the Vulkan SDK from LunarG
- Mount the DMG and run the installer
- Add to your shell profile:
CMake¶
CMake 3.20 or later is required.
Download from cmake.org or install via:
Compiler¶
A C++20 compatible compiler is required. Clang is recommended.
- Install MSYS2
- Open MSYS2 MinGW64 shell
- Install the toolchain:
Clone the Repository¶
Clone the repository with submodules:
Submodules Required
The --recursive flag is essential. If you forget it, initialize submodules manually:
Verify Installation¶
Confirm everything is set up:
# Check Vulkan
vulkaninfo --summary
# Check CMake
cmake --version
# Check compiler
clang++ --version
Next Steps¶
Now you're ready to build the project!