×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

QT error when building kstars from source

  • Posts: 50
  • Thank you received: 11
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
7 years 5 months ago #10473

Please Log in or Create an account to join the conversation.

I can confirm this, will fix it soon.
The following user(s) said Thank You: Ollie, Teseo
7 years 5 months ago #10475

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 1
Ok, this error is now fixed (this attribute is used now only in KStars Lite, which requires Qt 5.7). Please, pull the changes and try to compile now.
The following user(s) said Thank You: Ollie
7 years 5 months ago #10476

Please Log in or Create an account to join the conversation.

  • Posts: 50
  • Thank you received: 11
Pulled latest and it compiled with many warnings but no errors. Everything appears to be working fine now. Thank you!!!
7 years 5 months ago #10480

Please Log in or Create an account to join the conversation.

Time to create page: 0.413 seconds