Bug 477390

Summary: Doesn't build
Product: [Applications] audiotube Reporter: Antonio Rojas <arojas>
Component: generalAssignee: Jonah Brüchert <jbb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 24.01.75   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Antonio Rojas 2023-11-22 21:56:35 UTC
Version 24.01.75 doesn't build, using qcoro 0.9.0

/build/audiotube/src/audiotube-24.01.75/src/library.cpp: In member function ‘void WasPlayedWatcher::query()’:
/build/audiotube/src/audiotube-24.01.75/src/library.cpp:420:19: error: no matching function for call to ‘connect(QFuture<std::optional<SingleValue<bool> > >, WasPlayedWatcher*, void (WasPlayedWatcher::*)(std::optional<SingleValue<bool> >))’
  420 |     QCoro::connect(m_library->database().getResult<SingleValue<bool>>("select count(*) > 0 from played_songs where video_id = ?", m_videoId), this, &WasPlayedWatcher::update);
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Additionally, this seems to be in a weird semi-ported to Qt6 state: The top-level CMakeLists requires KF6, but it still claims to support both Qt5 and Qt6, so you need to explicitly specify QT_VERSION_MAJOR=6 to make it build.
Comment 1 Antonio Rojas 2023-12-05 22:28:17 UTC
Fixed with qcoro 0.10