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
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.
Josh wrote:PilzAdam wrote:Do you have a c++ compiler installed?
What is its name be in Add/Remove software?
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)
yum install libcurl* openal* libvorbis*
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
-- *** 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
git clone https://github.com/celeron55/minetest.git
cd minetest
cmake .
make
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
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."
cd ..
chgrp -R (user) minetest
chown -R (user) minetest
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."
pheonixfire wrote:How did you go compiling on fedora 17?
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]
Users browsing this forum: No registered users and 30 guests