Page 1 of 1

Ksokoban is Back-Mageia 3/4 & KDE4

PostPosted: May 23rd, '13, 04:39
by yankee495
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...

Re: Ksokoban is Back-Mageia 3 & KDE4

PostPosted: Feb 4th, '14, 05:48
by yankee495
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

Re: Ksokoban is Back-Mageia 3 & KDE4

PostPosted: Feb 4th, '14, 11:24
by doktor5000
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" \

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

PostPosted: Feb 4th, '14, 16:02
by yankee495
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.