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

Stefan Seefeld stefan at seefeld.name
Mon Jan 9 20:12:47 CET 2023


Hi Axel,

I don't think I'll need web sockets (for now). Still, I tried configuring
with and without "-skip qtwebsockets", and both variants failed the same
way.

In fact, the configure step (even with using "-skip qtwebsockets" !) yields

-- 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
>


The intriguing thing is that after `configure` is done, that file *does*
exist. So, running `configure` again, I this time get this output:

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"
>
>  exists
>

so some parts of the config & build logic seem a bit confused... :-)


      ...ich hab' noch einen Koffer in Berlin...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230109/e3e7a71a/attachment.htm>


More information about the Interest mailing list