×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Building KStars on ubuntu 16.04

  • Posts: 26
  • Thank you received: 1
Hi,
I am unable to build Kstars on Ubuntu 16.04.

error: ‘QOverload’ was not declared in this scope

I suspect that is due to QT version 5.5 which I am not able upgrade on my system.
I have tried to work around this problem by changing QOverload with static_cast but I wonder how many lines of code I need to change.
When was QOverload’ used first time? I was able to compile Kstars in January 2020.
Where can I find last version without QOverload?
3 years 6 months ago #61457

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

  • Posts: 2255
  • Thank you received: 223
There is a mention of QOverload in the ChangeLog file

github.com/KDE/kstars/blob/548752fd6f098...a043fd9250/ChangeLog
dfd0a7267 2018-10-22 Jasem Mutlaq         QOverload not supported in Qt 5.6 which we use for 16.04

There is also this:
53b0ab05b 2020-03-18 Eric Dejouhanet      Attempt to fix Ubuntu 16.04 build, that is using Qt 5.5.
The following user(s) said Thank You: Tomasz Pszon
Last edit: 3 years 6 months ago by Gonzothegreat.
3 years 6 months ago #61458

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

It's not only that, but many other changes and we require Qt 5.9+ and C++14, so only 18.04+ is now supported.
3 years 6 months ago #61468

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

  • Posts: 26
  • Thank you received: 1
I managed to compile indi an Kstars 3.5 on my system very old ubuntu 16.04 ;)..
I needed only to change 3 source files in kstars/ekos/align/align.cpp, optionsprofileeditor.cpp, and kstars/ekos/ focus/focus.cpp (around 10 lines of code) by substituting QOverload with static_cast. (for those who need to do this: change "QOverload<YYY &>::of(&XXX" "static_cast<void (XXX::*)(YYY)>(&XXX" whery YYY is type and XXX name.
Last edit: 3 years 6 months ago by Tomasz Pszon.
3 years 6 months ago #61544

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

Time to create page: 0.725 seconds