Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
6.10
-
None
Description
I built Qt as static on macOS, and then when building Quick applications, there are tens if not hundreds of ODR warnings for each application I build:
[9/66] Automatic QML type registration for target coffeemachine
Warning: qquickforeignutils_p.h:107: Multiple C++ types called QEventPointDerived found!
(other occurrence in : qquickforeignutils_p.h : 107 )
This violates the One Definition Rule!
Warning: qquickforeignutils_p.h:107: Multiple C++ types called QEventPointDerived found!
(other occurrence in : qquickforeignutils_p.h : 107 )
This violates the One Definition Rule!
Warning: qqmldelegatecomponent_p.h:28: Multiple C++ types called QQmlDelegateChoice found!
(other occurrence in : qqmldelegatecomponent_p.h : 28 )
This violates the One Definition Rule!
The configure-line for Qt:
../source-dev-qt/configure -prefix ./result-config-static-optimized-A/install-macos-qt -no-warnings-are-errors -confirm-license -release -ltcg -optimize-size -static -no-sbom -nomake tests -nomake examples -skip qtimageformats,qtlanguageserver -submodules qtbase,qtdeclarative,qtquicktimeline,qtsvg -- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang
The configure-line for application:
qt-cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ../source-apps/app-coffee
This is on recent Qt 'dev', macOS ARM, 15.2 Sequoia
Attachments
Issue Links
- relates to
-
QTBUG-127133 Why do I get warning "Multiple C++ types called xxx found! This violates the One Definition Rule"
-
- Reported
-