Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-27616

qwindowsnativeimage build fail with mingw

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.0.0 RC 1, 5.0.0
    • Fix Version/s: 5.0.0 Beta 2
    • Component/s: Core: Plugins
    • Labels:
      None
    • Environment:
      Windows 7 64bit, mingw-w64 gcc-4.7.2
    • Commits:
      12d25f1a42d03c2d126d0fcf60622aa9b7dac6db

      Description

      g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c+0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"C:\SDK\ported32\include" -I"..\..\..\..\include" -I"..\..\..\..\include\QtPlatformSupport" -I"..\..\..\..\include\QtPlatformSupport\5.0.0" -I"..\..\..\..\include\QtPlatformSupport\5.0.0\QtPlatformSupport" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include\QtGui\5.0.0" -I"..\..\..\..\include\QtGui\5.0.0\QtGui" -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore\5.0.0" -I"..\..\..\..\include\QtCore\5.0.0\QtCore" -I"tmp\moc\release_shared" -I"C:\SDK\mingw32\i686-w64-mingw32\include" -I"C:\SDK\ported32\include" -I"C:\SDK\Qt-i686\databases\firebird\include" -I"C:\SDK\Qt-i686\databases\mysql\include" -I"C:\SDK\Qt-i686\databases\pgsql\include" -I"..\..\..\..\mkspecs\win32-g+" -o tmp\obj\release_shared\main.o main.cpp
      C:\SDK\sources\qt5\qtbase\bin\moc.exe -DUNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_DIRECTWRITE -DQT_COMPILES_IN_HARFBUZZ -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_DLL -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"C:\SDK\ported32\include" -I"..\..\..\3rdparty\harfbuzz\src" -I"..\..\..\3rdparty\freetype\src" -I"..\..\..\3rdparty\freetype\include" -I"..\..\..\..\include" -I"..\..\..\..\include\QtPlatformSupport" -I"..\..\..\..\include\QtPlatformSupport\5.0.0" -I"..\..\..\..\include\QtPlatformSupport\5.0.0\QtPlatformSupport" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include\QtGui\5.0.0" -I"..\..\..\..\include\QtGui\5.0.0\QtGui" -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore\5.0.0" -I"..\..\..\..\include\QtCore\5.0.0\QtCore" -I"tmp\moc\debug_shared" -I"C:\SDK\mingw32\i686-w64-mingw32\include" -I"C:\SDK\ported32\include" -I"C:\SDK\Qt-i686\databases\firebird\include" -I"C:\SDK\Qt-i686\databases\mysql\include" -I"C:\SDK\Qt-i686\databases\pgsql\include" -I"..\..\..\..\mkspecs\win32-g++" -D_GNUC_ -DWIN32 qwindowsintegration.cpp -o tmp\moc\debug_shared\qwindowsintegration.moc
      In file included from qwindowsnativeimage.h:45:0,
      from qwindowsnativeimage.cpp:42:
      qtwindows_additional.h:97:0: warning: "SHGFI_ADDOVERLAYS" redefined [enabled by default]
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowsnativeimage.h:45,
      from qwindowsnativeimage.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:493:0: note: this is the location of the previous definition
      In file included from qwindowsnativeimage.h:45:0,
      from qwindowsnativeimage.cpp:42:
      qtwindows_additional.h:98:0: warning: "SHGFI_OVERLAYINDEX" redefined [enabled by default]
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowsnativeimage.h:45,
      from qwindowsnativeimage.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:494:0: note: this is the location of the previous definition
      In file included from qwindowsnativeimage.h:45:0,
      from qwindowsnativeimage.cpp:42:
      qtwindows_additional.h:97:0: warning: "SHGFI_ADDOVERLAYS" redefined [enabled by default]
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowsnativeimage.h:45,
      from qwindowsnativeimage.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:493:0: note: this is the location of the previous definition
      In file included from qwindowsnativeimage.h:45:0,
      from qwindowsnativeimage.cpp:42:
      qtwindows_additional.h:98:0: warning: "SHGFI_OVERLAYINDEX" redefined [enabled by default]
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowsnativeimage.h:45,
      from qwindowsnativeimage.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:494:0: note: this is the location of the previous definition
      In file included from qwindowswindow.h:45:0,
      from qwindowswindow.cpp:42:
      qtwindows_additional.h:97:0: warning: "SHGFI_ADDOVERLAYS" redefined [enabled by default]
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowswindow.h:45,
      from qwindowswindow.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:493:0: note: this is the location of the previous definition
      In file included from qwindowswindow.h:45:0,
      from qwindowswindow.cpp:42:
      qtwindows_additional.h:98:0: warning: "SHGFI_OVERLAYINDEX" redefined [enabled by default]
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowswindow.h:45,
      from qwindowswindow.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:494:0: note: this is the location of the previous definition
      In file included from qwindowswindow.h:45:0,
      from qwindowswindow.cpp:42:
      qtwindows_additional.h:97:0: warning: "SHGFI_ADDOVERLAYS" redefined [enabled by default]
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowswindow.h:45,
      from qwindowswindow.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:493:0: note: this is the location of the previous definition
      In file included from qwindowswindow.h:45:0,
      from qwindowswindow.cpp:42:
      qtwindows_additional.h:98:0: warning: "SHGFI_OVERLAYINDEX" redefined [enabled by default]
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowswindow.h:45,
      from qwindowswindow.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:494:0: note: this is the location of the previous definition
      g++ shared -mthreads -Wl,-out-implib,C:\SDK\sources\qt5\qtbase\plugins\platforms\libqminimald5.a -o ..\..\..\..\plugins\platforms\qminimald5.dll tmp/obj/debug_shared/main.o tmp/obj/debug_shared/qminimalintegration.o tmp/obj/debug_shared/qminimalbackingstore.o -lglu32 -lopengl32 -lgdi32 -luser32 -LC:\SDK\mingw32\i686-w64-mingw32\lib -LC:\SDK\ported32\lib -LC:\SDK\Qt-i686\databases\firebird\lib -LC:\SDK\Qt-i686\databases\mysql\lib -LC:\SDK\Qt-i686\databases\pgsql\lib -LC:/SDK/ported32/lib -LC:/SDK/sources/qt5/qtbase/lib -lQtPlatformSupportd -lglu32 -lopengl32 -lgdi32 -luser32 -LC:\SDK\mingw32\i686-w64-mingw32\lib -LC:\SDK\ported32\lib -LC:\SDK\Qt-i686\databases\firebird\lib -LC:\SDK\Qt-i686\databases\mysql\lib -LC:\SDK\Qt-i686\databases\pgsql\lib -LC:/SDK/ported32/lib -LC:/SDK/sources/qt5/qtbase/lib -lQtGuid5 -LC:/SDK/sources/qt5/qtbase/lib -lQtCored5 -lz -LC:/SDK/sources/qt5/qtbase/lib -lQtGuid5 -LC:/SDK/sources/qt5/qtbase/lib -lQtCored5 tmp\obj\debug_shared\qminimald_resource_res.o
      In file included from qwindowswindow.h:45:0,
      from qwindowswindow.cpp:42:
      qtwindows_additional.h:87:16: error: redefinition of 'struct _SHSTOCKICONINFO'
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowswindow.h:45,
      from qwindowswindow.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:589:16: error: previous definition of 'struct _SHSTOCKICONINFO'
      In file included from qwindowswindow.h:45:0,
      from qwindowswindow.cpp:42:
      qtwindows_additional.h:94:18: error: invalid type in declaration before ';' token
      qtwindows_additional.h:94:18: error: conflicting declaration 'typedef int SHSTOCKICONINFO'
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowswindow.h:45,
      from qwindowswindow.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:595:3: error: 'SHSTOCKICONINFO' has a previous declaration as 'typedef struct _SHSTOCKICONINFO SHSTOCKICONINFO'
      mingw32-make[6]: Leaving directory 'C:/SDK/sources/qt5/qtbase/src/plugins/platforms/minimal'
      In file included from qwindowswindow.cpp:42:0:
      qwindowswindow.h: In constructor 'QWindowsWindow::QWindowsWindow(QWindow*, const QWindowsWindow::WindowData&)':
      qwindowswindow.h:283:11: warning: 'QWindowsWindow::m_iconBig' will be initialized after [-Wreorder]
      qwindowswindow.h:282:11: warning: 'HICON__* QWindowsWindow::m_iconSmall' [-Wreorder]
      qwindowswindow.cpp:694:1: warning: when initialized here [-Wreorder]
      In file included from qwindowsnativeimage.h:45:0,
      from qwindowsnativeimage.cpp:42:
      qtwindows_additional.h:87:16: error: redefinition of 'struct _SHSTOCKICONINFO'
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowsnativeimage.h:45,
      from qwindowsnativeimage.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:589:16: error: previous definition of 'struct _SHSTOCKICONINFO'
      In file included from qwindowsnativeimage.h:45:0,
      from qwindowsnativeimage.cpp:42:
      qtwindows_additional.h:94:18: error: invalid type in declaration before ';' token
      qtwindows_additional.h:94:18: error: conflicting declaration 'typedef int SHSTOCKICONINFO'
      In file included from c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:89:0,
      from ..\..\..\..\include/QtCore/../../src/corelib/global/qt_windows.h:66,
      from ..\..\..\..\include/QtCore/qt_windows.h:1,
      from qtwindows_additional.h:46,
      from qwindowsnativeimage.h:45,
      from qwindowsnativeimage.cpp:42:
      c:\sdk\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/shellapi.h:595:3: error: 'SHSTOCKICONINFO' has a previous declaration as 'typedef struct _SHSTOCKICONINFO SHSTOCKICONINFO'
      Makefile.Debug:3438: recipe for target 'tmp/obj/debug_shared/qwindowswindow.o' failed
      mingw32-make[6]: *** [tmp/obj/debug_shared/qwindowswindow.o] Error 1
      mingw32-make[6]: *** Waiting for unfinished jobs....
      Makefile.Debug:2999: recipe for target 'tmp/obj/debug_shared/qwindowsnativeimage.o' failed
      mingw32-make[6]: *** [tmp/obj/debug_shared/qwindowsnativeimage.o] Error 1

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            alexpux Alexey Pavlov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes