Ksokoban is Back-Mageia 3/4 & KDE4

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

Ksokoban is Back-Mageia 3/4 & KDE4

Postby yankee495 » May 23rd, '13, 04:39

Back when I was learning about Linux I used to take a break with a couple levels of Ksokoban. My friends would see it and say move over, that is easy and I had to drag them away from the computer before they punched it!

I guess there are quite a few people trying to compile it and even a Windows port. Try as I might I couldn't compile it but I found it.

Download it here:

Hit Download Snapshot.
http://sourceforge.net/u/shlomif/ksokoban/ci/default/tree/

Unpack it in a folder called /home/your-user-name/ksokoban.

Then open a console as root in the ksokoban folder.

Do:

Code: Select all
mkdir build
cd build
cmake ..
make


If it completes you will have the ksokoban executable in /home/your-user-name/ksokoban/build/

Just double click that to play it!

Mine completed the first time but I had installed every development package I could find trying to build the old source. I hope it works for you and you find someone that wants to play it. My wife is not impressed but she has not tried it. When she catches me stumped, she'll say move over...
Last edited by yankee495 on Feb 4th, '14, 05:49, edited 1 time in total.
There are 10 types of people, those who understand binary & those who don't.
Main Desktop
http://www.overclock.net/lists/display/view/id/3960066
yankee495
 
Posts: 433
Joined: May 25th, '12, 13:10
Location: Carthage, Mo. USA

Re: Ksokoban is Back-Mageia 3 & KDE4

Postby yankee495 » Feb 4th, '14, 05:48

I tried compiling Ksokoban on Mageia 4 and it failed. I hadn't installed kdebase4-devel, talk about a duh moment.

Anyway, I did a quick search for my error and found another guy who had problems on another distro that used my instructions in this thread but had a problem on another computer. So in case his information is of any use to you here is how he got it going, good luck.

http://julien.scordia.free.fr/?p=80
There are 10 types of people, those who understand binary & those who don't.
Main Desktop
http://www.overclock.net/lists/display/view/id/3960066
yankee495
 
Posts: 433
Joined: May 25th, '12, 13:10
Location: Carthage, Mo. USA

Re: Ksokoban is Back-Mageia 3 & KDE4

Postby doktor5000 » Feb 4th, '14, 11:24

yankee495 wrote:I tried compiling Ksokoban on Mageia 4 and it failed. I hadn't installed kdebase4-devel, talk about a duh moment.

As you have the src.rpm and if the buildrequires are listed in there, you can use urpmi --buildrequires ksokoban.spec (or also on the src.rpm, doesn't matter) and it will install all required packages, and rpmbuild won't let you begin building until all BuildRequires are met. So probably they are not listed as BuildRequires?
You may also want to take a look at our KDE packaging policy: https://wiki.mageia.org/en/KDE4_packagi ... pplication
:p

yankee495 wrote:Anyway, I did a quick search for my error and found another guy who had problems on another distro that used my instructions in this thread but had a problem on another computer. So in case his information is of any use to you here is how he got it going, good luck.

http://julien.scordia.free.fr/?p=80

If it uses QT5 and requires qmake for QT5, then there's a macro for that:

[doktor5000@Mageia3 ~]$ rpm --showrc | grep make | grep q
-14: cmake_qt4
-14: cmake_qt5
-14: qmake_qt4
%{_qt4_bindir}/qmake \
-14: qmake_qt5
%{_qt5_bindir}/qmake \
-14: qmakeinstall_std


[doktor5000@Mageia4 ~]$ rpm -E %qmake_qt5

/usr/lib64/qt5/bin/qmake \
%if "lib64" != "lib"
libsuff=64 \
%endif
QMAKE_CFLAGS="${CFLAGS:--O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC}" \
QMAKE_CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC}" \
QMAKE_LFLAGS=" -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags" \
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Ksokoban is Back-Mageia 3/4 & KDE4

Postby yankee495 » Feb 4th, '14, 16:02

Thanks Dok, I got it going but info is always good. I really need to buy some books. I hate reading on the computer. Back in the 80's I was a lot smarter...it is just so nice to kick back and learn something.
There are 10 types of people, those who understand binary & those who don't.
Main Desktop
http://www.overclock.net/lists/display/view/id/3960066
yankee495
 
Posts: 433
Joined: May 25th, '12, 13:10
Location: Carthage, Mo. USA


Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 1 guest

cron