What i must use to compile minetest??
- 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??
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!
DMs are always open if you want to get in touch!
Re: What i must use to compile minetest??
Which OS? Windows? Linux? Which Distribution?
Re: What i must use to compile minetest??
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 :)
- 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??
ok thanks necron099
and burli i'm on windows (10 but that don't change that much)
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!
DMs are always open if you want to get in touch!
Re: What i must use to compile minetest??
I'm using linux...don't know how to compile on windows, but hopefully you'll get it done :)
- 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??
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
HOMETOWN -Our little server. Keep the HOMETOWN chatter @ http://hometownserver.com - Our server map: http://media.hometownserver.com
- 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??
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!
DMs are always open if you want to get in touch!
- cheapie
- Member
- Posts: 319
- Joined: Mon May 14, 2012 00:59
- GitHub: cheapie
- IRC: cheapie
- In-game: cheapie
Re: What i must use to compile minetest??
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
- 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??
...
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: What i must use to compile minetest??
Looks like the replies didn't answer your question, so I'll do this now.azekill_DIABLO wrote:...
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>
- 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??
thx :)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: What i must use to compile minetest??
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
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
- 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??
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!
DMs are always open if you want to get in touch!
Re: What i must use to compile minetest??
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 :)
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...
- Nathan.S
- Member
- Posts: 1152
- 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??
I use Linux Mint, there is really no reason why Ubuntu shouldn't work, just follow these instructions.
https://dev.minetest.net/Compiling_Minetest
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
Check out my website, and brand new Minetest Modding Course
Re: What i must use to compile minetest??
...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
Re: What i must use to compile minetest??
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.
Re: What i must use to compile minetest??
Can't even get the first one on the list.
Because UBUNTU.
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.
-
- 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??
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.
- 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??
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
To install via the PPA:
Code: Select all
sudo add-apt-repository -y ppa:minetestdevs/stable && sudo apt update && sudo apt install minetest -y
Stable (currently 0.4):
Code: Select all
sudo snap install minetest-luk3yx
Code: Select all
sudo snap install minetest-luk3yx-dev
git_undo() { [ -e .git ] || return 1; local r=$(git remote get-url origin); cd ..; rm -rf "$OLDPWD"; git clone "$r" "$OLDPWD"; cd "$OLDPWD"; }
Re: What i must use to compile minetest??
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.
2-Install most of the dependencies
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
3.2-Ncurse for "minetestserver --terminal" support
3.3- Ccmake -> this is not a compile dependencies but is a nice addon to switch the cmake options with a ncurse based UI.
3.4 - git
4- Get the source code (this is extracted from the github Readme), you will get the 0.5-dev source code.
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
From here you can follow the with on github.
I hope this help somebody.
Best Regards
Trungus
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
Code: Select all
sudo apt-get build-dep minetest
3-Additional dependencies (optionals)
3.1-Luajit
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
I hope this help somebody.
Best Regards
Trungus
Re: What i must use to compile minetest??
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);
Re: What i must use to compile minetest??
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...
45% now...
Last edited by zaphraud on Mon Feb 11, 2019 23:02, edited 1 time in total.
- 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??
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);
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"; }
Re: What i must use to compile minetest??
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.