While waiting for the PPA to come back online, I decided to try to building kstars from source and soon ran into problems.
I have been using this guide:
techbase.kde.org/Projects/Edu/KStars/Building_KStars_KF5
System is an i3 Ubuntu-based PC, 16.04 LTS.
Everything went well until I got towards the end of
make:
...
Scanning dependencies of target kstars
[ 96%] Building CXX object kstars/CMakeFiles/kstars.dir/main.cpp.o
/home/ollie/kde/kstars/kstars/main.cpp: In function ‘int main(int, char**)’:
/home/ollie/kde/kstars/kstars/main.cpp:60:32: error: ‘AA_EnableHighDpiScaling’ is not a member of ‘Qt’
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
^
kstars/CMakeFiles/kstars.dir/build.make:102: recipe for target 'kstars/CMakeFiles/kstars.dir/main.cpp.o' failed
make[2]: *** [kstars/CMakeFiles/kstars.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:190: recipe for target 'kstars/CMakeFiles/kstars.dir/all' failed
make[1]: *** [kstars/CMakeFiles/kstars.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
It looks like I may not have the correct version of Qt (Qt library > 5.2.0 is required) but cmake found it. Here's a snippet from the cmake output:
-- The following REQUIRED packages have been found:
* ECM (required version >= 1.7.0)
* Qt5Core (required version >= 5.5.1)
* Qt5Gui
* Qt5Qml
* Qt5Quick
* Qt5Xml
* Qt5Sql
* Qt5Widgets (required version >= 5.5.1)
* Qt5Svg
* Qt5Network
* Qt5PrintSupport
* Qt5 (required version >= 5.4)
Any suggestions on how to fix this?
Thank you,
Ollie