Minetestserver 5.4.x Raspberry Pi

Post Reply
blocker
Member
Posts: 42
Joined: Fri Jan 08, 2021 06:14
Location: Germany

Minetestserver 5.4.x Raspberry Pi

by blocker » Post

Hi,
how can i install/build dte Server version of Minetest 5.4.x on a Raspberry Pi?
Pleas no snap or flatpack installation.

My current setup: Raspberry OS/Raspian Buster, Minetest 5.3 on a Raspberry Pi 4, 4GB

User avatar
Walker
Member
Posts: 1802
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: Minetestserver 5.4.x Raspberry Pi

by Walker » Post

like on a "normal" system

- download the TAR.GZ from github ( only until 5.4.0 ... everythink later is more complicated because of irrlicht-mt )
- install the dependencys ( see README.TXT )
- extract the TAR.GZ
- change into the new directory
- build with "cmake" and "make"
- done
Last edited by Walker on Wed May 12, 2021 17:03, edited 1 time in total.

User avatar
Walker
Member
Posts: 1802
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: Minetestserver 5.4.x Raspberry Pi

by Walker » Post

Code: Select all

wget https://github.com/minetest/minetest/archive/refs/tags/5.4.0.tar.gz
sudo apt 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
tar -xaf 5.4.0.tar.gz 
cd minetest-5.4.0
cmake .
make -j$(nproc)
./bin/minetest --server --foo bar

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: Minetestserver 5.4.x Raspberry Pi

by sfan5 » Post

Alternatively this server building script should also work on an RPi:
viewtopic.php?p=311160#p311160
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Walker
Member
Posts: 1802
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: Minetestserver 5.4.x Raspberry Pi

by Walker » Post

sfan5 wrote:
Fri May 14, 2021 20:36
Alternatively this server building script should also work on an RPi:
viewtopic.php?p=311160#p311160
have you added irrlicht-mt support ther ?

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: Minetestserver 5.4.x Raspberry Pi

by sfan5 » Post

Building the server currently doesn't need IrrlichtMt, I'll probably add the support once it's necessary.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

blocker
Member
Posts: 42
Joined: Fri Jan 08, 2021 06:14
Location: Germany

Re: Minetestserver 5.4.x Raspberry Pi

by blocker » Post

Thank you for your instructions. I used the one from sfan5 because I only need the server for now.
sfan5 wrote:
Tue Feb 06, 2018 11:16

First step, choosing the Minetest version:

Code: Select all

export branch=$(printf "Enter Minetest version: " >&2;read r;echo "$r")
It will ask you to enter a Minetest version. You can enter any numeric version, but you probably want either of these:
  • master: Latest development state (5.5.0-dev)
  • stable-5: Stable release in the 5 series (5.4.1)
After you've done that just paste the one-line script into your terminal:

Code: Select all

(sudo apt-get install -y unzip g{it,cc,++} {c,}make {zlib1g,lib{sqlite3,curl4-openssl,luajit-5.1,leveldb}}-dev&&cd $(mktemp -dp /var/tmp)&&wget downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip -O irr.zip&&unzip -q irr.zip&&git clone -b $branch https://github.com/minetest/minetest&&cd minetest&&git clone -b $branch {https://github.com/minetest,games}/minetest_game&&cmake . -D{BUILD_CLIENT=0,{BUILD_SERVER,RUN_IN_PLACE,ENABLE_LEVELDB}=1,IRRLICHT_INCLUDE_DIR=$PWD/../irrlicht-1.8.4/include}&&make -j$(nproc) package&&p=$(echo minetest-*.tar.gz)&&cp "$p" ~&&printf '\n\n\e[1;32mBuild successful, an archive called "%s" was placed in your home folder.\nTo run the server, extract the archive and run the executable inside the 'bin/' folder\e[0m\n' "$p")||printf '\n\n\e[1;31mBuild failed, review log output above to identify and fix the issue.\e[0m\n'
It will ask you for your password once in the beginning.

Once it's done you'll have a .tar.gz archive in your home folder, you can extract it anywhere you'd like and run minetestserver from there like a portable installation.
It works (testet in pi users home directory)
My next step ist to upgrade my running 5.3 Server with the file from the tar.gz file.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests