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

MinGW 7.2: 'undefined reference to `DwmInvalidateIconicBitmaps' ... `DwmSetIconicLivePreviewBitmap'' errors for Qt Windows Extras builds on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.11
    • Extras: Win
    • None

    Description

      Hello everyone,

       

      Got error for builds using mingw-w64 with Shared:

      C:\libQT-5.10-dev\build\qtwinextras>mingw32-make && echo OK
      cd src\ && ( if not exist Makefile C:\libQT-5.10-dev\build\qtbase\bin\qmake.exe -o Makefile C:\libQT-5.10-dev\build\qtwinextras\src\src.pro ) && mingw32-make -f Makefile
      mingw32-make[1]: Entering directory 'c:/libQT-5.10-dev/build/qtwinextras/src'
      cd winextras\ && ( if not exist Makefile C:\libQT-5.10-dev\build\qtbase\bin\qmake.exe -o Makefile C:\libQT-5.10-dev\build\qtwinextras\src\winextras\winextras.pro ) && mingw32-make -f Makefile
      mingw32-make[2]: Entering directory 'c:/libQT-5.10-dev/build/qtwinextras/src/winextras'
      mingw32-make -f Makefile.Release
      mingw32-make[3]: Entering directory 'c:/libQT-5.10-dev/build/qtwinextras/src/winextras'
      g++ -Wl,-s -shared -Wl,-subsystem,windows -Wl,--out-implib,C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a -o ..\..\lib\Qt5WinExtras.dll object_script.Qt5WinExtras.Release  -LC:\libQT-5.10-dev\build\qtbase\lib C:\libQT-5.10-dev\build\qtbase\lib\libQt5Gui.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5Core.a .obj\release\Qt5WinExtras_resource_res.o -lole32 -lshlwapi -lshell32 -ldwmapi -lgdi32
      ./.obj\release\qwinthumbnailtoolbar.o:qwinthumbnailtoolbar.cpp:(.text+0x8e4): undefined reference to `DwmInvalidateIconicBitmaps'
      ./.obj\release\qwinthumbnailtoolbar.o:qwinthumbnailtoolbar.cpp:(.text+0x1c7d): undefined reference to `DwmSetIconicThumbnail'
      ./.obj\release\qwinthumbnailtoolbar.o:qwinthumbnailtoolbar.cpp:(.text+0x1d8f): undefined reference to `DwmSetIconicLivePreviewBitmap'
      collect2.exe: error: ld returned 1 exit status
      mingw32-make[3]: *** [Makefile.Release:120: ..\..\lib\Qt5WinExtras.dll] Error 1
      mingw32-make[3]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/src/winextras'
      mingw32-make[2]: *** [Makefile:36: release] Error 2
      mingw32-make[2]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/src/winextras'
      mingw32-make[1]: *** [Makefile:42: sub-winextras-make_first-ordered] Error 2
      mingw32-make[1]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/src'
      mingw32-make: *** [Makefile:43: sub-src-make_first] Error 2
      

       

      and Static layout:

      mingw32-make[4]: Entering directory 'c:/libQT-5.10-dev/build/qtwinextras/examples/winextras/quickplayer'
      g++ -Wl,-s -static -Wl,-subsystem,windows -o release\quickplayer.exe .obj/release/main.o .obj/release/quickplayer_plugin_import.o .obj/release/quickplayer_qml_plugin_import.o .obj/release/qrc_quickplayer.o  -lmingw32 -LC:\libQT-5.10-dev\build\qtbase\lib C:\libQT-5.10-dev\build\qtbase\lib\libqtmain.a -LC:\libICU-59.1\GCC64RT\lib -LC:\libQT-5.10-dev\build\qtbase\plugins\platforms C:\libQT-5.10-dev\build\qtbase\plugins\platforms\libqwindows.a -lwinspool -lrpcrt4 C:\libQT-5.10-dev\build\qtbase\lib\libQt5EventDispatcherSupport.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5AccessibilitySupport.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5FontDatabaseSupport.a C:\libQT-5.10-dev\build\qtbase\lib\libqtfreetype.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5ThemeSupport.a -LC:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqicns.a C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqtga.a C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqtiff.a C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqwbmp.a C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqwebp.a -LC:\libQT-5.10-dev\build\qtbase\plugins\imageformats C:\libQT-5.10-dev\build\qtbase\plugins\imageformats\libqgif.a C:\libQT-5.10-dev\build\qtbase\plugins\imageformats\libqico.a C:\libQT-5.10-dev\build\qtbase\plugins\imageformats\libqjpeg.a -LC:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_debugger.a -LC:\libQT-5.10-dev\build\qtdeclarative\lib C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_inspector.a C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_local.a C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_messages.a C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_native.a C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_nativedebugger.a C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_profiler.a C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_quickprofiler.a C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_server.a C:\libQT-5.10-dev\build\qtdeclarative\lib\libQt5PacketProtocol.a C:\libQT-5.10-dev\build\qtdeclarative\plugins\qmltooling\libqmldbg_tcp.a -LC:\libQT-5.10-dev\build\qtbase\plugins\bearer C:\libQT-5.10-dev\build\qtbase\plugins\bearer\libqgenericbearer.a C:\libQT-5.10-dev\build\qtbase\plugins\bearer\libqnativewifibearer.a -LC:\libQT-5.10-dev\build\qtdeclarative\qml\QtQuick.2 C:\libQT-5.10-dev\build\qtdeclarative\qml\QtQuick.2\libqtquick2plugin.a -LC:\libQT-5.10-dev\build\qtdeclarative\qml\QtQuick\Window.2 C:\libQT-5.10-dev\build\qtdeclarative\qml\QtQuick\Window.2\libwindowplugin.a -LC:\libQT-5.10-dev\build\qtdeclarative\qml\QtQuick\Layouts C:\libQT-5.10-dev\build\qtdeclarative\qml\QtQuick\Layouts\libqquicklayoutsplugin.a -LC:\libQT-5.10-dev\build\qtquickcontrols\qml\QtQuick\Controls C:\libQT-5.10-dev\build\qtquickcontrols\qml\QtQuick\Controls\libqtquickcontrolsplugin.a -LC:\libQT-5.10-dev\build\qtquickcontrols\qml\QtQuick\Dialogs C:\libQT-5.10-dev\build\qtquickcontrols\qml\QtQuick\Dialogs\libdialogplugin.a -LC:\libQT-5.10-dev\build\qtmultimedia\qml\QtMultimedia C:\libQT-5.10-dev\build\qtmultimedia\qml\QtMultimedia\libdeclarative_multimedia.a -LC:\libQT-5.10-dev\build\qtmultimedia\lib C:\libQT-5.10-dev\build\qtmultimedia\lib\libQt5MultimediaQuick.a C:\libQT-5.10-dev\build\qtmultimedia\lib\libQt5Multimedia.a -LC:\libQT-5.10-dev\build\qtwinextras\qml\QtWinExtras C:\libQT-5.10-dev\build\qtwinextras\qml\QtWinExtras\libqml_winextras.a -LC:\libQT-5.10-dev\build\qtwinextras\lib C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a -lshlwapi -LC:\libQT-5.10-dev\build\qtdeclarative\qml\Qt\labs\folderlistmodel C:\libQT-5.10-dev\build\qtdeclarative\qml\Qt\labs\folderlistmodel\libqmlfolderlistmodelplugin.a -LC:\libQT-5.10-dev\build\qtdeclarative\qml\Qt\labs\settings C:\libQT-5.10-dev\build\qtdeclarative\qml\Qt\labs\settings\libqmlsettingsplugin.a -LC:\libQT-5.10-dev\build\qtquickcontrols\qml\QtQuick\Dialogs\Private C:\libQT-5.10-dev\build\qtquickcontrols\qml\QtQuick\Dialogs\Private\libdialogsprivateplugin.a -LC:\libQT-5.10-dev\build\qtquickcontrols\qml\QtQuick\PrivateWidgets C:\libQT-5.10-dev\build\qtquickcontrols\qml\QtQuick\PrivateWidgets\libwidgetsplugin.a C:\libQT-5.10-dev\build\qtdeclarative\lib\libQt5Quick.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5Widgets.a -luxtheme -ldwmapi C:\libQT-5.10-dev\build\qtbase\lib\libQt5Gui.a -lgdi32 -lcomdlg32 -loleaut32 -limm32 C:\libQT-5.10-dev\build\qtbase\lib\libqtlibpng.a C:\libQT-5.10-dev\build\qtbase\lib\libqtharfbuzz.a C:\libQT-5.10-dev\build\qtdeclarative\lib\libQt5Qml.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5Network.a -ldnsapi -liphlpapi C:\libQT-5.10-dev\build\qtbase\lib\libQt5Core.a -lmpr -lnetapi32 -luserenv -lversion -lws2_32 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lwinmm -lz -lsicuin -lsicuuc C:\libICU-59.1\GCC64RT\lib\sicudt.a C:\libQT-5.10-dev\build\qtbase\lib\libqtpcre2.a .obj\release\quickplayer_resource_res.o
      mingw32-make[4]: Entering directory 'c:/libQT-5.10-dev/build/qtwinextras/examples/winextras/musicplayer'
      g++ -Wl,-s -static -Wl,-subsystem,windows -o release\musicplayer.exe .obj/release/main.o .obj/release/musicplayer.o .obj/release/volumebutton.o .obj/release/musicplayer_plugin_import.o .obj/release/moc_musicplayer.o .obj/release/moc_volumebutton.o  -lmingw32 -LC:\libQT-5.10-dev\build\qtbase\lib C:\libQT-5.10-dev\build\qtbase\lib\libqtmain.a -LC:\libICU-59.1\GCC64RT\lib -LC:\libQT-5.10-dev\build\qtbase\plugins\styles C:\libQT-5.10-dev\build\qtbase\plugins\styles\libqwindowsvistastyle.a -LC:\libQT-5.10-dev\build\qtmultimedia\plugins\mediaservice C:\libQT-5.10-dev\build\qtmultimedia\plugins\mediaservice\libdsengine.a -lmf -lmfplat -lmfuuid -ld3d9 -ldxva2 -levr -LC:\libQT-5.10-dev\build\qtmultimedia\lib -ldmoguids -lmsdmo -lksuser C:\libQT-5.10-dev\build\qtmultimedia\plugins\mediaservice\libqtmedia_audioengine.a -LC:\libQT-5.10-dev\build\qtmultimedia\plugins\audio C:\libQT-5.10-dev\build\qtmultimedia\plugins\audio\libqtaudio_windows.a -lstrmiids -LC:\libQT-5.10-dev\build\qtmultimedia\plugins\playlistformats C:\libQT-5.10-dev\build\qtmultimedia\plugins\playlistformats\libqtmultimedia_m3u.a -LC:\libQT-5.10-dev\build\qtbase\plugins\platforms C:\libQT-5.10-dev\build\qtbase\plugins\platforms\libqwindows.a -lwinspool -lrpcrt4 C:\libQT-5.10-dev\build\qtbase\lib\libQt5EventDispatcherSupport.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5AccessibilitySupport.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5FontDatabaseSupport.a C:\libQT-5.10-dev\build\qtbase\lib\libqtfreetype.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5ThemeSupport.a -LC:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqicns.a C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqtga.a C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqtiff.a C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqwbmp.a C:\libQT-5.10-dev\build\qtimageformats\plugins\imageformats\libqwebp.a -LC:\libQT-5.10-dev\build\qtbase\plugins\imageformats C:\libQT-5.10-dev\build\qtbase\plugins\imageformats\libqgif.a C:\libQT-5.10-dev\build\qtbase\plugins\imageformats\libqico.a C:\libQT-5.10-dev\build\qtbase\plugins\imageformats\libqjpeg.a -LC:\libQT-5.10-dev\build\qtbase\plugins\bearer C:\libQT-5.10-dev\build\qtbase\plugins\bearer\libqgenericbearer.a C:\libQT-5.10-dev\build\qtbase\plugins\bearer\libqnativewifibearer.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5Widgets.a -luxtheme C:\libQT-5.10-dev\build\qtmultimedia\lib\libQt5Multimedia.a -LC:\libQT-5.10-dev\build\qtwinextras\lib C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a -lshlwapi -ldwmapi C:\libQT-5.10-dev\build\qtbase\lib\libQt5Gui.a -lgdi32 -lcomdlg32 -loleaut32 -limm32 C:\libQT-5.10-dev\build\qtbase\lib\libqtlibpng.a C:\libQT-5.10-dev\build\qtbase\lib\libqtharfbuzz.a C:\libQT-5.10-dev\build\qtbase\lib\libQt5Network.a -ldnsapi -liphlpapi C:\libQT-5.10-dev\build\qtbase\lib\libQt5Core.a -lmpr -lnetapi32 -luserenv -lversion -lws2_32 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lwinmm -lz -lsicuin -lsicuuc C:\libICU-59.1\GCC64RT\lib\sicudt.a C:\libQT-5.10-dev\build\qtbase\lib\libqtpcre2.a .obj\release\musicplayer_resource_res.o
      C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a(qwinthumbnailtoolbar.o):qwinthumbnailtoolbar.cpp:(.text+0x874): undefined reference to `DwmInvalidateIconicBitmaps'
      C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a(qwinthumbnailtoolbar.o):qwinthumbnailtoolbar.cpp:(.text+0x1bab): undefined reference to `DwmSetIconicThumbnail'
      C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a(qwinthumbnailtoolbar.o):qwinthumbnailtoolbar.cpp:(.text+0x1cbf): undefined reference to `DwmSetIconicLivePreviewBitmap'
      collect2.exe: error: ld returned 1 exit status
      mingw32-make[4]: *** [Makefile.Release:75: release\musicplayer.exe] Error 1
      mingw32-make[4]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/examples/winextras/musicplayer'
      mingw32-make[3]: *** [Makefile:36: release] Error 2
      mingw32-make[3]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/examples/winextras/musicplayer'
      mingw32-make[2]: *** [Makefile:68: sub-musicplayer-make_first] Error 2
      mingw32-make[2]: *** Waiting for unfinished jobs....
      C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a(qwinthumbnailtoolbar.o):qwinthumbnailtoolbar.cpp:(.text+0x874): undefined reference to `DwmInvalidateIconicBitmaps'
      C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a(qwinthumbnailtoolbar.o):qwinthumbnailtoolbar.cpp:(.text+0x1bab): undefined reference to `DwmSetIconicThumbnail'
      C:\libQT-5.10-dev\build\qtwinextras\lib\libQt5WinExtras.a(qwinthumbnailtoolbar.o):qwinthumbnailtoolbar.cpp:(.text+0x1cbf): undefined reference to `DwmSetIconicLivePreviewBitmap'
      collect2.exe: error: ld returned 1 exit status
      mingw32-make[4]: *** [Makefile.Release:68: release\quickplayer.exe] Error 1
      mingw32-make[4]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/examples/winextras/quickplayer'
      mingw32-make[3]: *** [Makefile:36: release] Error 2
      mingw32-make[3]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/examples/winextras/quickplayer'
      mingw32-make[2]: *** [Makefile:93: sub-quickplayer-make_first] Error 2
      mingw32-make[2]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/examples/winextras'
      mingw32-make[1]: *** [Makefile:41: sub-winextras-make_first] Error 2
      mingw32-make[1]: Leaving directory 'c:/libQT-5.10-dev/build/qtwinextras/examples'
      mingw32-make: *** [Makefile:68: sub-examples-make_first] Error 2

      relate to recently merged Change #207118.

       

      Reproduced for:
        - Qt5-dev builds using mingw-w64,

      not reproduced for:
        - Qt5-dev builds using mingw-w64 with reverted Change #207118.

        - Qt5-dev builds using ICC and MSVC.

       

      Best,

      Alexander

       

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              sav sav
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes