How to compile minetest dev on Manjaro/Arch Linux [1]
In this post I explain compiling minetest dev on Linux distros Arch Linux based.
This is an updated version of Miles B. Dyson guide which you can find here.
1) Update and Upgrade your system.
-Use the command $ sudo pacman -Syy
to update your databases.
-Use the command $ sudo pacman -Su
next to update your system.
2) Install necessary dependencies.
Install git and cmake separately from this command shown under.
-Copy this command into your terminal, $ sudo pacman -S bzip2 irrlicht libjpeg libpng libvorbis mesa openal sqlite
.
-Install cmake and git with $ sudo pacman -S --needed cmake git
.
3) Download source and minetest_game.
-Use git to download source $ git clone --depth 1 https://github.com/minetest/minetest.git
.
-Get into the minetest directory, $ cd minetest
.
-Use git to download minetest_game $ git clone --depth 1 https://github.com/minetest/minetest_game.git games/minetest_game
.
4) Use cmake and make.
YOU MUST BE IN THE MINETEST DIRECTORY FOR THIS STEP!!! (/home/minetest/)
-Put cmake into action with $ cmake .
.
-Use make to finish the process make
.
IF $ make
DOESNT WORK THEN YOU MUST FOLLOW MAKE ALTERNATIVE BELOW!!!
5) Run minetest.
-From the minetest directory do $ cd bin
.
-Type $ ./minetest
.
Make Alternative.
Only follow this if the make part of step 4 didnt work!
-In a new terminal window/tab type $ less /proc/cpuinfo
.
-Find CPU cores and see the number of cores you have that is next to it.
-In the minetest directory type $ make -j <number of cpu cores>
.
Replace with the number found with the ```$ less /proc/cpuinfo``` command.
Done!
Now you have a working version of minetest dev on your arch based device!
If something is wrong please post an issue here.