-
You need Git, Meson, CMake, Lua and GCC. Make sure these dependencies are installed on your system.
- Debian:
apt-get install git meson cmake build-essential lua5.4
- Arch:
pacman -S git meson cmake gcc lua
- Debian:
-
For the client, OpenGL is required:
- Debian:
apt-get install libgl1-mesa-dev
- Arch:
pacman -S mesa
- Debian:
These dependencies will be built from source if they are not present.
-
ZLib is required by both client and server.
- Debian:
apt-get install libz-dev
- Arch:
pacman -S zlib
- Debian:
-
The server requires SQLite3.
- Debian:
apt-get install libsqlite3-dev
- Arch:
pacman -S sqlite3
- Debian:
-
The client requires GLFW and GLEW.
- Debian:
apt-get install libglfw3-dev libglew-dev
- Arch:
pacman -S glfw glew
- Debian:
If you plan to build GLFW and GLEW from source, you still need their build dependencies, refer to:
(on X11/Debian based systems: apt-get install xorg-dev libxkbcommon-dev
)
By default Meson will make a debug build. Simply use
meson setup build
meson compile -C build
to build the dragonblocks client and server. If you use a debug build, the singleplayer/launcher script should be invoked from the build/ directory, because that's where the binaries are located.
# Native snapshot
./misc/snapshot.sh
# Crosscompiling for windows
# win32 (requires i686-w64-mingw32-gcc)
./misc/snapshot.sh win32
# win64 (requires x86_64-w64-mingw32-gcc)
./misc/snapshot.sh win64
Creates snapshot zipfiles.