Page 1 of 2

Compiling Minetest On Fedora 17

PostPosted: Thu Mar 21, 2013 22:06
by Josh
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

PostPosted: Thu Mar 21, 2013 22:14
by 0gb.us
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/blob/master/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.

PostPosted: Thu Mar 21, 2013 22:38
by Josh
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/blob/master/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)

PostPosted: Thu Mar 21, 2013 22:46
by PilzAdam
Do you have a c++ compiler installed?

PostPosted: Thu Mar 21, 2013 22:56
by Josh
PilzAdam wrote:Do you have a c++ compiler installed?

What is its name be in Add/Remove software?

PostPosted: Thu Mar 21, 2013 22:58
by PilzAdam
Josh wrote:
PilzAdam wrote:Do you have a c++ compiler installed?

What is its name be in Add/Remove software?

c++

PostPosted: Fri Mar 22, 2013 00:29
by pheonixfire
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:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

PostPosted: Fri Mar 22, 2013 01:44
by Josh
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:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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!

PostPosted: Fri Mar 22, 2013 02:02
by Josh
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.

PostPosted: Fri Mar 22, 2013 06:30
by pheonixfire
do you get a result like this when you use the cmake . -DRUN_IN_PLACE=1 command?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

PostPosted: Sat Mar 23, 2013 02:18
by Josh
It is not building it at all, and i could not find the proper cmake file.

PostPosted: Sat Mar 23, 2013 02:49
by ecube
Are you in the minetest directory?

Try this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

PostPosted: Sat Mar 23, 2013 03:14
by Josh
ecube wrote:Are you in the minetest directory?

Try this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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.

PostPosted: Thu Mar 28, 2013 00:11
by pheonixfire
How did you go compiling on fedora 17?

PostPosted: Sat Mar 30, 2013 08:05
by doyousketch2
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.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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."

PostPosted: Sat Mar 30, 2013 08:18
by doyousketch2
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.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cd ..
chgrp -R (user) minetest
chown -R (user) minetest



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


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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.

PostPosted: Sun Mar 31, 2013 02:04
by Josh
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.

PostPosted: Thu Aug 15, 2013 03:33
by Neon
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
[/spoiler]

PostPosted: Mon Nov 04, 2013 16:39
by leetelate
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
[/spoiler]


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

PostPosted: Mon Nov 25, 2013 10:44
by Neon
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

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

0.4.10 Fedora Compile

PostPosted: Fri Jul 11, 2014 20:53
by Neon
Fedora install update for 0.4.10

+ Spoiler

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

Re: Compiling Minetest On Fedora 17

PostPosted: Sat Aug 02, 2014 17:53
by DeepGaze
Finally tried this and could not get it to install, is it possible to make an rpm?

Re: Compiling Minetest On Fedora 17

PostPosted: Sat Aug 02, 2014 20:40
by Neon
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.

Re: Compiling Minetest On Fedora 17

PostPosted: Sat Aug 02, 2014 22:02
by DeepGaze
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:
+ script(username is James)

any ideas?

Re: Compiling Minetest On Fedora 17

PostPosted: Sat Aug 02, 2014 22:36
by Neon
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.

Re: Compiling Minetest On Fedora 17

PostPosted: Sun Aug 03, 2014 12:19
by DeepGaze
+ script(username is James)

Re: Compiling Minetest On Fedora 17

PostPosted: Tue Aug 05, 2014 20:42
by Neon
I put together an RPM package for 0.4.10, hosted on my website. It's packaged for i686, but works on my x86_64 system. This isn't as professionally put together as if it came from Fedora itself, but it is a workable first-cut.

http://mattnet.org/rpms/

Re: 0.4.10 Fedora Compile

PostPosted: Tue Jul 21, 2015 21:20
by Neon
Fedora install update for whatever the latest happens to be (0.4.12 at posting). Note that this installs the dev version, not the stable version. Also note that these instruction work on most Fedora versions, not just F17 (e.g. I'm doing this from Fedora 20 ATM, but it should work for F17 through to the latest)

+ Spoiler

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

Re: Compiling Minetest On Fedora 17

PostPosted: Tue Jul 21, 2015 21:39
by Calinou
Use make -j$(grep -c "processor" /proc/cpuinfo) for automatic CPU thread detection.

Re: Compiling Minetest On Fedora 17

PostPosted: Tue Jul 21, 2015 21:41
by Neon
Thanks