[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 19:12:05 CET 2023


Hi Stefan,
is the intention to build with or without web sockets?
It looks like a dependency to websockets causes CMake to search for it.
Could you share the configure output?
Brgds
Axel
________________________________
Von: Stefan Seefeld <stefan at seefeld.name>
Gesendet: Montag, 9. Januar 2023 16:14
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)

Thanks.

Meanwhile, I'm trying to compile on Ubuntu 20.04 (note that all of this is done in docker containers).

I'm still observing the same issue, even after a fresh start with an entirely new build tree:

Updating '/home/user/srcdir/qt-build/build/qtbase/share/qt5/translations/qtwebsockets_en.qm'...
lrelease error: cannot create '/home/user/srcdir/qt-build/build/qtbase/share/qt5/translations/qtwebsockets_en.qm': No such file or directory
make[2]: *** [qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts.dir/build.make:70: qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts] Error 1




On Mon, Jan 9, 2023 at 9:51 AM Axel Spoerl via Interest <interest at qt-project.org<mailto:interest at qt-project.org>> wrote:
We're testing Ubuntu 22.04 at present.
Can't confirm a date though.
________________________________
Von: Stefan Seefeld <stefan at seefeld.name<mailto:stefan at seefeld.name>>
Gesendet: Montag, 9. Januar 2023 15:32
An: Axel Spoerl <axel.spoerl at qt.io<mailto:axel.spoerl at qt.io>>
Cc: interest at qt-project.org<mailto:interest at qt-project.org> <interest at qt-project.org<mailto:interest at qt-project.org>>
Betreff: Re: [Interest] Could NOT find Qt6WebSockets trying to compile Qt 6.2.6 (Ubuntu 22.04)

Thanks. Is there a plan for any other LTS release that will work with Ubuntu 22.04 ?

On Mon, Jan 9, 2023 at 9:29 AM Axel Spoerl via Interest <interest at qt-project.org<mailto:interest at qt-project.org>> wrote:
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.
Cheers
Axel
________________________________
Von: Stefan Seefeld <stefan at seefeld.name<mailto:stefan at seefeld.name>>
Gesendet: Montag, 9. Januar 2023 15:13
An: Axel Spoerl <axel.spoerl at qt.io<mailto:axel.spoerl at qt.io>>
Cc: interest at qt-project.org<mailto:interest at qt-project.org> <interest at qt-project.org<mailto: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.

Thanks,

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).
Brgds
Axel

________________________________
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
 "/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...


_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
https://lists.qt-project.org/listinfo/interest


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

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


_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
https://lists.qt-project.org/listinfo/interest


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

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


_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
https://lists.qt-project.org/listinfo/interest


--
[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/5e85ca7a/attachment.htm>


More information about the Interest mailing list