What i must use to compile minetest??
Posted: Wed May 18, 2016 16:07
pls answer to a noob ;)
The official Minetest discussion board
https://forum.minetest.net/
And that's why most of us run Linux. It's a lot easier to compile it (for Linux or Windows) from there. It might even be worthwhile to set up a Linux VM and use the buildbot instead of compiling on Windows.azekill_DIABLO wrote:wow that a lot of heavy stuff
Looks like the replies didn't answer your question, so I'll do this now.azekill_DIABLO wrote:...
I would like to approach the question from the other way..necron099 wrote:When you download the source and extract it there is a README.txt file, and that should tell you what you need and how to get it if I'm not mistaken. Happy compiling :)
...it dies at installing the dependencies. Don't know why this Ubuntu is FUBAR, but it just is. Oh well.Nathan.S wrote:I use Linux Mint, there is really no reason why Ubuntu shouldn't work, just follow these instructions.
https://dev.minetest.net/Compiling_Minetest
Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev'
Package libpng12-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libpng12-dev' has no installation candidate
Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev'
cmake is already the newest version (3.10.2-1ubuntu2).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential : Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
libcurl4-openssl-dev : Depends: libcurl4 (= 7.58.0-2ubuntu3) but 7.58.0-2ubuntu3.5 is to be installed
libfreetype6-dev : Depends: libpng-dev but it is not going to be installed
libgl1-mesa-dev : Depends: mesa-common-dev (= 18.0.0~rc5-1ubuntu1) but it is not going to be installed
Depends: libglvnd-dev but it is not going to be installed
Depends: libx11-dev but it is not going to be installed
Depends: libx11-xcb-dev but it is not going to be installed
Depends: libxdamage-dev but it is not going to be installed
Depends: libxext-dev but it is not going to be installed
Depends: libxfixes-dev but it is not going to be installed
libjpeg8-dev : Depends: libjpeg-turbo8-dev (>= 1.1.90+svn722-1ubuntu6) but it is not going to be installed
libxxf86vm-dev : Depends: libx11-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Code: Select all
zaphraud@friendly:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential : Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I don't have a lot of experience with these kinds of problems, but you could try "sudo apt-get update", "sudo apt-get upgrade", and then "sudo apt-get install -f". If it still doesn't work, try restarting the computer. If it still doesn't work then, paste your errors here again. Sorry I'm not much help. :Pzaphraud wrote:Can't even get the first one on the list.
Because UBUNTU.
zaphraud wrote:Can't even get the first one on the list.
Because UBUNTU.Code: Select all
zaphraud@friendly:~$ sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: build-essential : Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Code: Select all
sudo apt install -f
Code: Select all
sudo add-apt-repository -y ppa:minetestdevs/stable && sudo apt update && sudo apt install minetest -y
Code: Select all
sudo snap install minetest-luk3yx
Code: Select all
sudo snap install minetest-luk3yx-dev
Code: Select all
sudo apt-get update -y
Code: Select all
sudo apt-get build-dep minetest
Code: Select all
sudo apt-get install libluajit* luajit
Code: Select all
sudo apt-get install libncurses5 libncurses5-dev libncursesw5 libncursesw5-dev
Code: Select all
sudo apt-get install cmake-curses-gui
Code: Select all
sudo apt-get install git
Code: Select all
git clone --depth 1 https://github.com/minetest/minetest.git
cd minetest
git clone --depth 1 https://github.com/minetest/minetest_game.git games/minetest_game
Code: Select all
git fetch --tags
git checkout tags/0.4.17.1
Yeah that's what I'm used to for other debian stuff. Turns out that confuses ubuntu's graphic based update system, which needed to catch up. It's compiling now. With lots of interesting warnings, like:random_geek wrote:I don't have a lot of experience with these kinds of problems, but you could try "sudo apt-get update", "sudo apt-get upgrade", and then "sudo apt-get install -f". If it still doesn't work, try restarting the computer. If it still doesn't work then, paste your errors here again. Sorry I'm not much help. :Pzaphraud wrote:Can't even get the first one on the list.
Because UBUNTU.
Code: Select all
/home/zaphraud/Games/minetest-master/lib/lua/src/ltablib.c: In function ‘addfield’:
/home/zaphraud/Games/minetest-master/lib/lua/src/ltablib.c:137:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (!lua_isstring(L, -1))
^~
/home/zaphraud/Games/minetest-master/lib/lua/src/ltablib.c:140:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
luaL_addvalue(b);
There are indeed warnings when compiling MT, this is normal, however there aren't (or at least shouldn't) be any errors.zaphraud wrote:Yeah that's what I'm used to for other debian stuff. Turns out that confuses ubuntu's graphic based update system, which needed to catch up. It's compiling now. With lots of interesting warnings, like:random_geek wrote:I don't have a lot of experience with these kinds of problems, but you could try "sudo apt-get update", "sudo apt-get upgrade", and then "sudo apt-get install -f". If it still doesn't work, try restarting the computer. If it still doesn't work then, paste your errors here again. Sorry I'm not much help. :Pzaphraud wrote:Can't even get the first one on the list.
Because UBUNTU.
There's more than one warning about a botched if statement in there.. g++ wasn't that helpful before. Heh.Code: Select all
/home/zaphraud/Games/minetest-master/lib/lua/src/ltablib.c: In function ‘addfield’: /home/zaphraud/Games/minetest-master/lib/lua/src/ltablib.c:137:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (!lua_isstring(L, -1)) ^~ /home/zaphraud/Games/minetest-master/lib/lua/src/ltablib.c:140:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ luaL_addvalue(b);