[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 15:26:09 CET 2023

Hi Stefan,
pls note that Ubuntu 20.04 is supported on 6.2. Ubuntu 22.04 is known to have issues.
However, if compiling w/o websockets is the goal, wiping the build tree and deleting websockets from the source tree is likely to help.
Sorry for accidently squashing both issues together.
Von: Stefan Seefeld <stefan at seefeld.name>
Gesendet: Montag, 9. Januar 2023 15:13
An: Axel Spoerl <axel.spoerl at qt.io>
Cc: interest at qt-project.org <interest at qt-project.org>
Betreff: Re: [Interest] Could NOT find Qt6WebSockets trying to compile Qt 6.2.6 (Ubuntu 22.04)

[sorry, forgot to reply to the list]

Thanks for following up. This issue is different from the previous
one, and downgrading cmake to 3.24.x doesn't make any difference. I
still do get the warning from the `configure` process, and the build
error during `make` execution.


On Mon, Jan 9, 2023 at 1:02 AM Axel Spoerl via Interest <interest at qt-project.org<mailto:interest at qt-project.org>> wrote:
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).

Von: Interest <interest-bounces at qt-project.org<mailto:interest-bounces at qt-project.org>> im Auftrag von Stefan Seefeld <stefan at seefeld.name<mailto:stefan at seefeld.name>>
Gesendet: Sonntag, 8. Januar 2023 23:57
An: interest at qt-project.org<mailto:interest at qt-project.org> <interest at qt-project.org<mailto: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
 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 ?



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

Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>


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

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

More information about the Interest mailing list