Re: Testing for Qt6
Posted by
Gilles Caulier-4 on
May 27, 2021; 8:41am
URL: http://digikam.185.s1.nabble.com/Testing-for-Qt6-tp4716755p4716858.html
Hi,
I saw that you try to use QtWebEngine from Qt6. I'm not sure if Qt6.1 includes the WebEngine framework yet.
Best
Gilles Caulier
Hello,
I tried to build tests with Qt6. I applied a patch that is attached in this email. That didn't go as expected.
CMake throws this error for all tests
CMake Error: The INTERFACE_QT_MAJOR_VERSION property of "Qt6::Test" does
not agree with the value of QT_MAJOR_VERSION already determined
for "libmodeltest".
I see QT_MIN_VERSION to be set to Qt5, is that the source of the problem? How to proceed?
Hi,
Yes, first I recommend building code, and later writing unit tests to check fonctionnalites.
Typically, the best way is to build digiKam step by step. I recommend disabling the advanced section of the application, typically to build core/libs first. Almost all unit tests from core/tests check the libs classes.
core/libs is used to compile the shared libdigikam.so used by unt tests. So compiling this object will allow to compile and link the uni-tests (that you can disabled temporary while porting codes.
Best
![Sent from Mailspring]()