<div>Okay, I think the problem here is using both Qt5 and Qt6 simultaneously. I  did some tests on dummy projects and the results are same.</div><div><a href="https://link.getmailspring.com/link/E8D142C5-C082-42FC-9CB1-319683AC48BD@getmailspring.com/0?redirect=https%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Flatest%2Fprop_tgt%2FAUTOMOC.html%23qt-version-detection&recipient=ZGlnaWthbS1kZXZlbEBrZGUub3Jn" title="https://cmake.org/cmake/help/latest/prop_tgt/AUTOMOC.html#qt-version-detection">https://cmake.org/cmake/help/latest/prop_tgt/AUTOMOC.html#qt-version-detection</a><br>You suggested to first port code and then build tests. That seems to be the only solution for testing. </div><br><div>On another note, I think I need to prepare a new list of Qt5 deprecated warnings as I noticed there are a lot of them which are new. I'll make a plan on which modules to work first and send it to you.</div><br><div>Thanks,</div><div>Anjani</div><br><div class="gmail_quote_attribution">On May 27 2021, at 2:11 pm, Gilles Caulier <caulier.gilles@gmail.com> wrote:</div><blockquote><div><div>Hi,</div><div><br></div><div>I saw that you try to use QtWebEngine from Qt6. I'm not sure if Qt6.1 includes the WebEngine framework yet.</div><div><br></div><div>Best</div><div><br></div><div><div>Gilles Caulier</div></div></div><br><img class="mailspring-open" alt="Sent from Mailspring" width="0" height="0" style="border:0; width:0; height:0;" src="https://link.getmailspring.com/open/E8D142C5-C082-42FC-9CB1-319683AC48BD@getmailspring.com?me=6552469b&recipient=ZGlnaWthbS1kZXZlbEBrZGUub3Jn"><div class="gmail_quote"><div class="gmail_attr"><div>Le jeu. 27 mai 2021 à 04:28, Anjani Kumar <<a href="mailto:anjanik012@gmail.com" title="mailto:anjanik012@gmail.com">anjanik012@gmail.com</a>> a écrit :</div></div><blockquote><div>Hello,</div><br><div>I tried to build tests with Qt6. I applied a patch that is attached in this email. That didn't go as expected.</div><br><div>CMake throws this error for all tests</div><br><div>CMake Error: The INTERFACE_QT_MAJOR_VERSION property of "Qt6::Test" does</div><div>not agree with the value of QT_MAJOR_VERSION already determined</div><div>for "libmodeltest".</div><br><div>I see QT_MIN_VERSION to be set to Qt5, is that the source of the problem? How to proceed?</div><br><div>On May 22 2021, at 4:41 pm, Gilles Caulier <<a href="mailto:caulier.gilles@gmail.com" title="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>> wrote:</div><blockquote><div><div>Hi,</div><div><br></div><div>Yes, first I recommend building code, and later writing unit tests to check fonctionnalites.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Best</div><div><br></div><div><div>Gilles Caulier</div></div></div><br><div><div><img alt="Sent from Mailspring" style="border: 0px none; width: 0px; height: 0px;" width="0" height="0"></div></div><div class="gmail_quote"><div class="gmail_attr"><div>Le sam. 22 mai 2021 à 11:10, Anjani Kumar <<a href="mailto:anjanik012@gmail.com" title="mailto:anjanik012@gmail.com">anjanik012@gmail.com</a>> a écrit :</div></div><blockquote><div>Hello,</div><div>For my GSoC project, I'm trying to prepare a testing strategy for every class I port. Before I start the work, should I build all the tests with Qt6? I was following the guidelines from here <a href="https://link.getmailspring.com/link/0D8E1B85-44DC-4C00-9A62-A79CC512289A@getmailspring.com/0?redirect=https%3A%2F%2Fdoc-snapshots.qt.io%2Fqt6-dev%2Fqttest-best-practices-qdoc.html&recipient=ZGlnaWthbS1kZXZlbEBrZGUub3Jn" title="https://link.getmailspring.com/link/0D8E1B85-44DC-4C00-9A62-A79CC512289A@getmailspring.com/0?redirect=https%3A%2F%2Fdoc-snapshots.qt.io%2Fqt6-dev%2Fqttest-best-practices-qdoc.html&recipient=ZGlnaWthbS1kZXZlbEBrZGUub3Jn">https://doc-snapshots.qt.io/qt6-dev/qttest-best-practices-qdoc.html</a></div><br><div>Thanks</div><div>Anjani</div><div><div><div><img alt="Sent from Mailspring" style="border: 0px none; width: 0px; height: 0px;" width="0" height="0"></div></div></div></blockquote></div></blockquote></blockquote></div></blockquote>