Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.2 KB

BUILD_WINDOWS.md

File metadata and controls

35 lines (31 loc) · 1.2 KB

How to build on Windows

How to build with MSVC on Windows

  1. Download and install VulkanSDK
  2. Download and install CMake
  3. Download and install VisualStudio for MSVC
  4. Create and configure a project with the framework and build it

How to build with GCC on Windows

  1. Install MSYS2
  2. Run "MSYS2 MSYS" from Start menu
  3. 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
  1. Add to Path:
C:\msys64\usr\bin
C:\msys64\usr\local\bin
C:\msys64\mingw64\bin
C:\msys64\mingw32\bin
  1. 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 .