Ottocento Engine is available to build on Windows, Linux and MacOS. It uses premake5 to either build a solution on windows or a makefile for Linux and MacOS X. Generating the build is pretty straightforward.
git clone https://github.com/lknknm/vulkan-tutorial.git
- GLFW.
- VulkanSDK.
- GLM (OpenGL Mathematics).
- GLSLC shader compiler.
- Download and Install Premake5 for either Linux, Windows or MacOS.
- Download and Install VisualStudio 2022 (Community), JetBrains Rider, or any IDE that supports opening solution files for C++ projects.
- Download and Install the VulkanSDK package.
- Ottocento includes the binaries for the glfw-3.4.Win.64 version of GLFW. But if you want to link it with your own installation/binaries, you can check the latest version here.
- In the project's root folder, run:
premake5 vs2022 --os=windows
- Open the generated
*.sln
file with your IDE of choice to run it.
Download and Install the VulkanSDK Command-line utilities and run vkcube
on the terminal to confirm if your machine supports Vulkan:
sudo apt install vulkan-tools
or
sudo dnf install vulkan-tools
Download and install the Vulkan Loader so Vulkan can look up the functions in the driver at runtime:
sudo apt install libvulkan-dev
or
sudo dnf install vulkan-loader-devel
sudo apt install vulkan-validationlayers-dev spirv-tools
or
sudo dnf install mesa-vulkan-devel
Alternatively, you can run sudo pacman -S vulkan-devel
on Arch-Linux to install all the aforementioned Vulkan packages at once.
Install GLFW by running either:
sudo apt install libglfw3-dev
or
sudo dnf install glfw-devel
or
sudo pacman -S glfw-wayland # glfw-x11 for X11 users
Install GLM by running either:
sudo apt install libglm-dev
or
sudo dnf install glm-devel
or
sudo pacman -S glm
Finally, to generate the Makefile using premake5
, in the project's root directory, run:
premake5 gmake --os=linux && make
Alternatively you can also generate the release build with:
make config=release
Now you are all set to Build, Run and Contribute to the Ottocento Engine!