Minetest 5.5.0 final on Raspberry PI

Post Reply
Klaustrophob
New member
Posts: 7
Joined: Tue Mar 08, 2022 08:58

Minetest 5.5.0 final on Raspberry PI

by Klaustrophob » Post

I wasn´t able to find any distributed build or neither a recent flatpak, snap and / or appimage. Those only had some rather old builds which didn´t run the most recent code. And as nobody has made an instruction how to compile the most recent release version 5.5.0 on Raspberry PI OS Legacy (32bit armhf) directly I made a small shell script to compile yourself. It was a steep learing curve - and again I learned a lot. So giving back to you as YOU helped me a lot before. ;)

I guess it should also work on 64bit edition. Please report...
  • Save the following code as file "compile_minetest.sh"

Code: Select all

echo ZZZZ Updating Apt-Get Repository List
apt-get update
echo ZZZZ Installing Dependencies
apt -y install g++ make libc6-dev libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev  libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev zstd libzstd-dev
echo ZZZZ Cloning Minetest GIT
git clone --depth 1 https://github.com/minetest/minetest -b stable-5
echo ZZZZ Navigating to Minetest Source Dir
cd minetest
echo ZZZZ Cloning Source of Minetests Fork of Irrlicht
cd lib
wget https://github.com/minetest/irrlicht/archive/refs/tags/1.9.0mt4.zip
unzip 1.9.0mt4.zip
mv irrlicht-1.9.0mt4 irrlichtmt
rm 1.9.0mt4.zip
cd irrlichtmt/
cmake . -DBUILD_SHARED_LIBS=ON
make -j$(nproc)
cd ../..
echo ZZZZ Generating Minetest Build Files
cmake . -DRUN_IN_PLACE=TRUE -DIRRLICHT_LIBRARY=lib/Linux/libIrrlichtMt.so.1.9.0 -DIRRLICHT_INCLUDE_DIR=include/
echo ZZZZ Compiling Minetest
make -j$(nproc)
cd games
git clone https://github.com/minetest/minetest_game
cd ..
rm -rf .git .github CMakeFiles android cmake misc po src util .clang-format .clang-tidy .dockerignore .editorconfig .gitattributes .gitignore .gitlab-ci.yml .luacheckrc .mailmap AppImageBuilder.yml cmake_install.cmake CMakeCache.txt CMakeDoxyfile.in CMakeDoxygenDefaults.cmake CMakeLists.txt CPackConfig.cmake CPackSourceConfig.cmake Dockerfile LICENSE.txt Makefile
cd ..
chown -R pi:pi minetest
  • put file into your homedir
  • start with

Code: Select all

sudo bash compile_minetest.sh
run with

Code: Select all

./minetest/bin/minetest
Rock the PI with Minetest \O/ - Have fun!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests