Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
/ CaveCube Public archive

An in-development open source voxel game

License

Notifications You must be signed in to change notification settings

PQCraft/CaveCube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CaveCube

An in-development Minecraft/Infiniminer clone



Prerequisites

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.


Bulding

  • To build, run make -j.
  • To build and run once done compiling, run make -j run.
  • To build for debugging, add DEBUG=[level] after make (eg. make DEBUG=0 -j run). This will build the executable with debug symbols, disable symbol and section stripping, and define the internal DEBUG macro with the level specified.
  • To change the target to the standalone server, add SERVER=y after make. 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 after make. 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 after make.
  • To compile using OpenGL ES instead of OpenGL, add USEGLES=y after make.

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.


Notes Packaging status