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

WIN64: 'cannot find -lmockserviceplugin...' errors for static QtMultimedia autotest builds using mingw-w64 and MSVC

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: 5.11
    • Fix Version/s: None
    • Component/s: Build System, Multimedia
    • Labels:
      None
    • Environment:

      Description

      Hello, everyone,

       

      Got errors for builds using mingw-w64 and MSVC:

      mingw32-make[6]: Entering directory 'C:/libQT-5.11-dev/build/qtmultimedia/tests/auto/unit/qmediaserviceprovider/test'
      g++ -Wl,-s -mthreads -static -Wl,-subsystem,console -o ..\release\tst_qmediaserviceprovider.exe .obj/release/tst_qmediaserviceprovider.o .obj/release/tst_qmediaserviceprovider_plugin_import.o  -LC:\libQT-5.11-dev\build\qtmultimedia\plugins\mediaservice C:\libQT-5.11-dev\build\qtmultimedia\plugins\mediaservice\libdsengine.a -lmf -lmfplat -lmfuuid -ld3d9 -ldxva2 -levr -LC:\libQT-5.11-dev\build\qtmultimedia\lib -LC:\libQT-5.11-dev\build\qtbase\lib -LC:\libICU-61.1-dev\GCC64RT\lib -LC:\libOPENSSL-1.1.1-dev\GCC64RT\lib -ldmoguids -lmsdmo -lksuser -lmockserviceplugin1 -lmockserviceplugin2 -lmockserviceplugin3 -lmockserviceplugin4 -lmockserviceplugin5 C:\libQT-5.11-dev\build\qtmultimedia\plugins\mediaservice\libqtmedia_audioengine.a -LC:\libQT-5.11-dev\build\qtmultimedia\plugins\audio C:\libQT-5.11-dev\build\qtmultimedia\plugins\audio\libqtaudio_windows.a -lstrmiids -LC:\libQT-5.11-dev\build\qtmultimedia\plugins\playlistformats C:\libQT-5.11-dev\build\qtmultimedia\plugins\playlistformats\libqtmultimedia_m3u.a -LC:\libQT-5.11-dev\build\qtbase\plugins\platforms C:\libQT-5.11-dev\build\qtbase\plugins\platforms\libqwindows.a -lwinspool -lshlwapi C:\libQT-5.11-dev\build\qtbase\lib\libQt5EventDispatcherSupport.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5FontDatabaseSupport.a C:\libQT-5.11-dev\build\qtbase\lib\libqtfreetype.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5ThemeSupport.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5AccessibilitySupport.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5VulkanSupport.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5WindowsUIAutomationSupport.a -LC:\libQT-5.11-dev\build\qtimageformats\plugins\imageformats C:\libQT-5.11-dev\build\qtimageformats\plugins\imageformats\libqicns.a C:\libQT-5.11-dev\build\qtimageformats\plugins\imageformats\libqtga.a C:\libQT-5.11-dev\build\qtimageformats\plugins\imageformats\libqtiff.a C:\libQT-5.11-dev\build\qtimageformats\plugins\imageformats\libqwbmp.a C:\libQT-5.11-dev\build\qtimageformats\plugins\imageformats\libqwebp.a -LC:\libQT-5.11-dev\build\qtbase\plugins\imageformats C:\libQT-5.11-dev\build\qtbase\plugins\imageformats\libqgif.a C:\libQT-5.11-dev\build\qtbase\plugins\imageformats\libqico.a C:\libQT-5.11-dev\build\qtbase\plugins\imageformats\libqjpeg.a -LC:\libQT-5.11-dev\build\qtbase\plugins\bearer C:\libQT-5.11-dev\build\qtbase\plugins\bearer\libqgenericbearer.a -LC:\libQT-5.11-dev\build\qtbase\plugins\styles C:\libQT-5.11-dev\build\qtbase\plugins\styles\libqwindowsvistastyle.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5Widgets.a -luxtheme -ldwmapi C:\libQT-5.11-dev\build\qtmultimedia\lib\libQt5Multimedia.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5Gui.a -lgdi32 -lcomdlg32 -loleaut32 -limm32 C:\libQT-5.11-dev\build\qtbase\lib\libqtlibpng.a C:\libQT-5.11-dev\build\qtbase\lib\libqtharfbuzz.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5Network.a -ldnsapi -liphlpapi -lcrypt32 C:\libOPENSSL-1.1.1-dev\GCC64RT\lib\libssl.dll.a C:\libOPENSSL-1.1.1-dev\GCC64RT\lib\libcrypto.dll.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5Test.a C:\libQT-5.11-dev\build\qtbase\lib\libQt5Core.a -lmpr -lnetapi32 -luserenv -lversion -lws2_32 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lwinmm -lz -lsicuin -lsicuuc -lsicudt C:\libQT-5.11-dev\build\qtbase\lib\libqtpcre2.a
      C:/ProgramData/Mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmockserviceplugin1
      C:/ProgramData/Mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmockserviceplugin2
      C:/ProgramData/Mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmockserviceplugin3
      C:/ProgramData/Mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmockserviceplugin4
      C:/ProgramData/Mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmockserviceplugin5
      collect2.exe: error: ld returned 1 exit status
      mingw32-make[6]: *** [Makefile.Release:64: ..\release\tst_qmediaserviceprovider.exe] Error 1
      mingw32-make[6]: Leaving directory 'C:/libQT-5.11-dev/build/qtmultimedia/tests/auto/unit/qmediaserviceprovider/test'
      mingw32-make[5]: *** [Makefile:36: release] Error 2
      mingw32-make[5]: Leaving directory 'C:/libQT-5.11-dev/build/qtmultimedia/tests/auto/unit/qmediaserviceprovider/test'
      mingw32-make[4]: *** [Makefile:171: sub-test-make_first] Error 2
      mingw32-make[4]: Leaving directory 'C:/libQT-5.11-dev/build/qtmultimedia/tests/auto/unit/qmediaserviceprovider'
      mingw32-make[3]: *** [Makefile.multimedia:523: sub-qmediaserviceprovider-make_first] Error 2
      mingw32-make[3]: Leaving directory 'C:/libQT-5.11-dev/build/qtmultimedia/tests/auto/unit'
      mingw32-make[2]: *** [Makefile:40: sub-multimedia-pro-make_first] Error 2
      mingw32-make[2]: Leaving directory 'C:/libQT-5.11-dev/build/qtmultimedia/tests/auto/unit'
      mingw32-make[1]: *** [Makefile:43: sub-unit-make_first] Error 2
      mingw32-make[1]: Leaving directory 'C:/libQT-5.11-dev/build/qtmultimedia/tests/auto'
      mingw32-make: *** [Makefile:41: sub-auto-make_first] Error 2
      

       

      The same for tests:

      qmediatimerange
      qmetadatareadercontrol
      qmetadatawritercontrol
      qradiodata
      qradiotuner
      qvideoencodersettingscontrol
      qvideoframe
      qvideosurfaceformat

      etc. from QtMultimedia, and
      audio-visualizer-qml
      transparency-qml
      from Qt3D.

       

      Reproduced for:

      • static builds using mingw-w64 and MSVC with '-developer-build' flag,

      not reproduced for:

      • shared builds using mingw-w64 and MSVC with '-developer-build' flag.

       

       

      Best,

      Alexander

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              sav sav
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes