[Development] qmake: qmltest missing in Qt6

Alexandru Croitor alexandru.croitor at qt.io
Wed Aug 12 16:35:20 CEST 2020



> On 10. Aug 2020, at 20:18, Arno Rehn <a.rehn at menlosystems.com> wrote:
> 
> On 10.08.20 11:29, Alexandru Croitor wrote:
>>> On 9. Aug 2020, at 19:57, Arno Rehn <a.rehn at menlosystems.com> wrote:
>>> I'm trying to port over qtwebchannel from qmake to CMake, so we can
>>> hopefully include it in Qt 6.1 again. The problem is that I can't get
>>> the unit tests going with the old qmake system against current qt6 dev. I'd like to have something working which I can then port.
>>> 
>>> The error message from qmake is just:
>>>> Project ERROR: Unknown module(s) in QT: qmltest
>>> 
>>> It seems to have its root in cause in mkspecs/features/qmltestcase.prf,
>>> where it reads
>>>> mkspecs/features/qmltestcase.prf:    QT += qml qmltest
>> In this scenario, are you building Qt 6 with qmake or CMake?
>> Running qmake tests with a CMake-built Qt is not officially supported at the moment.
>> I suggest trying to build both Qt and the tests with qmake for now (in case you aren't doing that).
>> If you are, I can't really say why qmltest doesn't work for you.
> 
> Thanks a lot, that did it! :-)
> 

Glad it worked.

Note though that a preliminary old-ish CMake port for qtwebchannel has already been done in the super old wip/cmake branch

https://codereview.qt-project.org/q/project:qt%252Fqtwebchannel+branch:wip%252Fcmake+status:merged

Consider trying to work on top of that (aka merge it locally to dev, and the rerun the conversion scripts), because i expect that will end up in less work needed.



More information about the Development mailing list