Skip to content

Building for Windows

xtreme8000 edited this page May 28, 2020 · 2 revisions

Prerequisites

Building on Windows is a bit more complicated than on Linux. You will need common sense and know how to use the Windows command prompt.

MinGW

You will need to install MinGW. You can find straightforward instructions here. In the mingw-get GUI you should install the packages found in the Basic Setup category.

cmake

Install cmake from here. Download the installer and run it. Be sure to select the option to add cmake to your PATH.

After installing MinGW and cmake you can test your installations. Open up your command prompt and type in the following commands: mingw32-make -v
cmake --version

Both commands should return some version information.

Dependencies

GLFW

  • Download the latest 32 bit Windows release from here
  • Unzip the file and copy lib-mingw/libglfw.a to the deps folder in your BetterSpades source

OpenAL

  • Download the latest binary release from here
  • Unzip the file and copy libs/Win32/OpenAL32.lib to the deps folder in your BetterSpades source

enet

  • Download the latest binary release from here
  • Unzip the file and copy enet.lib to the deps folder in your BetterSpades source

libdeflate

  • Download the latest i686 binary release from here
  • Unzip the file and copy libdeflate.lib to the deps folder in your BetterSpades source
  • Copy libdeflate.h to the deps folder in your BetterSpades source

Building

  • Open the command prompt and navigate to the build folder in your BetterSpades source
  • Execute the following commands
    cmake -G "MinGW Makefiles" ..
    mingw32-make

If everything went well, the client.exe should be in the build/BetterSpades/ subfolder.

Clone this wiki locally