Fedora24 wrote:i'm not an expert and dont know how all the cmake flags work. I want to, with source code, install minetest 0.4.14 the same way dnf does it so i can get it running.
Hi Fedora24
Ironically the move to dnf from yum --- with yum's scriptable URL-list-generating yumdownloader which fitted my data-capped situation --- was one of the reasons (but just one of many) why I moved away into the Debian/Ubuntu/Mint camp after a decade with Red Hat.
When they obsoleted Fedora 19 and the then 21-KDE was a PITA buggy mess with the aging nVidia laptop it was time to say ''Enough!'' I'm weary of ''doing computers'' and want to return to ''doing
real things
using computers.'' Bleeding edge can get tedious and waste a lot of time. I now realise stable and reliable is far more desirable. And not all change is progress.
But with sudden massive changes of direction and content, leaving long-time users high and dry, prioritising corporate agendas over community, Red Hat increasingly started to remind me of Apple. No thanks, not again.
< end of rant >
Aaanywayyy...
I'm used to the standard old '' ./configure ; make ; sudo make install '' procedure for most stuff from source, on both MacOS X and Linux.
Like yourself, I too am not an expert on this. But after much reading and following instructions in the course of troubleshooting Minetest issues, and after having installed a slew of dependencies for the build process, the cmake part of my bash one-liner is :
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
cmake . \
-DRUN_IN_PLACE=TRUE \
-DBUILD_SERVER=1 \
-DBUILD_CLIENT=1 \
-DENABLE_LUAJIT=1 \
-DENABLE_GETTEXT=1 \
-DENABLE_FREETYPE=1
(noting that there's a dot, a period, after cmake) ... followed by the...
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
(the -j 2 because it's being compiled on a dual-core cpu)
Then I've launched Minetest directly from there, from the binary created in the source folder, as per ''RUN_IN_PLACE=TRUE''
My full one-liner on this Ubuntu-based system is :
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
echo;history -a;sleep 3 ; DATENOW=$(date +%Y%m%d) ; MINETEST_USER="$USER" ; su -c " DATENOW=$(date +%Y%m%d) ; mkdir -pvm777 /usr/local/src/minetest/daily/${DATENOW} ; chown -v $MINETEST_USER:$MINETEST_USER /usr/local/src/minetest{,/daily{,/$DATENOW}} " ; cd /usr/local/src/minetest/daily/${DATENOW} ; wget -c https://github.com/minetest/minetest/archive/master.tar.gz ; rm -fr ./minetest-master ; tar xf master.tar.gz ; cd minetest-master/games/ ; wget -c https://github.com/minetest/minetest_game/archive/master.tar.gz ; tar xf master.tar.gz ; mv -v minetest_game-master minetest_game ; cd .. ; sleep 3 ; cmake . -DRUN_IN_PLACE=TRUE -DBUILD_SERVER=1 -DBUILD_CLIENT=1 -DENABLE_LUAJIT=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 ; make -j 2 ; sleep 3 ; cp -T -av /home/"$USER"/.minetest/mods/villages-for-minetest-modpack ./mods/villages-for-minetest-modpack ; mkdir -pvm777 ./SCREENSHOTS ; sleep 3 ; cd /usr/local/src/minetest/daily/${DATENOW}/minetest-master ; ./bin/minetest &
Please note that the listed cmake flags build a minetestserver as well as the regular minetest.
I wonder whether two modifications might give you a system-wide install like you'd get from dnf :
1) Instead of TRUE using the cmake flag :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
2) follow the ''make'' with a regular old ''make install'' :
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
make -j 2 ; su -c ' make install '
Unfortunately I'm not in any position to test and experiment with this idea, because I'm on an Ubuntu-based system not Fedora, and because the gui-based system-wide minetestdevs-ppa-installed Minetest works nicely and I don't dare upset anything because I do not have unlimited data to do reinstalls if it goes wrong ... and for that same reason I cannot do any Virtual-Machine tests for you with Fedora-24 because I won't have access to the multi-gigabyte current distro ISOs any time soon. Sorry.
Obviously, you should not attempt anything experimental if you're not willing to risk creating problems you can't undo.
I'm just suggesting that maybe, just maybe, tagging the ''install'' stage on the end might give you a system-wide install comparable with dnf.
I have absolutely no idea whether there are
extra steps added by the package-managers to give ''.desktop''
application-launcher files so that Minetest is accessible through your Desktop Environment GUI menus, but I suspect there probably would be such extra steps ... maybe that's really what you're asking about. If so, depending on your DE if you use one, maybe you could find and look inside the ''.desktop'' launcher files for other applications and use them as a template to manually create something similar for Minetest.
Maybe if you're up to it you could investigate what's inside Fedora's packages to see what it installs where --- there's probably even a dnf command to directly list such info.
As I say, I'm no expert ---
these are just untested suggestions, 'coz I know how awful it is when a forum-post gets no response at all.
Open-Source is absolutely the best way, but it's a fragile flower, highly subject to the chance convergence of
proximity plus
expertise plus
motivation.
I hope those who are expert will chip in and confirm how you can do this.
All the best ;-P
.