-
Tobias Frisch authored
Signed-off-by:
Tobias Frisch <tfrisch@uni-koblenz.de>
Tobias Frisch authoredSigned-off-by:
Tobias Frisch <tfrisch@uni-koblenz.de>
BUILD_WINDOWS.md 1.20 KiB
How to build on Windows
How to build with MSVC on Windows
- Download and install VulkanSDK
- Download and install CMake
- Download and install VisualStudio for MSVC
- Create and configure a project with the framework and build it
How to build with GCC on Windows
- Install MSYS2
- Run "MSYS2 MSYS" from Start menu
- Enter the following commands into MSYS2 console: (this will update and install required packages)
pacman -Syu
pacman -Su
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
pacman -S mingw-w64-x86_64-vulkan-devel
pacman -S cmake
- Add to Path:
C:\msys64\usr\bin
C:\msys64\usr\local\bin
C:\msys64\mingw64\bin
C:\msys64\mingw32\bin
- Clone the repository and run the following commands:
mkdir debug
cd debug
cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\mingw64\bin\x86_64-w64-mingw32-g++.exe .. -G "Unix Makefiles"
cmake --build .