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" \