<div dir="ltr"><div><div><div><div>I emailed this to the Stellarium maintainer, Alan Alberghini, without any reply back, so I am posting it here on the mailing list so the Slackware community can benefit from my experiences with building and installing Stellarium with qt-5.5 installed as found in the Slack Builds 14.1 repository.<br></div><div><br>Hi there. I tried to install Stellarium 0.13.2 via your Slack 
Build script only to find out it won't compile against qt-5.5. This is 
the only version of qt on Slack builds for Slackware 14.1. Stellarium's 
website shows that Stellarium 0.13.2 needs qt-5.2 to build. I haven't 
tried it, but I presume that the qt-5.5 SlackBuild script would compile 
the 5.2 version of qt just fine. However that takes 12 hours to build on
 my duo core machine. Since I already had qt-5.5 built, I modified your 
SlackBuild script to build Stellarium 0.13.3 and included a patch from 
the Gentoo website so it would build against qt-5.5. The patch will not 
work with Stellarium 0.13.2 however. After I got it built and installed,
 I ended up finding out that Stellarium 0.13.3 requires Mesa 10.x 
libraries to function at a decent speed. After consulting Stellarium's 
website, I found out that all versions of Stellarium after 0.12.4 
require Mesa 10.x libs to be installed including Stellarium 0.12.6. The 
Stellarium project recommends upgrading to one of the Mesa 10.x libs to 
run any version of Stellarium after 0.12.4 or to use 0.12.4 for the Mesa
 9.x libs.  As a result I have used your original SlackBuild script to 
build and install Stellarium 0.12.4 and it works just fine.  You'll 
probably want to update your Stellarium Slackbuild entry to use 
Stellarium 0.13.3 for those who have one of the Mesa 10.x libs installed
 and add another entry for Stellarium 0.12.4 for those who have Mesa 9.x
 libs installed. Attached are two diff patches. One to patch your 
SlackBuild script to patch and build Stellarium 0.13.3 and the other 
patch is the Gentoo patch that will allow for building against qt-5.5. 
The changes to your SlackBuild script will only apply Gentoo's qt-5.5 
patch only if $QT55 is set to 'YES'. I have it set to 'NO' by default 
just in case someone has an earlier version of qt5 installed.<br><br></div>Regards,<br><br></div>Eric Underhill<br><br></div>The two diff files are below:<br><br></div>stellarium.SlackBuild.diff<br><br><pre class="aLF-aPX-K0-aPE aLF-aPX-aLK-ayr-auR"><span style="font-family:arial,helvetica,sans-serif">--- stellarium.SlackBuild    2015-09-24 12:39:19.000000000 -0700
+++ stellarium-qt55.SlackBuild  2015-09-24 12:44:12.539867926 -0700
@@ -26,6 +26,9 @@
 VERSION=${VERSION:-0.13.3}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
+# Change to 'YES' if building against qt55 otherwise Stellarium will fail to 
+# build.
+QT55=${QT55:-NO}
 
 if [ -z "$ARCH" ]; then
   case "$( uname -m )" in
@@ -68,6 +71,12 @@
   -o -perm 511 \) -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+  
+#If building against qt55 apply patch to fix building against qt55
+if [ "$QT55" = "YES" ]; then
+  cp $CWD/$PRGNAM-$VERSION.qt55.patch $TMP/$PRGNAM-$VERSION
+  patch p1 < $PRGNAM-$VERSION.qt55.patch
+fi
 
 mkdir build && cd build
   cmake -DCMAKE_INSTALL_PREFIX=/usr \</span><br><br><br><br></pre>stellarium-0.13.3-qt55.patch<br><br><span style="font-family:arial,helvetica,sans-serif">diff -ur -x CMakeFiles -x Makefile -x 'CMake*' stellarium-0.13.2/work/stellarium-0.13.3/src/CLIProcessor.hpp stellarium-0.13.3-new/work/stellarium-0.13.3/src/CLIProcessor.hpp<br>--- src/CLIProcessor.hpp       2015-03-08 12:41:55.000000000 +0100<br>+++ src/CLIProcessor.hpp   2015-07-12 13:29:36.059179087 +0200<br>@@ -21,6 +21,7 @@<br> #define CLIPROCESSOR_HPP<br> <br> #include <QStringList><br>+#include <QVariant><br> <br> class QSettings;<br> <br>diff -ur -x CMakeFiles -x Makefile -x 'CMake*' stellarium-0.13.2/work/stellarium-0.13.3/src/core/StelSkyCultureMgr.hpp stellarium-0.13.3-new/work/stellarium-0.13.3/src/core/StelSkyCultureMgr.hpp<br>--- src/core/StelSkyCultureMgr.hpp     2015-03-08 12:41:55.000000000 +0100<br>+++ src/core/StelSkyCultureMgr.hpp 2015-07-12 13:28:32.589064791 +0200<br>@@ -23,6 +23,7 @@<br> #include <QMap><br> #include <QString><br> #include <QStringList><br>+#include <QObject><br> <br> //! @class StelSkyCulture<br> //! Store basic info about a sky culture for stellarium.<br><br>diff -ur -x CMakeFiles -x Makefile -x 'CMake*' stellarium-0.13.2/work/stellarium-0.13.3/src/CLIProcessor.hpp stellarium-0.13.3-new/work/stellarium-0.13.3/src/CLIProcessor.hpp<br>--- src/core/StelLocationMgr.cpp    2015-02-25 12:30:31 +0000<br>+++ src/core/StelLocationMgr.cpp    2015-03-03 14:34:38 +0000</span><br></div>