-
Notifications
You must be signed in to change notification settings - Fork 23
Compiling on Debian, Ubuntu, Linux Mint, RaspberryPi OS
To install the dependencies run one of the following command sets that match your architecture:
- For x86_64 (amd64):
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install git make cmake gcc g++ gcc-multilib g++-multilib libopenal-dev:i386 libx11-dev:i386 libxrandr-dev:i386 libxinerama-dev:i386 libxcursor-dev:i386 libxi-dev:i386 libgl-dev:i386 zenity unzip python3-jinja2
- For ARM64 (aarch64):
sudo dpkg --add-architecture armhf
sudo apt update
sudo apt install git make cmake gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libopenal-dev:armhf libx11-dev:armhf libxrandr-dev:armhf libxinerama-dev:armhf libxcursor-dev:armhf libxi-dev:armhf libgl-dev:armhf zenity unzip python3-jinja2
- For x86 (i386):
sudo apt update
sudo apt install git make cmake gcc g++ libopenal-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl-dev zenity unzip python3-jinja2
- For ARM (armhf):
sudo apt update
sudo apt install git make cmake gcc g++ libopenal-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl-dev zenity unzip python3-jinja2
To download the source code you need to run the following command:
git clone http://github.com/MCPI-Revival/Ninecraft --recursive
Open a command line window in the directory of the downloaded source code or use the cd command to change the directory in an existing command line window and run one of the following commands:
- For x86_64 (amd64) and x86 (i386):
make build-i686
- For ARM64 (aarch64) and ARM (armhf):
make build-arm
After the compilation has successfully finished you'll be able to run the executable with one of the following commands that match your architecture:
- For x86_64 (amd64) and x86 (i386):
./build-i686/ninecraft/ninecraft
- For ARM64 (aarch64) and ARM (armhf):
./build-arm/ninecraft/ninecraft
To play the game you need to extract the x86 (For x86 & x86_64) or ARM (For ARM & ARM64) apk file of your desired version in the directory that you are running the game from. To do this you can either using any archiver program of your choice or use the following command (replace "/path/to/your/apk" with the actual path):
./tools/extract.sh /path/to/your/apk