-
Notifications
You must be signed in to change notification settings - Fork 41
Building for Windows
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 thelibs
folder in your BetterSpades source
- Download the latest binary release from here
- Unzip the file and copy
libs/Win32/OpenAL32.lib
to thelibs
folder in your BetterSpades source
- Download the latest binary release from here
- Unzip the file and copy
enet.lib
to thelibs
folder in your BetterSpades source
- Download the latest i686 binary release from here
- Unzip the file and copy
libdeflate.lib
to thelibs
folder in your BetterSpades source - Copy
libdeflate.h
to thesrc
folder in your BetterSpades source
- Download the source as a zip file from here
- Unzip the file and copy
dr_wav.h
to thesrc
folder in your BetterSpades source - Rename the file from
dr_wav.h
todr_wav.c
- Open the file and change line 9 from
// #define DR_WAV_IMPLEMENTATION
to just#define DR_WAV_IMPLEMENTATION
- Download the source as a zip file from here
- Create a new folder
lodepng
in thesrc
folder of your BetterSpades source - Unzip the file and copy
lodepng.h
andlodepng.cpp
to thelodepng
folder you just created - Rename the
lodepng.cpp
you just copied tolodepng.c
- Download the source as a zip file from here
- Unzip the file and copy
ini.c
andini.h
to thesrc
folder in your BetterSpades source
- Download the source as a zip file from here
- Unzip the file and copy
parson.c
andparson.h
to thesrc
folder in your BetterSpades source
- Download the source as a zip file from here
- Unzip the file and copy
http.h
to thesrc
folder in your BetterSpades source
Because state of copyright of 0.75 assets is unknown, you will need to get them here. Unzip the file and extract all contents to the resources
folder in your BetterSpades source manually.
- 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 should be in the build/bin/
subfolder.
When starting client.exe
, you will be greeted by a server list. Select a server on it to start playing!
You can also start the client the same way as you did with the voxlap version by opening cmd and putting an aos://
link in as the first argument:
client.exe -aos://16777343:32887 // Connects to a local server