Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6
-
None
Description
Building on Windows with Qt 6.2.2 and the mingw900_64 toolchain gives the error output below. Not sure if this is a mingw issue, but it does not occur when compiling other Qt examples. I was able to work-around it by adding #include <windows.h> early in qquicktreeview_p_p.h
g++ -c -fno-keep-inline-dllexport -O2 -g -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-format-overflow -Wsuggest-override -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -IC:/Temp/qttreeview/src -I. -IC:/Qt/6.2.2/mingw_64/include/QtQuick/6.2.2 -IC:/Qt/6.2.2/mingw_64/include/QtQuick/6.2.2/QtQuick -IC:/Qt/6.2.2/mingw_64/include -IC:/Qt/6.2.2/mingw_64/include/QtQuick -IC:/Qt/6.2.2/mingw_64/include/QtOpenGL -IC:/Qt/6.2.2/mingw_64/include/QtGui/6.2.2 -IC:/Qt/6.2.2/mingw_64/include/QtGui/6.2.2/QtGui -IC:/Qt/6.2.2/mingw_64/include/QtGui -IC:/Qt/6.2.2/mingw_64/include/QtQmlModels/6.2.2 -IC:/Qt/6.2.2/mingw_64/include/QtQmlModels/6.2.2/QtQmlModels -IC:/Qt/6.2.2/mingw_64/include/QtQmlModels -IC:/Qt/6.2.2/mingw_64/include/QtQml/6.2.2 -IC:/Qt/6.2.2/mingw_64/include/QtQml/6.2.2/QtQml -IC:/Qt/6.2.2/mingw_64/include/QtQml -IC:/Qt/6.2.2/mingw_64/include/QtNetwork -IC:/Qt/6.2.2/mingw_64/include/QtCore/6.2.2 -IC:/Qt/6.2.2/mingw_64/include/QtCore/6.2.2/QtCore -IC:/Qt/6.2.2/mingw_64/include/QtCore -I.moc/release -I/include -IC:/Qt/6.2.2/mingw_64/mkspecs/win32-g++ -o .obj\release\qquicktreeview.o C:\Temp\qttreeview\src\qquicktreeview.cpp In file included from C:/Qt/Tools/mingw900_64/x86_64-w64-mingw32/include/windows.h:72, from C:/Qt/6.2.2/mingw_64/include/QtCore/qt_windows.h:64, from C:/Qt/6.2.2/mingw_64/include/QtGui/qopengl.h:49, from C:/Qt/6.2.2/mingw_64/include/QtGui/6.2.2/QtGui/qpa/qplatformopenglcontext.h:59, from C:/Qt/6.2.2/mingw_64/include/QtGui/6.2.2/QtGui/qpa/qplatformwindow.h:58, from C:/Qt/6.2.2/mingw_64/include/QtGui/6.2.2/QtGui/private/qwindow_p.h:57, from C:/Qt/6.2.2/mingw_64/include/QtQuick/6.2.2/QtQuick/private/qquickwindow_p.h:72, from C:/Qt/6.2.2/mingw_64/include/QtQuick/6.2.2/QtQuick/private/qquickitem_p.h:61, from C:/Qt/6.2.2/mingw_64/include/QtQuick/6.2.2/QtQuick/private/qquickflickable_p_p.h:55, from C:/Qt/6.2.2/mingw_64/include/QtQuick/6.2.2/QtQuick/private/qquicktableview_p_p.h:64, from C:\Temp\qttreeview\src\qquicktreeview_p_p.h:36, from C:\Temp\qttreeview\src\qquicktreeview.cpp:37: C:/Qt/Tools/mingw900_64/x86_64-w64-mingw32/include/winuser.h:2965:43: error: variable 'CreateSyntheticPointerDevice' definition is marked dllimport 2965 | WINUSERAPI HSYNTHETICPOINTERDEVICE WINAPI CreateSyntheticPointerDevice(POINTER_INPUT_TYPE pointerType, ULONG maxCount, POINTER_FEEDBACK_MODE mode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Qt/Tools/mingw900_64/x86_64-w64-mingw32/include/winuser.h:2965:72: error: 'POINTER_INPUT_TYPE' was not declared in this scope; did you mean 'PRINTER_FONTTYPE'? 2965 | WINUSERAPI HSYNTHETICPOINTERDEVICE WINAPI CreateSyntheticPointerDevice(POINTER_INPUT_TYPE pointerType, ULONG maxCount, POINTER_FEEDBACK_MODE mode); | ^~~~~~~~~~~~~~~~~~ | PRINTER_FONTTYPE C:/Qt/Tools/mingw900_64/x86_64-w64-mingw32/include/winuser.h:2965:110: error: expected primary-expression before 'maxCount' 2965 | WINUSERAPI HSYNTHETICPOINTERDEVICE WINAPI CreateSyntheticPointerDevice(POINTER_INPUT_TYPE pointerType, ULONG maxCount, POINTER_FEEDBACK_MODE mode); | ^~~~~~~~ C:/Qt/Tools/mingw900_64/x86_64-w64-mingw32/include/winuser.h:2965:120: error: 'POINTER_FEEDBACK_MODE' was not declared in this scope 2965 | WINUSERAPI HSYNTHETICPOINTERDEVICE WINAPI CreateSyntheticPointerDevice(POINTER_INPUT_TYPE pointerType, ULONG maxCount, POINTER_FEEDBACK_MODE mode); | ^~~~~~~~~~~~~~~~~~~~~ C:/Qt/Tools/mingw900_64/x86_64-w64-mingw32/include/winuser.h:2965:146: error: expression list treated as compound expression in initializer [-fpermissive] 2965 | WINUSERAPI HSYNTHETICPOINTERDEVICE WINAPI CreateSyntheticPointerDevice(POINTER_INPUT_TYPE pointerType, ULONG maxCount, POINTER_FEEDBACK_MODE mode); | ^ C:/Qt/Tools/mingw900_64/x86_64-w64-mingw32/include/winuser.h:2966:93: error: 'POINTER_TYPE_INFO' does not name a type; did you mean 'POINTER_64_INT'? 2966 | WINUSERAPI WINBOOL WINAPI InjectSyntheticPointerInput(HSYNTHETICPOINTERDEVICE device, CONST POINTER_TYPE_INFO* pointerInfo, UINT32 count); | ^~~~~~~~~~~~~~~~~ | POINTER_64_INT mingw32-make[2]: *** [Makefile.Release:1562: .obj/release/qquicktreeview.o] Error 1 mingw32-make[2]: Leaving directory 'c:/Temp/build-qttreeview-622-mingw/src' mingw32-make[1]: *** [Makefile:45: release] Error 2 mingw32-make[1]: Leaving directory 'c:/Temp/build-qttreeview-622-mingw/src' mingw32-make: *** [Makefile:52: sub-src-make_first] Error 2