Minetest - ac-minetest/COMPILING_FOR_RPI4 GitHub Wiki

COMPILING GAMES FOR RASPBERRY PI 4, raspbian OS

1. Minetest

  1. install dependencies

        `apt-get install build-essential cmake git libirrlicht-dev libbz2-dev libgettextpo-dev libfreetype6-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev
    libogg-dev libvorbis-dev libopenal-dev libhiredis-dev libcurl3-dev`
  2. download source files

    `git clone https://github.com/minetest/minetest.git`
  3. download default minetest game files - go in /minetest/games and run

    `git clone https://github.com/minetest/minetest_game.git`
  4. create makefile for your system by running in /minetest folder

    `cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1`
  5. compile using

    `make -j$(grep -c processor /proc/cpuinfo)`
  6. binary is now in /bin, run it with

    ./bin
⚠️ **GitHub.com Fallback** ⚠️