Skip to content

Develop KeeperFX with CMake and Visual Studio 2022

Evan edited this page Oct 25, 2024 · 26 revisions

In the development branch, you can develop with CMake and Visual Studio 2022.

Install tools

  1. Visual Studio 2022 v17.11.5 or above versions.
  • Community or other commercial versions.
  • (Optional) Install clang-cl tools. See this document for details.
  1. CMake 3.30.5 or above versions.
  2. MSYS2 (msys2-x86_64-20240727.exe or newer)

Install packages for MSYS2.

Open msys2_shell.cmd in C:\msys64 (your MSYS2 installation), and install these packages by the pacman.

  • pacman -S make gettext base-devel
  • pacman -S mingw-w64-i686-gcc
  • pacman -S mingw-w64-i686-gdb

Start VS and open the keeperfx project folder.

  • Visual Studio 2022 is supposed to configure the CMake immediately. Please wait for it to finish.
  • If you are new to CMake and VS 2022, I suggest that you read this document.
  • Now, only x86-MinGW32-Debug or x86-MinGW32-Release can build a playable game. image
  • You can choose the standard or **heavylog **target. image

Clone this wiki locally