Page 2 of 2

Re: Compiling minetest 0.3.1?

PostPosted: Mon Jul 17, 2017 16:35
by azekill_DIABLO
oh thank you for trying! i relised that after 0.4 i can compile like i want so thanks, i solved my problems!

Re: Compiling minetest 0.3.1?

PostPosted: Sun Sep 03, 2017 08:52
by azekill_DIABLO
i would like my thread to be bumped with something more interesting.

Re: Compiling minetest 0.3.1?

PostPosted: Sat Jan 06, 2018 13:57
by stormchaser3000
i managed to compile 0.3.1 on manjaro linux by installing gcc43 from the AUR and then compiling minetest 0.3.1 against irrlicht 1.7.3 using gcc 4.3. there is also apparently an issue where it is neccissary to change filesys.cpp adding "#include <unistd.h>" (without quotes)

there is an odd glitch that i seem to get in both minetest 0.3.1 and voxelands (which is based on minetest 0.3.1) with the wield item for some reason but i am sure there is a fix for it.

Main Menu:
Image

Ingame:
Image

Re: Compiling minetest 0.3.1?

PostPosted: Sat Jan 06, 2018 14:58
by azekill_DIABLO
wow, thank you! will try that! (actually, you should also try with Irrlicht 1.7.2, i think this should solve the wielditem bug!)

Re: Compiling minetest 0.3.1?

PostPosted: Sat Jan 06, 2018 16:37
by Enrikoo
I don't think if this is windows, i don't use linux.

Re: Compiling minetest 0.3.1?

PostPosted: Sat Jan 06, 2018 19:55
by azekill_DIABLO
Enrikoo wrote:I don't think if this is windows, i don't use linux.


programming is better on linux anyway. Linux is better in all way :)

Re: Compiling minetest 0.3.1?

PostPosted: Fri Jun 29, 2018 14:31
by azekill_DIABLO
wes wrote:I tried to compile it myself and I also failed.

The README gives these instructions:
Install dependencies. Here's an example for Debian/Ubuntu:
$ apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev

Download source, extract (this is the URL to the latest of source repository, which might not work at all times):
$ wget https://github.com/celeron55/minetest/tarball/master -O master.tar.gz
$ tar xf master.tar.gz
$ cd celeron55-minetest-286edd4 (or similar)

Build a version that runs directly from the source directory:
$ cmake . -DRUN_IN_PLACE=1
$ make -j2

Run it:
$ cd bin
$ ./minetest


When I run
Code: Select all
apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev

Everthing works, but I get
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


When I run CMake, I don't get any errors, but finally, when I run make, I get compiler errors
Code: Select all
minetest-0.3.1/src/inventory.h:586:18: error: call of overloaded ‘stoi(std::__cxx11::string&)’ is ambiguous

It didn't even get as far yours did.
The error doesn't look related to my libpeng12-dev package problem either.
I don't know what to tell you.

After experiments, I finally hit the same barrier as you. It's a problem with GCC version; it may have been different in the past.