[KPhotoAlbum] Building KPA fails ...

Robert Krawitz rlk at alum.mit.edu
Sat Oct 10 21:53:35 BST 2020


On 10/10/20 4:40 PM, Andreas Schleth wrote:
> Hi,
> 
> as I had my system messed up (it never was a good idea to mix two
> different distributions) I had to rebuild KPA and for the first time in
> ages, the build fails:
> 
> home/usr/src/kphotoalbum-git/kphotoalbum/XMLDB/XMLImageDateCollection.cpp:
> In member function ‘void XMLDB::XMLImageDateCollection::buildIndex()’:
> /home/usr/src/kphotoalbum-git/kphotoalbum/XMLDB/XMLImageDateCollection.cpp:35:83:
> error: no matching function for call to
> ‘Utilities::FastDateTime::FastDateTime(QDate)’
>      Utilities::FastDateTime biggestEnd =
> Utilities::FastDateTime(QDate(1900, 1, 1));
> ^
> In file included from
> /home/usr/src/kphotoalbum-git/kphotoalbum/DB/ImageDate.h:21:0,
>                  from
> /home/usr/src/kphotoalbum-git/kphotoalbum/DB/ImageDateCollection.h:21,
>                  from
> /home/usr/src/kphotoalbum-git/kphotoalbum/XMLDB/XMLImageDateCollection.h:21,
>                  from
> /home/usr/src/kphotoalbum-git/kphotoalbum/XMLDB/XMLImageDateCollection.cpp:19:
> /home/usr/src/kphotoalbum-git/kphotoalbum/Utilities/FastDateTime.h:48:5:
> note: candidate: Utilities::FastDateTime::FastDateTime(const QDateTime&)
>      FastDateTime(const QDateTime &other);
>      ^~~~~~~~~~~~
> 
> ... and so on. All messages relate to FastDateTime ...
> 
> I am working with opensuse Leap 15.2 (again :-)
> 
> KDE Frameworks 5.71.0 and Qt 5.12.7

When I wrote this code, I neglected to provide a constructor needed for Qt <5.14.  I've just pushed
a fix.  Sorry about that.



More information about the Kphotoalbum mailing list