PDA

View Full Version : Failed to build Qt 6.3.0 from source on Ubuntu 22.04.



jiapei100
28th April 2022, 08:59
Hi, all:

My ENV:


-> ~ uname -r
5.15.0-27-generic
-> ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
-> ~ gcc --version
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-> ~ python --version
Python 3.10.4


I'm trying to build Qt 6.3.0 from source, but ./configure brought me the following 2 ERROR messages directly:


Could NOT find Qt6WebSockets (missing: Qt6WebSockets_DIR)



Configuring 'qtmqtt'
-- Could NOT find Qt6WebSockets (missing: Qt6WebSockets_DIR)
CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:263 (message):
Failed to find Qt component "WebSockets".

Expected Config file at
"....../qt-everywhere-src-6.3.0/qtbase/lib/cmake/Qt6WebSockets/Qt6WebSocketsConfig.cmake"
does NOT exist

Call Stack (most recent call first):
qtmqtt/CMakeLists.txt:14 (find_package)


And line **14** of `qtmqtt/CMakeLists.txt` is


find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Quick WebSockets # For tests # special case
Gui Widgets) # For examples # special case



Targets not yet defined: draco_static



Configuring 'qtquick3d'
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/draco/draco-targets.cmake:37 (message):
Some (but not all) targets in this export set were already defined.

Targets Defined: draco_shared

Targets not yet defined: draco_static

Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/draco/draco-config.cmake:36 (include)
/usr/lib/x86_64-linux-gnu/cmake/assimp-5.2/assimpConfig.cmake:37 (find_package)
qtquick3d/cmake/FindWrapQuick3DAssimp.cmake:7 (find_package)
qtbase/cmake/QtFindPackageHelpers.cmake:130 (find_package)
qtquick3d/src/plugins/assetimporters/configure.cmake:13 (qt_find_package)
qtquick3d/src/plugins/assetimporters/CMakeLists.txt:9 (include)




Can anybody give me a hand please?

Thank you very much...