Compiling Minetest On Fedora 17

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

Compiling Minetest On Fedora 17

by Josh » Post

I recently setup a new computer with fedora 17, when browsing the net for tutorials on how to compile minetest on fedora 17, i found some but they were outdated. Also, there is no .rpm package for minetest 0.4.5, does anyone know how to compile the latest minetest on fedora 17?

-Josh

User avatar
0gb.us
Member
Posts: 841
Joined: Sun Sep 16, 2012 01:55
Location: 0gb.us:30000
Contact:

by 0gb.us » Post

Josh wrote:I recently setup a new computer with fedora 17, when browsing the net for tutorials on how to compile minetest on fedora 17, i found some but they were outdated. Also, there is no .rpm package for minetest 0.4.5, does anyone know how to compile the latest minetest on fedora 17?

-Josh
Compile instructions are here.

https://github.com/minetest/minetest/bl ... README.txt

I don't think apt-get works on Fedora, so you'll need to use Fedora's equivalent of apt-get. The rest of the instructions should work as-is.

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

0gb.us wrote:
Josh wrote:I recently setup a new computer with fedora 17, when browsing the net for tutorials on how to compile minetest on fedora 17, i found some but they were outdated. Also, there is no .rpm package for minetest 0.4.5, does anyone know how to compile the latest minetest on fedora 17?

-Josh
Compile instructions are here.

https://github.com/minetest/minetest/bl ... README.txt

I don't think apt-get works on Fedora, so you'll need to use Fedora's equivalent of apt-get. The rest of the instructions should work as-is.
When using cmake . -DRUN_IN_PLACE=1 i get compiling errors:

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

These 2:
-- CURL_INCLUDE_DIR = CURL_INCLUDE_DIR-NOTFOUND
-- CURL_LIBRARY = CURL_LIBRARY-NOTFOUND

And These:
-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
-- Could NOT find VORBIS (missing: OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR OGG_LIBRA

Is there anything i am missing? (eg. Cmake, OpenAL)

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Do you have a c++ compiler installed?

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

PilzAdam wrote:Do you have a c++ compiler installed?
What is its name be in Add/Remove software?

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Josh wrote:
PilzAdam wrote:Do you have a c++ compiler installed?
What is its name be in Add/Remove software?
c++

pheonixfire
Member
Posts: 94
Joined: Sun Oct 21, 2012 06:25
In-game: pheonix
Location: Australia

by pheonixfire » Post

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

These 2:
-- CURL_INCLUDE_DIR = CURL_INCLUDE_DIR-NOTFOUND
-- CURL_LIBRARY = CURL_LIBRARY-NOTFOUND

And These:
-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
-- Could NOT find VORBIS (missing: OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR OGG_LIBRA

Is there anything i am missing? (eg. Cmake, OpenAL)
to get those use the following commands in the terminal:

Code: Select all

yum install libcurl* openal* libvorbis*
the star is a wildcard so it will install any package containing the name before the star

pheonixfire

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

pheonixfire wrote:
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

These 2:
-- CURL_INCLUDE_DIR = CURL_INCLUDE_DIR-NOTFOUND
-- CURL_LIBRARY = CURL_LIBRARY-NOTFOUND

And These:
-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
-- Could NOT find VORBIS (missing: OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR OGG_LIBRA

Is there anything i am missing? (eg. Cmake, OpenAL)
to get those use the following commands in the terminal:

Code: Select all

yum install libcurl* openal* libvorbis*
the star is a wildcard so it will install any package containing the name before the star

pheonixfire
Thanks! Your from australia too? cool!

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

Can somone make a fedora 17 package for minetest 0.4.5? I hate to be a pain, but compiling minetest on fedora is trickier then compiling minetest on ubuntu.

pheonixfire
Member
Posts: 94
Joined: Sun Oct 21, 2012 06:25
In-game: pheonix
Location: Australia

by pheonixfire » Post

do you get a result like this when you use the cmake . -DRUN_IN_PLACE=1 command?

Code: Select all

-- *** Will build version 0.4.5 ***
-- IRRLICHT_SOURCE_DIR = 
-- IRRLICHT_INCLUDE_DIR = /usr/include/irrlicht
-- IRRLICHT_LIBRARY = /usr/lib64/libIrrlicht.so
-- CURL_INCLUDE_DIR = /usr/include/curl
-- CURL_LIBRARY = /usr/lib64/libcurl.so
-- cURL support enabled
-- GetText disabled
-- Sound enabled
-- Using project jthread library
-- Using project sqlite3 library
-- Using project json library
-- Configuring done
-- Generating done
-- Build files have been written to: /home/james/Games/minetest-0.4.5
pheonixfire

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

It is not building it at all, and i could not find the proper cmake file.

User avatar
ecube
Member
Posts: 33
Joined: Thu May 10, 2012 03:01
Location: I forgot....

by ecube » Post

Are you in the minetest directory?

Try this:

Code: Select all

git clone https://github.com/celeron55/minetest.git
cd minetest
cmake .
make
To run minetest, make sure you're in ~/minetest (or wherever you downloaded it in the first command) and type bin/minetest
Last edited by ecube on Sat Mar 23, 2013 02:53, edited 1 time in total.
This is a test

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

ecube wrote:Are you in the minetest directory?

Try this:

Code: Select all

git clone https://github.com/celeron55/minetest.git
cd minetest
cmake .
make
To run minetest, make sure you're in ~/minetest (or wherever you downloaded it in the first command) and type bin/minetest
I'll give it a try.

pheonixfire
Member
Posts: 94
Joined: Sun Oct 21, 2012 06:25
In-game: pheonix
Location: Australia

by pheonixfire » Post

How did you go compiling on fedora 17?

User avatar
doyousketch2
Member
Posts: 115
Joined: Tue Feb 05, 2013 16:06
GitHub: doyousketch2
In-game: Sketch2
Location: Ohio
Contact:

by doyousketch2 » Post

try the "one-line" script that Calinou conjured up for Debian,
http://forum.minetest.net/viewtopic.php?id=3837
but use YUM instead of apt-get.

Dunno if Fedora uses sudo, so use su instead,
then type in your admin password, if need be.

Code: Select all

su (password)

yum install git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libsm-dev libcurl4-openssl-dev; git clone git://github.com/minetest/minetest.git;cd minetest/games; git clone git://github.com/minetest/minetest_game.git; git clone git://github.com/minetest/common.git; cd ..; cmake . -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1; cd src; make -j2; cd ../bin; ./minetest; echo -e "\n\nYou can run Minetest again by double-clicking \"minetest\" in the \"bin\" folder of the \"minetest\" folder in your home folder.\nYou can install mods in ~/minetest/mods/minetest, too."
Last edited by doyousketch2 on Sat Mar 30, 2013 08:08, edited 1 time in total.

User avatar
doyousketch2
Member
Posts: 115
Joined: Tue Feb 05, 2013 16:06
GitHub: doyousketch2
In-game: Sketch2
Location: Ohio
Contact:

by doyousketch2 » Post

tho come to think of it, the folder will be owned by the admin, so you may want to "change group" and/or "change owner" so you can access it.

so you'd change it to whatever your (user) name is on your machine.

Code: Select all

cd ..
chgrp -R (user) minetest
chown -R (user) minetest

thus the whole "one-line" script would be:

Code: Select all

yum install git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libsm-dev libcurl4-openssl-dev; git clone git://github.com/minetest/minetest.git;cd minetest/games; git clone git://github.com/minetest/minetest_game.git; git clone git://github.com/minetest/common.git; cd ..; cmake . -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1; cd src; make -j2;cd ..;chgrp -R (user) minetest;chown -R (user) minetest; cd ../bin; ./minetest; echo -e "\n\nYou can run Minetest again by double-clicking \"minetest\" in the \"bin\" folder of the \"minetest\" folder in your home folder.\nYou can install mods in ~/minetest/mods/minetest, too."
Make sure to change the two spots in there called (user)
into the name you use to log into your computer.

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

pheonixfire wrote:How did you go compiling on fedora 17?
I got really fustrated with it so i just switched to ubuntu, but thankyou all for your help!
i think this could be useful for other people wanting to play minetest on fedora.

User avatar
Neon
Member
Posts: 126
Joined: Thu Aug 15, 2013 02:03
In-game: Neon

by Neon » Post

On Fedora 17, I successfully compiled the latest stable using the following command-line recipe. It is a variant to the above one-liner by doyousketch2.
Spoiler
# change username to root
su
(password)
# make sure you have the packages to compile with
yum install cmake irrlicht irrlicht-devel curl libcurl-devel bzip2-devel libpng-devel libogg-devel libvorbis-devel freetype-devel
# download the game
# this downloads v0.4.7dev (latest unstable as per this post)
wget github.com/minetest/minetest/archive/master.zip; # the game engine
unzip master.zip
cd minetest-stable-0.4/games/
wget github.com/minetest/minetest_game/archive/master.zip; # the minetest game
unzip master.zip; rm master.zip
cd ../
cmake . -DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_SOUND=0 -DCMAKE_INSTALL_PREFIX=/usr/local/share
make -j2
# go get some coffee
cd ../; mv minetest-stable-0.4 /usr/local/share/; # move the game data where the executable expects to find it
ln -s /usr/local/share/minetest-master/bin/minetest /usr/bin/minetest; # link the executable into the system-wide path
ln -s /usr/local/share/minetest-master/bin/minetestserver /usr/bin/minetestserver; # link the server executable into the system-wide path
Last edited by Neon on Sun Oct 27, 2013 22:35, edited 1 time in total.

leetelate
Member
Posts: 205
Joined: Thu Aug 29, 2013 18:07
Location: 한인 타운, Huntsville,Alabama,USA

by leetelate » Post

Neon wrote:On Fedora 17, I successfully compiled the latest stable using the following command-line recipe. It is a variant to the above one-liner by doyousketch2.
Spoiler
# change username to root
su
(password)
# make sure you have the packages to compile with
yum install cmake irrlicht irrlicht-devel curl libcurl-devel bzip2-devel libpng-devel libogg-devel libvorbis-devel freetype-devel
# download the game
# this downloads v0.4.7dev (latest unstable as per this post)
wget github.com/minetest/minetest/archive/master.zip; # the game engine
unzip master.zip
cd minetest-stable-0.4/games/
wget github.com/minetest/minetest_game/archive/master.zip; # the minetest game
unzip master.zip; rm master.zip
cd ../
cmake . -DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_SOUND=0 -DCMAKE_INSTALL_PREFIX=/usr/local/share
make -j2
# go get some coffee
cd ../; mv minetest-stable-0.4 /usr/local/share/; # move the game data where the executable expects to find it
ln -s /usr/local/share/minetest-master/bin/minetest /usr/bin/minetest; # link the executable into the system-wide path
ln -s /usr/local/share/minetest-master/bin/minetestserver /usr/bin/minetestserver; # link the server executable into the system-wide path
excellent! +1 - i have to compile the new git for the tablet, and it has to be in fedora - ubuntu keeps saying it supports tablets, but so far it is vaporware - if ubuntu does exist for armhfp i sure can't find it - i would be VERY glad if it did
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...

User avatar
Neon
Member
Posts: 126
Joined: Thu Aug 15, 2013 02:03
In-game: Neon

by Neon » Post

A variant on my above fedora install script, is this one for 0.4.8-stable. Note that it does not install/compile/enable sound (I believe OpenAL is required for sound)
Spoiler
# change username to root
su
(password)
# make sure you have the packages to compile with
yum install cmake irrlicht irrlicht-devel curl libcurl-devel bzip2-devel libpng libpng-devel libogg libogg-devel libvorbis libvorbis-devel freetype freetype-devel
# download v0.4.8 (latest stable as per this post)
wget https://github.com/minetest/minetest/archive/stable-0.4.zip; # the game engine
unzip stable-0.4.zip; rm stable-0.4.zip
cd minetest-stable-0.4/games/
wget https://github.com/minetest/minetest_game/archive/stable-0.4.zip; # the minetest game
unzip stable-0.4.zip; rm stable-0.4.zip
cd ../
cmake . -DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_SOUND=0 -DCMAKE_INSTALL_PREFIX=/usr/local/share
make -j2; # The -j2 arg is because I run dual-core
# go get some coffee
cd ../; mv minetest-stable-0.4 /usr/local/share/; # move the game data where the executable expects to find it
ln -s /usr/local/share/minetest-stable-0.4/bin/minetest /usr/bin/minetest; # link the executable into the system-wide path
ln -s /usr/local/share/minetest-stable-0.4/bin/minetestserver /usr/bin/minetestserver; # link the server executable into the system-wide path
After running the game the first time, you might want to (as the user who has run the game) do the following so you don't need root privileges to install mods and texture packs
Spoiler
mkdir ~/.minetest/mods
mkdir ~/.minetest/textures
ln -s /usr/local/share/minetest-stable-0.4/minetest.conf.example ~/.minetest/
Last edited by Neon on Mon Nov 25, 2013 11:14, edited 1 time in total.

User avatar
Neon
Member
Posts: 126
Joined: Thu Aug 15, 2013 02:03
In-game: Neon

0.4.10 Fedora Compile

by Neon » Post

Fedora install update for 0.4.10
Spoiler
# change username to root
su;
(password)
# make sure you have the packages to compile with
yum install cmake gcc-c++ luajit luajit-devel irrlicht irrlicht-devel curl libcurl-devel bzip2-devel libpng libpng-devel libogg libogg-devel libvorbis libvorbis-devel freetype freetype-devel openal openal-devel leveldb leveldb-devel;
# download v0.4.10 (latest stable as per this post)
wget https://github.com/minetest/minetest/archive/0.4.10.zip; # the game engine
unzip 0.4.10.zip; rm 0.4.10.zip;
cd minetest-stable-0.4.10/games/;
wget https://github.com/minetest/minetest_game/archive/master.zip; # the minetest game
unzip master.zip; rm master.zip;
cd ../;
cmake . -DRUN_IN_PLACE=0 -DENABLE_CURL=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=0 -DENABLE_SOUND=1 -DCMAKE_INSTALL_PREFIX=/usr/local/share
make -j2; # The -j2 arg is because I run dual-core
# go get some coffee. This will take some minutes
cd ../; mv minetest-0.4.10 /usr/local/share/; # move the game data where the executable expects to find it
ln -s /usr/local/share/minetest-0.4.10/bin/minetest /usr/bin/minetest; # link the executable into the system-wide path
ln -s /usr/local/share/minetest-0.4.10/bin/minetestserver /usr/bin/minetestserver; # link the server executable into the system-wide path
After running the game the first time, you might want to (as the user who has run the game) do the following so you don't need root privileges to install mods and texture packs
Spoiler
mkdir ~/.minetest/mods;
mkdir ~/.minetest/textures;
ln -s /usr/local/share/minetest-0.4.10/minetest.conf.example ~/.minetest/
Last edited by Neon on Sat Aug 02, 2014 22:37, edited 1 time in total.

User avatar
DeepGaze
Member
Posts: 332
Joined: Fri May 10, 2013 00:49
GitHub: DeepGaze
IRC: DeepGaze
In-game: DeepGaze
Location: Take your best guess

Re: Compiling Minetest On Fedora 17

by DeepGaze » Post

Finally tried this and could not get it to install, is it possible to make an rpm?
there's no place like 127.0.0.1
The deep life Minetest text page
minetest cards

User avatar
Neon
Member
Posts: 126
Joined: Thu Aug 15, 2013 02:03
In-game: Neon

Re: Compiling Minetest On Fedora 17

by Neon » Post

I could try. Fedora has 0.4.9 in it's updates repo, if you don't need 0.4.10
What is your error, anyways? Perhaps I can troubleshoot it before going through the rigaramole of doing the RPM.

User avatar
DeepGaze
Member
Posts: 332
Joined: Fri May 10, 2013 00:49
GitHub: DeepGaze
IRC: DeepGaze
In-game: DeepGaze
Location: Take your best guess

Re: Compiling Minetest On Fedora 17

by DeepGaze » Post

I currently run 0.4.9 but when entering the commands it ceases after "Su", I did some research and found you can run a script like the one above as a text file. setting as root then running the file gave this error:
Spoiler
[James@localhost ~]$ su
Password:
[root@localhost James]# /home/James/Desktop/Fire
--2014-08-02 22:59:12-- https://github.com/minetest/minetest/ar
Resolving github.com (github.com)... 192.30.252.129
Connecting to github.com (github.com)|192.30.252.129|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-08-02 22:59:13 ERROR 404: Not Found.

--2014-08-02 22:59:13-- http://.../
Resolving ... (...)... failed: Name or service not known.
wget: unable to resolve host address ‘...’
--2014-08-02 22:59:13-- http://.4.10.zip/
Resolving .4.10.zip (.4.10.zip)... failed: Name or service not known.
wget: unable to resolve host address ‘.4.10.zip’
unzip: cannot find or open 0.4.10.zip, 0.4.10.zip.zip or 0.4.10.zip.ZIP.
rm: cannot remove ‘0.4.10.zip’: No such file or directory
/home/James/Desktop/Fire: line 7: cd: minetest-stable-0.4.10/games/: No such file or directory
--2014-08-02 22:59:13-- https://github.com/minetest/minetest_ga
Resolving github.com (github.com)... 192.30.252.129
Connecting to github.com (github.com)|192.30.252.129|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-08-02 22:59:14 ERROR 404: Not Found.

--2014-08-02 22:59:14-- http://.../
Resolving ... (...)... failed: Name or service not known.
wget: unable to resolve host address ‘...’
--2014-08-02 22:59:14-- http://aster.zip/
Resolving aster.zip (aster.zip)... 92.242.132.15
Connecting to aster.zip (aster.zip)|92.242.132.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

[ <=> ] 986 --.-K/s in 0s

2014-08-02 22:59:15 (48.7 MB/s) - ‘index.html’ saved [986]

FINISHED --2014-08-02 22:59:15--
Total wall clock time: 1.7s
Downloaded: 1 files, 986 in 0s (48.7 MB/s)
unzip: cannot find or open master.zip, master.zip.zip or master.zip.ZIP.
rm: cannot remove ‘master.zip’: No such file or directory
CMake Error: The source directory "/home" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
mv: cannot stat ‘minetest-0.4.10’: No such file or directory
ln: failed to create symbolic link ‘/usr/bin/minetest’: File exists
ln: failed to create symbolic link ‘/usr/bin/minetestserver’: File exists
[root@localhost James]#
any ideas?
there's no place like 127.0.0.1
The deep life Minetest text page
minetest cards

User avatar
Neon
Member
Posts: 126
Joined: Thu Aug 15, 2013 02:03
In-game: Neon

Re: Compiling Minetest On Fedora 17

by Neon » Post

Yeah. It looks like the cut-and-paste from the forums is preserving the truncation that the forums is doing on the URL. So instead of getting "https://github.com/minetest/minetest/archive/0.4.10.zip;", you are getting "https://github.com/minetest/minetest/ar ... .4.10.zip;".

EDIT: I fixed the latest, so as to disable that bit of helpfullness from the forum. You should be able to cut&paste again and get things to work.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests