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

qtmultimedia: qffmpegdemuxer.cpp fails to compile on MSVC 2022 c++20

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.9
    • Multimedia
    • None

    Description

      While trying to integrate https://codereview.qt-project.org/c/qt/qt5/+/567093 there was a build fail on:

      agent:2024/09/12 07:59:09 build.go:404: FAILED: src/plugins/multimedia/ffmpeg/CMakeFiles/QFFmpegMediaPlugin.dir/RelWithDebInfo/playbackengine/qffmpegdemuxer.cpp.obj 
      agent:2024/09/12 07:59:09 build.go:404: sccache C:\PROGRA~1\MICROS~3\2022\PROFES~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo /TP -DNOMINMAX -DQFFmpegMediaPlugin_EXPORTS -DQT_COMPILING_FFMPEG -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_AS_CONST=1 -DQT_NO_CONTEXTLESS_CONNECT=1 -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_PLUGIN -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -DCMAKE_INTDIR=\"RelWithDebInfo\" -IC:\Users\qt\work\qt\qtmultimedia_build\src\plugins\multimedia\ffmpeg\QFFmpegMediaPlugin_autogen\include_RelWithDebInfo -IC:\Users\qt\work\qt\qtmultimedia\src\plugins\multimedia\ffmpeg -IC:\Users\qt\work\qt\qtmultimedia_build\src\plugins\multimedia\ffmpeg -IC:\Users\qt\work\qt\qtmultimedia_build\include -IC:\Users\qt\work\qt\qtmultimedia\src\plugins\multimedia\ffmpeg\..\windows -IC:\Users\qt\work\qt\qtmultimedia_build\src\multimedia -IC:\Users\qt\work\qt\qtmultimedia_build\include\QtMultimedia\6.9.0 -IC:\Users\qt\work\qt\qtmultimedia_build\include\QtMultimedia\6.9.0\QtMultimedia -IC:\Users\qt\work\qt\qtmultimedia_build\include\QtMultimedia -external:IC:\Users\qt\work\install\include\QtCore\6.9.0 -external:IC:\Users\qt\work\install\include\QtCore\6.9.0\QtCore -external:IC:\Users\qt\work\install\include\QtCore -external:IC:\Users\qt\work\install\include -external:IC:\Users\qt\work\install\mkspecs\win32-msvc -external:IC:\Users\qt\work\install\include\QtGui\6.9.0 -external:IC:\Users\qt\work\install\include\QtGui\6.9.0\QtGui -external:IC:\Users\qt\work\install\include\QtGui -external:IC:\VulkanSDK\1.2.182.0\Include -external:IC:\Users\qt\work\install\include\QtNetwork -external:IC:\FFmpeg-n7.0.2\build\msvc\installed\include -external:W0 /DWIN32 /D_WINDOWS /GR /Z7     /DNDEBUG -O2 -Ob3 -std:c++20 -MD /W3 -Zc:__cplusplus -permissive- -utf-8 /WX -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw /EHs-c- /wd4530 /wd4577 /showIncludes /Fosrc\plugins\multimedia\ffmpeg\CMakeFiles\QFFmpegMediaPlugin.dir\RelWithDebInfo\playbackengine\qffmpegdemuxer.cpp.obj /Fdsrc\plugins\multimedia\ffmpeg\CMakeFiles\QFFmpegMediaPlugin.dir\RelWithDebInfo\ /FS -c C:\Users\qt\work\qt\qtmultimedia\src\plugins\multimedia\ffmpeg\playbackengine\qffmpegdemuxer.cpp
      agent:2024/09/12 07:59:09 build.go:404: C:\Users\qt\work\qt\qtmultimedia\src\plugins\multimedia\ffmpeg\playbackengine\qffmpegdemuxer.cpp(37): error C2220: the following warning is treated as an error
      agent:2024/09/12 07:59:09 build.go:404: C:\Users\qt\work\qt\qtmultimedia\src\plugins\multimedia\ffmpeg\playbackengine\qffmpegdemuxer.cpp(37): warning C4996: 'av_fmt_ctx_get_duration_estimation_method': was declared deprecated
      

      Full log:https://testresults.qt.io/coin/api/log/qt/qtmultimedia/b04ccc2e8a07c29a5fc2014c1261c940bafb96ab/WindowsWindows_11_23H2x86_64WindowsWindows_11_23H2x86_64MSVC2022qtci-windows-11_23H2-x86_64-53-9e1921DebugAndRelease_Sccache_UseConfigure_WarningsAreErrors/83d91e4ea58b6d1dcc2a46d2260bb492ac8a98b9/build_1726121160/log.txt.gz

      Attachments

        Issue Links

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

          Activity

            People

              mikko.hallamaa Mikko Hallamaa
              jujokini Jukka Jokiniva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes