What i must use to compile minetest??

For people working on the C++ code.
User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

What i must use to compile minetest??

by azekill_DIABLO » Post

pls answer to a noob ;)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: What i must use to compile minetest??

by burli » Post

Which OS? Windows? Linux? Which Distribution?

necron099
Member
Posts: 63
Joined: Wed Feb 27, 2013 16:10
Location: Florida

Re: What i must use to compile minetest??

by necron099 » Post

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 :)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: What i must use to compile minetest??

by azekill_DIABLO » Post

ok thanks necron099

and burli i'm on windows (10 but that don't change that much)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

necron099
Member
Posts: 63
Joined: Wed Feb 27, 2013 16:10
Location: Florida

Re: What i must use to compile minetest??

by necron099 » Post

I'm using linux...don't know how to compile on windows, but hopefully you'll get it done :)

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: What i must use to compile minetest??

by ExeterDad » Post

I am no help with Windows as we haven't owned it for years. But this link seems to do a good job outlining what the steps are. http://dev.minetest.net/Compiling_Minet ... on_Windows

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: What i must use to compile minetest??

by azekill_DIABLO » Post

wow that a lot of heavy stuff
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
cheapie
Member
Posts: 316
Joined: Mon May 14, 2012 00:59
GitHub: cheapie
IRC: cheapie
In-game: cheapie

Re: What i must use to compile minetest??

by cheapie » Post

azekill_DIABLO wrote:wow that a lot of heavy stuff
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.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: What i must use to compile minetest??

by azekill_DIABLO » Post

...
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: What i must use to compile minetest??

by Krock » Post

azekill_DIABLO wrote:...
Looks like the replies didn't answer your question, so I'll do this now.
The wiki page tells you what libraries you need in addition to the Visual Studio and CMake.
I compiled some libraries with MSVC 2010. You can use them to compile your game but I don't know if they work for 64-bit builds, so try the 32-bit first to make sure it works.

Un7zip the archive into your working directory and fill in the paths into cmake-gui like the dev wiki article says. To make sure you have selected the right file name, you can look at my setup here.

When you compiled the stuff, create a new directory where you can copypaste all the dll files and Minetest directories in.
Contact me on IRC if you have questions.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: What i must use to compile minetest??

by azekill_DIABLO » Post

thx :)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

mr_dean
Member
Posts: 30
Joined: Fri Jan 06, 2017 00:38
In-game: mr_dean
Location: Modding...

Re: What i must use to compile minetest??

by mr_dean » Post

azekill_DIABLO,

If you use Windows, then Microsoft Community Visual studio should work fine. Mac, I'm not sure, and from what I have seen here, you don't use Linux.

I don't even know if you even use this any more, but I'm just sayin.

On the bright side, You can use the most shiny Windows compiler there is 8D
I know you believe you understand what you think I said, but, I am not sure that what you heard is not what I meant. - Author Unknown

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: What i must use to compile minetest??

by azekill_DIABLO » Post

thank you! i totaly forgot this thread ;) 8D might be interesting!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

zaphraud
New member
Posts: 9
Joined: Fri Feb 01, 2019 01:42
IRC: zaphraud

Re: What i must use to compile minetest??

by zaphraud » Post

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 :)
I would like to approach the question from the other way..

Of those of you who use Linux, what distribution do you or others use to compile it with?

Ubuntu doesn't want to play along, and I'm not surprised considering Ubuntu installs with nearly everything missing by default. Ubuntu doesn't even install make (let along cmake) by default and it's all uphill after that. I've managed to get it to be a decent LAMP server but the writings on the wall, I should be using something else...

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: What i must use to compile minetest??

by Nathan.S » Post

I use Linux Mint, there is really no reason why Ubuntu shouldn't work, just follow these instructions.
https://dev.minetest.net/Compiling_Minetest
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

zaphraud
New member
Posts: 9
Joined: Fri Feb 01, 2019 01:42
IRC: zaphraud

Re: What i must use to compile minetest??

by zaphraud » Post

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
...it dies at installing the dependencies. Don't know why this Ubuntu is FUBAR, but it just is. Oh well.

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
I see garbage like that a lot with this install and I'm 99% sure its Ubuntu's GUI garbage conflicting with the way apt normally handles things. It has a very annoying graphic update thing that pops up at the worst of times.

zaphraud
New member
Posts: 9
Joined: Fri Feb 01, 2019 01:42
IRC: zaphraud

Re: What i must use to compile minetest??

by zaphraud » Post

I took libpng12-dev out of the list of apt-gets just to see if I could get the rest. Nope.

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.

zaphraud
New member
Posts: 9
Joined: Fri Feb 01, 2019 01:42
IRC: zaphraud

Re: What i must use to compile minetest??

by zaphraud » Post

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.

random_geek
Member
Posts: 55
Joined: Wed Jun 20, 2018 18:55
GitHub: random-geek
In-game: Techy5 random_geek

Re: What i must use to compile minetest??

by random_geek » Post

zaphraud wrote:Can't even get the first one on the list.
Because UBUNTU.
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. :P

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: What i must use to compile minetest??

by luk3yx » Post

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.

Although it may seem like it, I doubt a lot of this is actually Ubuntu's fault and could easily be fixed

Before doing any other apt or apt-get commands, you should fix any broken packages with the following command (also mentioned in another post):

Code: Select all

sudo apt install -f
Why do you want to spend time compiling Minetest when you can install the latest version with a few commands? You can nicely install and upgrade Minetest without compiling by either using the official PPA or my snap.

To install via the PPA:

Code: Select all

sudo add-apt-repository -y ppa:minetestdevs/stable && sudo apt update && sudo apt install minetest -y
To install my snap:

Stable (currently 0.4):

Code: Select all

sudo snap install minetest-luk3yx
Recent development (currently 5.0) builds:

Code: Select all

sudo snap install minetest-luk3yx-dev
If that doesn't work, you can always blame Ubuntu and go posting on the forums about how bad Ubuntu is.
git_undo() { [ -e .git ] || return 1; local r=$(git remote get-url origin); cd ..; rm -rf "$OLDPWD"; git clone "$r" "$OLDPWD"; cd "$OLDPWD"; }

trungus
Member
Posts: 10
Joined: Thu Apr 19, 2018 18:14
In-game: Trungus

Re: What i must use to compile minetest??

by trungus » Post

HI Guys

This is the first time I can contribute to something in this amazing project.

There is a nice trick to easy compile in any Debian-derivative distro, I'll put every command with a short explanation,

1-Update package list, if you don't do this you could get error like "package XXXX could not be installed" because you have the filename of an old packave. The -y option say "yes" to every question automatically.

Code: Select all

sudo apt-get update -y
2-Install most of the dependencies

Code: Select all

sudo apt-get build-dep minetest
The "build-dep" command instruct to apt to get every package needed to compile a given package, you need the source repos for run this command, in general they are active by default, the only exception I know is Deepin OS, you need to activate by hand on it.
3-Additional dependencies (optionals)
3.1-Luajit

Code: Select all

sudo apt-get install libluajit* luajit
3.2-Ncurse for "minetestserver --terminal" support

Code: Select all

sudo apt-get install libncurses5 libncurses5-dev libncursesw5 libncursesw5-dev
3.3- Ccmake -> this is not a compile dependencies but is a nice addon to switch the cmake options with a ncurse based UI.

Code: Select all

sudo apt-get install cmake-curses-gui
3.4 - git

Code: Select all

sudo apt-get install git
4- Get the source code (this is extracted from the github Readme), you will get the 0.5-dev source code.

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
4.1 (Optional) if you want the to compile the 0.4.17.1 (or any other), you need to do this, you need to run this command twice, the first in the minetest directory and the second in the game/minetest_game directory

Code: Select all

git fetch --tags
git checkout tags/0.4.17.1 
From here you can follow the with on github.

I hope this help somebody.

Best Regards
Trungus

zaphraud
New member
Posts: 9
Joined: Fri Feb 01, 2019 01:42
IRC: zaphraud

Re: What i must use to compile minetest??

by zaphraud » Post

random_geek wrote:
zaphraud wrote:Can't even get the first one on the list.
Because UBUNTU.
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. :P
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:

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's more than one warning about a botched if statement in there.. g++ wasn't that helpful before. Heh.

zaphraud
New member
Posts: 9
Joined: Fri Feb 01, 2019 01:42
IRC: zaphraud

Re: What i must use to compile minetest??

by zaphraud » Post

43% and still chugging thru it... compiling on a celeron laptop. But hey it runs for twelve hours and doesn't make any fan noise and is smol. Just not a very fast compiler.
45% now...
Last edited by zaphraud on Mon Feb 11, 2019 23:02, edited 1 time in total.

User avatar
luk3yx
Member
Posts: 83
Joined: Sun Oct 21, 2012 18:14
GitHub: luk3yx
IRC: luk3yx
In-game: luk3yx
Location: Earth
Contact:

Re: What i must use to compile minetest??

by luk3yx » Post

zaphraud wrote:
random_geek wrote:
zaphraud wrote:Can't even get the first one on the list.
Because UBUNTU.
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. :P
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:

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's more than one warning about a botched if statement in there.. g++ wasn't that helpful before. Heh.
There are indeed warnings when compiling MT, this is normal, however there aren't (or at least shouldn't) be any errors.

Ubuntu's "graphics based update system" uses apt (or an apt library) internally, it should never "lag behind" what you see in the terminal.
Last edited by luk3yx on Mon Feb 11, 2019 23:04, edited 1 time in total.
git_undo() { [ -e .git ] || return 1; local r=$(git remote get-url origin); cd ..; rm -rf "$OLDPWD"; git clone "$r" "$OLDPWD"; cd "$OLDPWD"; }

zaphraud
New member
Posts: 9
Joined: Fri Feb 01, 2019 01:42
IRC: zaphraud

Re: What i must use to compile minetest??

by zaphraud » Post

If they aren't bugs, then the code isn't using proper indenting. That's essentially what its complaining about. Which is kind of lol, like its a professor or something.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest