-
Notifications
You must be signed in to change notification settings - Fork 40
Building for Windows
xtreme8000 edited this page May 28, 2020
·
2 revisions
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.
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.
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.
- Download the latest 32 bit Windows release from here
- Unzip the file and copy
lib-mingw/libglfw.a
to thedeps
folder in your BetterSpades source
- Download the latest binary release from here
- Unzip the file and copy
libs/Win32/OpenAL32.lib
to thedeps
folder in your BetterSpades source
- Download the latest binary release from here
- Unzip the file and copy
enet.lib
to thedeps
folder in your BetterSpades source
- Download the latest i686 binary release from here
- Unzip the file and copy
libdeflate.lib
to thedeps
folder in your BetterSpades source - Copy
libdeflate.h
to thedeps
folder in your BetterSpades source
- 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.