Fails to build against Qt 6.9.0 on MinGW-w64 (Issue #25472)

31 views
Skip to first unread message

مهدي شينون (Mehdi Chinoune)

unread,
May 29, 2025, 11:09:11 PM5/29/25
to wx-...@googlegroups.com, Subscribed
MehdiChinoune created an issue (wxWidgets/wxWidgets#25472)

Build System Used

I build wxWidgets and/or my application using:

  • CMake
  • configure
  • mingw32-make with makefile.gcc
  • MSBuild (Microsoft Visual Studio solution file)
  • nmake with makefile.vc
  • Xcode

Description

The building were done on MSYS2.

    -G"Ninja"
    -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX}
    -DCMAKE_CXX_STANDARD=17
    -DwxBUILD_INSTALL_PLATFORM_SUBDIR=OFF
    -DwxBUILD_INSTALL=ON
    -DwxUSE_IFF=ON
    -DwxUSE_GRAPHICS_CONTEXT=ON
    -DwxUSE_GRAPHICS_DIRECT2D=ON
    -DwxBUILD_MONOLITHIC=OFF
    -DwxBUILD_PRECOMP=OFF
    -DwxBUILD_TESTS=OFF
    -DwxUSE_LIBLZMA=ON
    -DwxUSE_WEBREQUEST_CURL=ON
    -DwxUSE_WEBREQUEST_WINHTTP=ON
    -DwxUSE_STACKWALKER=ON
    -DwxUSE_DBGHELP=ON
    -DBUILD_SHARED_LIBS=ON \
    -DwxBUILD_SHARED=ON \
    -DwxBUILD_TOOLKIT=qt \
    -DwxUSE_EXPAT=sys \
    -DwxUSE_LIBJPEG=sys \
    -DwxUSE_LIBPNG=sys \
    -DwxUSE_LIBTIFF=sys \
    -DwxUSE_LIBWEBP=sys \
    -DwxUSE_REGEX=sys \
    -DwxUSE_ZLIB=sys \
    -DwxUSE_OPENGL=ON

error:

[411/848] Building CXX object libs/core/CMakeFiles/wxcore.dir/__/__/__/__/src/qt/uiaction.cpp.obj
 FAILED: libs/core/CMakeFiles/wxcore.dir/__/__/__/__/src/qt/uiaction.cpp.obj 
 C:\M\msys64\clang64\bin\clang++.exe -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_TESTCASE_BUILDDIR=\"C:/_/B/src/build-qt-CLANG64-shared/libs/core\" -DQT_TESTCASE_SOURCEDIR=\"C:/_/B/src/wxWidgets-3.3.0-rc1/build/cmake/lib/core\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DUNICODE -DWIN32 -DWIN64 -DWINVER=0x0A00 -DWXBUILDING -DWXDLLNAME=wxqt330u_core_clang_custom -DWXMAKINGDLL_CORE -DWXUSINGDLL -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN32_WINNT=0x0A00 -D_WIN64 -D__WXQT__ -DwxUSE_BASE=0 -DwxUSE_GUI=1 -Dwxcore_EXPORTS -IC:/_/B/src/build-qt-CLANG64-shared/lib/wx/include/qt-unicode-3.3 -IC:/_/B/src/wxWidgets-3.3.0-rc1/include -isystem C:/M/msys64/clang64/include/qt6/QtCore -isystem C:/M/msys64/clang64/include/qt6 -isystem C:/M/msys64/clang64/include/qt6/QtWidgets -isystem C:/M/msys64/clang64/include/qt6/QtGui -isystem C:/M/msys64/clang64/include/qt6/QtOpenGL -isystem C:/M/msys64/clang64/include/qt6/QtOpenGLWidgets -isystem C:/M/msys64/clang64/include/qt6/QtTest -isystem C:/M/msys64/clang64/share/qt6/mkspecs/win32-clang-g++ -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -Wno-ignored-attributes -O3 -DNDEBUG -O2 -fomit-frame-pointer -Wall -Wundef -Wunused-parameter -Wno-ignored-attributes -Wno-ctor-dtor-privacy -Woverloaded-virtual -pthread -MD -MT libs/core/CMakeFiles/wxcore.dir/__/__/__/__/src/qt/uiaction.cpp.obj -MF libs\core\CMakeFiles\wxcore.dir\__\__\__\__\src\qt\uiaction.cpp.obj.d -o libs/core/CMakeFiles/wxcore.dir/__/__/__/__/src/qt/uiaction.cpp.obj -c C:/_/B/src/wxWidgets-3.3.0-rc1/src/qt/uiaction.cpp
 C:/_/B/src/wxWidgets-3.3.0-rc1/src/qt/uiaction.cpp:180:21: error: no matching constructor for initialization of 'const QChar'
   180 |         const QChar qChar(key);
       |                     ^     ~~~
 C:/M/msys64/clang64/include/qt6/QtCore/qchar.h:48:31: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Key' to 'const QChar' for 1st argument
    48 | class QT6_ONLY(Q_CORE_EXPORT) QChar {
       |                               ^~~~~
 C:/M/msys64/clang64/include/qt6/QtCore/qchar.h:48:31: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'Key' to 'QChar' for 1st argument
    48 | class QT6_ONLY(Q_CORE_EXPORT) QChar {
       |                               ^~~~~
 C:/M/msys64/clang64/include/qt6/QtCore/qchar.h:132:26: note: candidate template ignored: requirement 'disjunction<std::is_same<Qt::Key, unsigned short>, std::is_same<Qt::Key, short>, std::is_same<Qt::Key, QChar::SpecialCharacter>, std::is_same<Qt::Key, QLatin1Char>, std::conjunction<std::is_same<Qt::Key, wchar_t>, std::negation<std::integral_constant<bool, false>>>, std::is_same<Qt::Key, char16_t>>::value' was not satisfied [with Char = Key]
   132 |     constexpr Q_IMPLICIT QChar(const Char ch) noexcept : ucs(char16_t(ch)) {}
       |                          ^
 C:/M/msys64/clang64/include/qt6/QtCore/qchar.h:134:24: note: candidate template ignored: requirement 'disjunction<std::is_same<Qt::Key, char32_t>, std::conjunction<std::is_same<Qt::Key, wchar_t>, std::integral_constant<bool, false>>, std::is_same<Qt::Key, int>, std::is_same<Qt::Key, unsigned int>>::value' was not satisfied [with Char = Key]
   134 |     constexpr explicit QChar(const Char ch) noexcept
       |                        ^
 C:/M/msys64/clang64/include/qt6/QtCore/qchar.h:143:45: note: candidate template ignored: requirement 'is_same<Qt::Key, char>::value' was not satisfied [with Char = Key]
   143 |     QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(const Char ch) noexcept : ucs(uchar(ch)) {}
       |                                             ^
 C:/M/msys64/clang64/include/qt6/QtCore/qchar.h:149:43: note: candidate template ignored: requirement 'is_same<Qt::Key, unsigned char>::value' was not satisfied [with Char = Key]
   149 |     QT_ASCII_CAST_WARN constexpr explicit QChar(const Char c) noexcept : ucs(c) { }
       |                                           ^
 C:/M/msys64/clang64/include/qt6/QtCore/qchar.h:115:26: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
   115 |     constexpr Q_IMPLICIT QChar() noexcept : ucs(0) {}
       |                          ^
 C:/M/msys64/clang64/include/qt6/QtCore/qchar.h:119:24: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
   119 |     constexpr explicit QChar(uchar c, uchar r) noexcept : ucs(char16_t((r << 8) | c)) {}
 
       |                        ^     ~~~~~~~~~~~~~~~~
 
 1 error generated.

Platform and version information

  • wxWidgets version you are building: 3.3.0-rc1
  • wxWidgets port you are building: wxQt
  • OS and its version: Windows Server 2025
  • Compiler being used: GCC 15.1.0 and Clang 20.1.5
  • Non-default compiler options, if any :


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25472@github.com>

VZ

unread,
May 31, 2025, 10:15:46 AM5/31/25
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25472)

It would be nice to fix this before 3.3.0, I guess we just need a cast?

Otherwise we could also disable wxUSE_UIACTIONSIMULATOR when using Qt 6.9, but it would be preferable not to do this, of course...

@AliKet Please let me know if you can look at/fix this, TIA!


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25472/2925231749@github.com>

مهدي شينون (Mehdi Chinoune)

unread,
Jun 1, 2025, 4:37:51 AM6/1/25
to wx-...@googlegroups.com, Subscribed

Closed #25472 as not planned.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/25472/issue_event/17911450317@github.com>

VZ

unread,
Jun 1, 2025, 5:00:58 AM6/1/25
to wx-...@googlegroups.com, Subscribed

Reopened #25472.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/25472/issue_event/17911722067@github.com>

VZ

unread,
Jun 1, 2025, 5:00:59 AM6/1/25
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25472)

Although the submitter threw a tantrum and closed it, the problem is probably still valid.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25472/2926853946@github.com>

مهدي شينون (Mehdi Chinoune)

unread,
Jun 1, 2025, 5:12:12 AM6/1/25
to wx-...@googlegroups.com, Subscribed

Closed #25472 as not planned.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/25472/issue_event/17911926155@github.com>

مهدي شينون (Mehdi Chinoune)

unread,
Jun 1, 2025, 5:12:45 AM6/1/25
to wx-...@googlegroups.com, Subscribed
MehdiChinoune left a comment (wxWidgets/wxWidgets#25472)

I was threatened to be blocked If I raise my voice.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25472/2926872520@github.com>

VZ

unread,
Jun 1, 2025, 6:06:39 AM6/1/25
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25472)

Just to be perfectly clear, and for the record, you have been asked to avoid polluting the issue tracker with unrelated discussions. This is not an affront to your liberty of expression you're making it out to be.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25472/2926952569@github.com>

Reply all
Reply to author
Forward
0 new messages