[Interest] Could NOT find Qt6WebSockets trying to compile Qt 6.2.6 (Ubuntu 22.04)

Axel Spoerl axel.spoerl at qt.io
Mon Jan 9 06:58:41 CET 2023


Good morning Stefan,
provided the build is on Linux, this is a known issue (https://bugreports.qt.io/browse/QTBUG-109046), fixed in 6.4.2.
A workaround is downgrading to CMake 3.24 (3.24.2 working for me, 3.24.3 should also work).
Brgds
Axel

________________________________
Von: Interest <interest-bounces at qt-project.org> im Auftrag von Stefan Seefeld <stefan at seefeld.name>
Gesendet: Sonntag, 8. Januar 2023 23:57
An: interest at qt-project.org <interest at qt-project.org>
Betreff: [Interest] Could NOT find Qt6WebSockets trying to compile Qt 6.2.6 (Ubuntu 22.04)

I'm trying to compile Qt 6.2.6 from source (using the qt-everywhere-src-6.2.6.tar.xz  source package) following instructions from https://doc.qt.io/qt-6.2/build-sources.html, and I get the following error:

-- Could NOT find Qt6WebSockets (missing: Qt6WebSockets_DIR)
CMake Warning at /home/user/srcdir/qt-build/build/qtbase/lib/cmake/Qt6/Qt6Config.cmake:263 (message):
 Failed to find Qt component "WebSockets".

 Expected Config file at
 "/home/user/srcdir/qt-build/build/qtbase/lib/cmake/Qt6WebSockets/Qt6WebSocketsConfig.cmake"
 does NOT exist

Configuring again with the additional option `-skip qtwebsockets` then lets me compile Qt, but ultimately yields this error:

lrelease error: cannot create '/home/user/srcdir/qt-build/build/qtbase/share/qt6/translations/qtwebsockets_en.qm': No such file
or directory

Any idea what the problem is ?

Thanks,

[https://ci3.googleusercontent.com/mail-sig/AIorK4yh4RzsqlxV6irScDGRVZ8a7NRCh_INtpPsAHx2Y8v4Vu3VKsI54RFNs3YRZk_2xTTtMMdSCzdNrf5XRUlmF4BkezmtZv-j5c3A4G0hEA]

      ...ich hab' noch einen Koffer in Berlin...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230109/25fdfd57/attachment.htm>


More information about the Interest mailing list