I just built minetest-server without a hitch on my Pi2. I fired it up without any tweaks or settings.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
I have to say it was pretty darn satisfying getting a Minetest server on that little bugger.
I'm not sure how your Pi2 is setup. As I said earlier mine is headless so it's all command line. I decided to do a quick dirty "Run In Place" build as I wanted to make sure I'd be happy with it and want to make a .deb for a system install. This is how "I" did it. Adjust to your needs:
1) I ssh'd into my pi and decided I was fine with building in the home directory.
2) Basically going by what's in the famous
Minetest One Liner, I made sure all the dependencies were installed by running this command.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libspatialindex-dev
The one liner is a bit outdated so I changed libjpeg8-dev to libjpeg-dev. I also added libspatialindex-dev as it's searched for in the configure, so it must be important right? I omitted libleveldb-dev as I've yet to use leveldb and I'm not sure what kind of ram it uses up so I'll be content with msql on the little Pi2.
3) Next we need to get the sources, so I fired off another portion of the one liner to get them:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ../;
This downloads Minetest source code from git, then downloads the game files, and then changes back one directory to end up in the Minetest source directory created in the download.
4) The last part of the one liner is then fired off:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
cmake . -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=0 -DENABLE_REDIS=0 -DBUILD_SERVER=1 -DBUILD_CLIENT=0; make -j$(nproc)
I didn't want to build the client as I'm going to be headless
-DBUILD_CLIENT=0
I wanted to make sure it knew to build the server
-DBUILD_SERVER=1
I have no interest in the redis or leveldb databases at this time so...
-DENABLE_REDIS=0 -DENABLE_LEVELDB=0
5) Wait 12 minutes for the Pi2 to build the server.
6) Start a default server without any config or options this time to see if it works: The executable is located in the bin folder of the directory you just were building in, so launch it with this command:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
/home/pi/minetest/bin/minetestserver
7) Jump on a minetest computer somewhere in your network and test by connecting to your Pi2's IP address and the default port of 30000
Have fun!