Compiling Qt 6.2.3 on Ubuntu (either arm64 or x86_64)
-
Hi I'm trying to compile Qt 6.2.3 but I'm having a weird problem a bit before the build is completed.
I've tried many different configure flags, but this even happens with no flags at all.Initially I was trying to compile it in an ARM environment, but I've noticed the same thing happens in x86_64 so this doesn't seem to depend on the architecture.
The issue only ensues when compiling QtWebEngine, seems skipping the module makes the compilation succeed.
Particularly there's a forward declaration of the QHash class but no definition, even though the definition should be part of Qt BaseI ran
./configure -prefix /home/ubuntu/Qt/6.2.3/gcc_64
and gotQt is now configured for building. Just run 'cmake --build . --parallel' Once everything is built, you must run 'cmake --install .' Qt will be installed into '/home/ubuntu/Qt/6.2.3/gcc_64' To configure and build other Qt modules, you can use the following convenience script: /home/ubuntu/Qt/6.2.3/gcc_64/bin/qt-configure-module If reconfiguration fails for some reason, try to remove 'CMakeCache.txt' from the build directory -- Configuring done -- Generating done -- Build files have been written to: /home/ubuntu/qt-everywhere-src-6.2.3
Then I ran
cmake --build . --parallel
and gotIn file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/web_contents_adapter_client.h:56, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/javascript_dialog_manager_qt.h:45, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/javascript_dialog_manager_qt.cpp:40: /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/profile_adapter.h:253:67: error: field ‘m_persistentNotifications’ has incomplete type ‘QHash<QByteArray, QSharedPointer<QtWebEngineCore::UserNotificationController> >’ 253 | QHash<QByteArray, QSharedPointer<UserNotificationController>> m_persistentNotifications; | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qcontainerfwd.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/global/qtypeinfo.h:42, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qtypeinfo.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1422, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qglobal.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/../../../qtwebengine/src/core/api/qtwebenginecoreglobal.h:43, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/qtwebenginecoreglobal.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore/private/../../../../../../qtwebengine/src/core/api/qtwebenginecoreglobal_p.h:54, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore/private/qtwebenginecoreglobal_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/web_contents_adapter_client.h:54, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/javascript_dialog_manager_qt.h:45, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/javascript_dialog_manager_qt.cpp:40: /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/tools/qcontainerfwd.h:51:43: note: declaration of ‘class QHash<QByteArray, QSharedPointer<QtWebEngineCore::UserNotificationController> >’ 51 | template <typename Key, typename T> class QHash; | ^~~~~ [29270/29796] CXX obj/QtWebEngineCore/media_capture_devices_dispatcher.o FAILED: obj/QtWebEngineCore/media_capture_devices_dispatcher.o /usr/bin/c++ -MMD -MF obj/QtWebEngineCore/media_capture_devices_dispatcher.o.d -DCHROMIUM_VERSION=\"90.0.4430.228\" -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DQT_NO_KEYWORDS -DQT_USE_QSTRINGBUILDER -DQTWEBENGINECORE_VERSION_STR=\"6.2.3\" -DQTWEBENGINEPROCESS_NAME=\"QtWebEngineProcess\" -DBUILDING_CHROMIUM -DQ_FORWARD_DECLARE_OBJC_CLASS=QT_FORWARD_DECLARE_CLASS -DNOMINMAX -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_DEPRECATED_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_WEBENGINECORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QUICK_LIB -DQT_QML_LIB -DQT_QMLMODELS_LIB -DQT_OPENGL_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_DEBUG -DQT_WEBCHANNEL_LIB -DQT_POSITIONING_LIB -DWEBP_EXTERN=extern -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DSK_FAVOR_WUFFS_V_0_3_OVER_V_0_2 -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_HAS_WUFFS_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DWEBRTC_USE_X11 -DWEBRTC_USE_X11 -DWEBRTC_HAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DCPPGC_CAGED_HEAP -I../../../3rdparty/chromium/skia/config -I../../../3rdparty/chromium/third_party -I../../../3rdparty/chromium/third_party/boringssl/src/include -I../../../3rdparty/chromium/third_party/skia/include/core -Igen -I../../../3rdparty/chromium -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore -I/home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/api -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3 -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore -I/home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/api/WebEngineCore_autogen/include -I/home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core -I../../../3rdparty/chromium -I../../../3rdparty/chromium/third_party/abseil-cpp -I../../../3rdparty/chromium/third_party/perfetto/include -Igen -Igen/third_party/perfetto -Igen/third_party/perfetto/build_config -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/mkspecs/linux-g++ -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtGui -I/usr/include -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtNetwork -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQml -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQmlModels -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtOpenGL -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/src/corelib -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/6.2.3 -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/6.2.3/QtCore -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/src/gui -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtGui/6.2.3 -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtGui/6.2.3/QtGui -I/home/ubuntu/qt-everywhere-src-6.2.3/qtdeclarative/src/quick -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick/6.2.3 -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick/6.2.3/QtQuick -I/home/ubuntu/qt-everywhere-src-6.2.3/qtdeclarative/src/qmlmodels -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQmlModels/6.2.3 -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQmlModels/6.2.3/QtQmlModels -I/home/ubuntu/qt-everywhere-src-6.2.3/qtdeclarative/src/qml -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQml/6.2.3 -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQml/6.2.3/QtQml -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebChannel -I/home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtPositioning -Igen/.moc -I../../../3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../3rdparty/chromium/third_party/libyuv/include -I../../../3rdparty/chromium/third_party/jsoncpp/source/include -Igen -I../../../3rdparty/chromium/third_party/libwebp/src -I../../../3rdparty/chromium/third_party/vulkan-deps/vulkan-headers/src/include -I../../../3rdparty/chromium/third_party/khronos -I../../../3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../../3rdparty/chromium/third_party/dawn/src/include -I../../../3rdparty/chromium/third_party/wtl/include -I../../../3rdparty/chromium/third_party/abseil-cpp -I../../../3rdparty/chromium/third_party/boringssl/src/include -I../../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../3rdparty/chromium/third_party/skia -I../../../3rdparty/chromium/third_party/wuffs/src/release/c -I../../../3rdparty/chromium/third_party/vulkan/include -I../../../3rdparty/chromium/third_party/vulkan-deps/vulkan-headers/src/include -I../../../3rdparty/chromium/third_party/icu/source/common -I../../../3rdparty/chromium/third_party/icu/source/i18n -I../../../3rdparty/chromium/third_party/ced/src -I../../../3rdparty/chromium/third_party/protobuf/src -Igen/net/third_party/quiche/src -I../../../3rdparty/chromium/net/third_party/quiche/overrides -I../../../3rdparty/chromium/net/third_party/quiche/src/common/platform/default -I../../../3rdparty/chromium/net/third_party/quiche/src -I../../../3rdparty/chromium/third_party/webrtc_overrides -I../../../3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../3rdparty/chromium/third_party/crashpad/crashpad -I../../../3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../../3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../../3rdparty/chromium/third_party/zlib -I../../../3rdparty/chromium/third_party/mesa_headers -I../../../3rdparty/chromium/third_party/libwebm/source -I../../../3rdparty/chromium/third_party/leveldatabase -I../../../3rdparty/chromium/third_party/leveldatabase/src -I../../../3rdparty/chromium/third_party/leveldatabase/src/include -I../../../3rdparty/chromium/v8/include -Igen/v8/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-pragmas -Wno-parentheses -Wno-sign-compare -Wno-stringop-overflow -Wno-stringop-overread -Wno-psabi -Wno-multichar -Wno-format-zero-length -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wall -Wextra -fno-exceptions -Wno-unused-parameter -fPIC -I/usr/include/nss -I/usr/include/nspr -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -std=c++17 -Wno-ignored-qualifiers -Wall -Wextra -fno-exceptions -Wno-unused-parameter -fPIC -Wsuggest-override -Wno-deprecated-declarations -c /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.cpp -o obj/QtWebEngineCore/media_capture_devices_dispatcher.o In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/web_contents_adapter_client.h:56, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.h:48, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.cpp:44: /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/profile_adapter.h:251:61: error: field ‘m_customUrlSchemeHandlers’ has incomplete type ‘QHash<QByteArray, QPointer<QWebEngineUrlSchemeHandler> >’ 251 | QHash<QByteArray, QPointer<QWebEngineUrlSchemeHandler>> m_customUrlSchemeHandlers; | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qcontainerfwd.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/global/qtypeinfo.h:42, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qtypeinfo.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1422, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qglobal.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/../../../qtwebengine/src/core/api/qtwebenginecoreglobal.h:43, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/qtwebenginecoreglobal.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore/private/../../../../../../qtwebengine/src/core/api/qtwebenginecoreglobal_p.h:54, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore/private/qtwebenginecoreglobal_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/web_contents_adapter_client.h:54, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.h:48, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.cpp:44: /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/tools/qcontainerfwd.h:51:43: note: declaration of ‘class QHash<QByteArray, QPointer<QWebEngineUrlSchemeHandler> >’ 51 | template <typename Key, typename T> class QHash; | ^~~~~ In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/web_contents_adapter_client.h:56, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.h:48, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.cpp:44: /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/profile_adapter.h:252:65: error: field ‘m_ephemeralNotifications’ has incomplete type ‘QHash<QByteArray, QWeakPointer<QtWebEngineCore::UserNotificationController> >’ 252 | QHash<QByteArray, QWeakPointer<UserNotificationController>> m_ephemeralNotifications; | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qcontainerfwd.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/global/qtypeinfo.h:42, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qtypeinfo.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1422, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qglobal.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/../../../qtwebengine/src/core/api/qtwebenginecoreglobal.h:43, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/qtwebenginecoreglobal.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore/private/../../../../../../qtwebengine/src/core/api/qtwebenginecoreglobal_p.h:54, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore/private/qtwebenginecoreglobal_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/web_contents_adapter_client.h:54, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.h:48, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.cpp:44: /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/tools/qcontainerfwd.h:51:43: note: declaration of ‘class QHash<QByteArray, QWeakPointer<QtWebEngineCore::UserNotificationController> >’ 51 | template <typename Key, typename T> class QHash; | ^~~~~ In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/web_contents_adapter_client.h:56, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.h:48, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.cpp:44: /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/profile_adapter.h:253:67: error: field ‘m_persistentNotifications’ has incomplete type ‘QHash<QByteArray, QSharedPointer<QtWebEngineCore::UserNotificationController> >’ 253 | QHash<QByteArray, QSharedPointer<UserNotificationController>> m_persistentNotifications; | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qcontainerfwd.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/global/qtypeinfo.h:42, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qtypeinfo.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1422, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/qglobal.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/../../../qtwebengine/src/core/api/qtwebenginecoreglobal.h:43, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/qtwebenginecoreglobal.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore/private/../../../../../../qtwebengine/src/core/api/qtwebenginecoreglobal_p.h:54, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtWebEngineCore/6.2.3/QtWebEngineCore/private/qtwebenginecoreglobal_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/web_contents_adapter_client.h:54, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.h:48, from /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/media_capture_devices_dispatcher.cpp:44: /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtCore/../../src/corelib/tools/qcontainerfwd.h:51:43: note: declaration of ‘class QHash<QByteArray, QSharedPointer<QtWebEngineCore::UserNotificationController> >’ 51 | template <typename Key, typename T> class QHash; | ^~~~~ ninja: build stopped: subcommand failed. [8201/8425] Building CXX object qtquick3d/src/quick3dparticles/CMakeFiles/Quick3DParticles.dir/qquick3dparticlemodelblendparticle.cpp.o In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DUtils/6.2.3/QtQuick3DUtils/private/qssgmesh_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DRuntimeRender/6.2.3/QtQuick3DRuntimeRender/private/../../../../../../qtquick3d/src/runtimerender/graphobjects/qssgrendergeometry_p.h:48, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DRuntimeRender/6.2.3/QtQuick3DRuntimeRender/private/qssgrendergeometry_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3D/6.2.3/QtQuick3D/private/../../../../../../qtquick3d/src/quick3d/qquick3dgeometry_p.h:46, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3D/6.2.3/QtQuick3D/private/qquick3dgeometry_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3D/6.2.3/QtQuick3D/private/../../../../../../qtquick3d/src/quick3d/qquick3dmodel_p.h:46, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3D/6.2.3/QtQuick3D/private/qquick3dmodel_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/quick3dparticles/qquick3dparticlemodelblendparticle_p.h:51, from /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/quick3dparticles/qquick3dparticlemodelblendparticle.cpp:30: /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DUtils/6.2.3/QtQuick3DUtils/private/../../../../../../qtquick3d/src/utils/qssgmesh_p.h: In member function ‘void QQuick3DParticleModelBlendParticle::updateParticles()’: /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DUtils/6.2.3/QtQuick3DUtils/private/../../../../../../qtquick3d/src/utils/qssgmesh_p.h:62:29: warning: ‘*(int*)((char*)&mesh + offsetof(QSSGMesh::Mesh, QSSGMesh::Mesh::m_winding))’ may be used uninitialized in this function [-Wmaybe-uninitialized] 62 | class Q_QUICK3DUTILS_EXPORT Mesh | ^~~~ /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/quick3dparticles/qquick3dparticlemodelblendparticle.cpp:305:20: note: ‘*(int*)((char*)&mesh + offsetof(QSSGMesh::Mesh, QSSGMesh::Mesh::m_winding))’ was declared here 305 | QSSGMesh::Mesh mesh; | ^~~~ In file included from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DUtils/6.2.3/QtQuick3DUtils/private/qssgmesh_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DRuntimeRender/6.2.3/QtQuick3DRuntimeRender/private/../../../../../../qtquick3d/src/runtimerender/graphobjects/qssgrendergeometry_p.h:48, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DRuntimeRender/6.2.3/QtQuick3DRuntimeRender/private/qssgrendergeometry_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3D/6.2.3/QtQuick3D/private/../../../../../../qtquick3d/src/quick3d/qquick3dgeometry_p.h:46, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3D/6.2.3/QtQuick3D/private/qquick3dgeometry_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3D/6.2.3/QtQuick3D/private/../../../../../../qtquick3d/src/quick3d/qquick3dmodel_p.h:46, from /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3D/6.2.3/QtQuick3D/private/qquick3dmodel_p.h:1, from /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/quick3dparticles/qquick3dparticlemodelblendparticle_p.h:51, from /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/quick3dparticles/qquick3dparticlemodelblendparticle.cpp:30: /home/ubuntu/qt-everywhere-src-6.2.3/qtbase/include/QtQuick3DUtils/6.2.3/QtQuick3DUtils/private/../../../../../../qtquick3d/src/utils/qssgmesh_p.h:62:29: warning: ‘*(int*)((char*)&mesh + offsetof(QSSGMesh::Mesh, QSSGMesh::Mesh::m_drawMode))’ may be used uninitialized in this function [-Wmaybe-uninitialized] 62 | class Q_QUICK3DUTILS_EXPORT Mesh | ^~~~ /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/quick3dparticles/qquick3dparticlemodelblendparticle.cpp:305:20: note: ‘*(int*)((char*)&mesh + offsetof(QSSGMesh::Mesh, QSSGMesh::Mesh::m_drawMode))’ was declared here 305 | QSSGMesh::Mesh mesh; | ^~~~ [8259/8425] Building CXX object qtquick3d/src/plugins/assetimporters/assimp/CMakeFiles/AssimpImporterPlugin.dir/__/__/__/3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp.o /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp: In static member function ‘static zlib_filefunc_def Assimp::IOSystem2Unzip::get(Assimp::IOSystem*)’: /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:150:26: warning: cast between incompatible function types from ‘uLong (*)(voidpf, voidpf, void*, uLong)’ {aka ‘long unsigned int (*)(void*, void*, void*, long unsigned int)’} to ‘read_file_func’ {aka ‘unsigned int (*)(void*, void*, void*, unsigned int)’} [-Wcast-function-type] 150 | mapping.zread_file = (read_file_func)read; | ^~~~~~~~~~~~~~~~~~~~ /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:151:27: warning: cast between incompatible function types from ‘uLong (*)(voidpf, voidpf, const void*, uLong)’ {aka ‘long unsigned int (*)(void*, void*, const void*, long unsigned int)’} to ‘write_file_func’ {aka ‘unsigned int (*)(void*, void*, const void*, unsigned int)’} [-Wcast-function-type] 151 | mapping.zwrite_file = (write_file_func)write; | ^~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:153:26: warning: cast between incompatible function types from ‘long int (*)(voidpf, voidpf, uLong, int)’ {aka ‘long int (*)(void*, void*, long unsigned int, int)’} to ‘seek_file_func’ {aka ‘long int (*)(void*, void*, unsigned int, int)’} [-Wcast-function-type] 153 | mapping.zseek_file = (seek_file_func)seek; | ^~~~~~~~~~~~~~~~~~~~ [8320/8425] Building CXX object qtquick3d/src/plugins/assetimporters/assimp/CMakeFiles/AssimpImporterPlugin.dir/__/__/__/3rdparty/assimp/src/code/AssetLib/Collada/ColladaParser.cpp.o /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/AssetLib/Collada/ColladaParser.cpp: In member function ‘void Assimp::ColladaParser::ReadInputChannel(Assimp::XmlNode&, std::vector<Assimp::Collada::InputChannel>&)’: /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/AssetLib/Collada/ColladaParser.cpp:1672:77: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 1672 | XmlParser::getUIntAttribute(node, "offset", (unsigned int &)channel.mOffset); | ~~~~~~~~^~~~~~~ /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/AssetLib/Collada/ColladaParser.cpp: In member function ‘void Assimp::ColladaParser::ReadMaterialVertexInputBinding(Assimp::XmlNode&, Assimp::Collada::SemanticMappingTable&)’: /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/AssetLib/Collada/ColladaParser.cpp:2196:95: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 2196 | XmlParser::getUIntAttribute(currentNode, "input_semantic", (unsigned int &)vn.mType); | ~~~^~~~~ /home/ubuntu/qt-everywhere-src-6.2.3/qtquick3d/src/3rdparty/assimp/src/code/AssetLib/Collada/ColladaParser.cpp:2202:91: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 2202 | XmlParser::getUIntAttribute(currentNode, "input_semantic", (unsigned int &)vn.mType); | ~~~^~~~~ [8328/8425] Linking CXX shared module qtbase/plugins/assetimporters/libassimp.so FAILED: qtwebengine/src/core/Release/x86_64/QtWebEngineCore.stamp qtwebengine/src/core/Release/x86_64/QtWebEngineCore /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/Release/x86_64/QtWebEngineCore.stamp /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/Release/x86_64/QtWebEngineCore cd /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core && /usr/bin/ninja -C /home/ubuntu/qt-everywhere-src-6.2.3/qtwebengine/src/core/Release/x86_64 QtWebEngineCore ninja: build stopped: subcommand failed.
Any ideas on what's the problem?
-
Hi @bocchio,
I'm trying to compile Qt 6.2.3
...
error: field ‘m_ephemeralNotifications’ has incomplete typeLooks like that's a known bug that was fixed in t Qt 6.2.6. See https://bugreports.qt.io/browse/QTBUG-106241
Cheers.
-
@Paul-Colby thanks for the reply!
I know 6.2.6 is a patch release and all, however I cannot get it from https://download.qt.io/official_releases/qt/6.2/
Is there something I'm missing?
If building 6.2.6 is not possible, Is there any other way I could build 6.2.3 with QtWebEngine, maybe skipping that submodule and building it manually?
-
Assuming you can't just use Qt 6.4 instead, the fix that went into 6.2.6 was pretty simple - you can probably just apply it locally before building.
Cheers.
-