An in-development Minecraft/Infiniminer clone
GLFW or SDL2, GNU Make, and a C compiler with POSIX thread support are needed to build CaveCube.
For Windows, the GLFW or SDL2 development binaries must be installed from their respective websites: GLFW, SDL2.
For outdated/stable Linux distributions (such as Debian or Ubuntu), GLFW must be built from source due to the package being out of date.
- To build, run
make -j
. - To build and run once done compiling, run
make -j run
. - To build for debugging, add
DEBUG=[level]
aftermake
(eg.make DEBUG=0 -j run
). This will build the executable with debug symbols, disable symbol and section stripping, and define the internalDEBUG
macro with the level specified. - To change the target to the standalone server, add
SERVER=y
aftermake
. You must also apply this to clean to remove the server binary. - To cross compile to Windows on a non-Windows OS, add
WIN32=y
aftermake
. You must also use this when running the clean rule to remove the correct files. - To compile with using SDL2 instead of GLFW, add
USESDL2=y
aftermake
. - To compile using OpenGL ES instead of OpenGL, add
USEGLES=y
aftermake
.
These variables can be combined.
For example, make USESDL2=y WIN32=y -j run
will build CaveCube for Windows with SDL2 and run when compilation finishes.
- CaveCube can be installed on Arch Linux using the cavecube or cavecube-bin package.