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

Multimedia examples fail due to missing ffmpeg

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.8.0 Beta2
    • Multimedia
    • None
    • iOS/tvOS/watchOS

    Description

      Steps to reproduce

      • Qt 6.8 beta 2 (from maintenance tool)
      • Open the mediplayer qml example
      • Select iOS device and run cmake
      
      [cmake] Running /Users/ham/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -S /Users/ham/Qt/Examples/Qt-6.8.0/demos/mediaplayer -B /Users/ham/Qt/Examples/Qt-6.8.0/demos/mediaplayer/build/Qt_6_8_0_for_iOS in /Users/ham/Qt/Examples/Qt-6.8.0/demos/mediaplayer/build/Qt_6_8_0_for_iOS.
      [cmake] -- Using system ZLIB.
      [cmake] -- Using Qt bundled PCRE2.
      [cmake] -- Could NOT find EGL (missing: EGL_INCLUDE_DIR HAVE_EGL EGL_LIBRARY) 
      [cmake] -- Using Qt bundled PNG.
      [cmake] -- Using Qt bundled Harfbuzz.
      [cmake] -- Using Qt bundled Freetype.
      [cmake] -- Using Qt bundled Jpeg.
      [cmake] CMake Warning at /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
      [cmake]   Found package configuration file:
      [cmake] 
      [cmake]     /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6QmlMeta/Qt6QmlMetaConfig.cmake
      [cmake] 
      [cmake]   but it set Qt6QmlMeta_FOUND to FALSE so package "Qt6QmlMeta" is considered
      [cmake]   to be NOT FOUND.  Reason given by package:
      [cmake] 
      [cmake]   The following imported targets are referenced, but are missing:
      [cmake]   Qt6::QmlModels Qt6::QmlWorkerScript
      [cmake] 
      [cmake] Call Stack (most recent call first):
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6LabsPlatform/Qt6LabsPlatformDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6LabsPlatform/Qt6LabsPlatformConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6LabsPlatformpluginDependencies.cmake:18 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6LabsPlatformpluginConfig.cmake:51 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlPlugins.cmake:47 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:138 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package)
      [cmake]   CMakeLists.txt:7 (find_package)
      [cmake] 
      [cmake] 
      [cmake] CMake Warning at /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
      [cmake]   Found package configuration file:
      [cmake] 
      [cmake]     /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake
      [cmake] 
      [cmake]   but it set Qt6Quick_FOUND to FALSE so package "Qt6Quick" is considered to
      [cmake]   be NOT FOUND.  Reason given by package:
      [cmake] 
      [cmake]   Qt6Quick could not be found because dependency Qt6QmlMeta could not be
      [cmake]   found.
      [cmake] 
      [cmake]   Configuring with --debug-find-pkg=Qt6QmlMeta might reveal details why the
      [cmake]   package was not found.
      [cmake] 
      [cmake]   Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
      [cmake]   of the path variables that find_package uses to try and find the package.
      [cmake] 
      [cmake] Call Stack (most recent call first):
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6LabsPlatform/Qt6LabsPlatformDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6LabsPlatform/Qt6LabsPlatformConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6LabsPlatformpluginDependencies.cmake:18 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6LabsPlatformpluginConfig.cmake:51 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlPlugins.cmake:47 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:138 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package)
      [cmake]   CMakeLists.txt:7 (find_package)
      [cmake] 
      [cmake] 
      [cmake] CMake Warning at /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
      [cmake]   Found package configuration file:
      [cmake] 
      [cmake]     /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6LabsPlatform/Qt6LabsPlatformConfig.cmake
      [cmake] 
      [cmake]   but it set Qt6LabsPlatform_FOUND to FALSE so package "Qt6LabsPlatform" is
      [cmake]   considered to be NOT FOUND.  Reason given by package:
      [cmake] 
      [cmake]   Qt6LabsPlatform could not be found because dependency Qt6Quick could not be
      [cmake]   found.
      [cmake] 
      [cmake]   Configuring with --debug-find-pkg=Qt6Quick might reveal details why the
      [cmake]   package was not found.
      [cmake] 
      [cmake]   Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
      [cmake]   of the path variables that find_package uses to try and find the package.
      [cmake] 
      [cmake] Call Stack (most recent call first):
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6LabsPlatformpluginDependencies.cmake:18 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6LabsPlatformpluginConfig.cmake:51 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlPlugins.cmake:47 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:138 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package)
      [cmake]   CMakeLists.txt:7 (find_package)
      [cmake] 
      [cmake] 
      [cmake] -- FFmpeg shared libs: 
      [cmake] -- FFmpeg stubs: 
      [cmake] -- Could NOT find FFmpeg (missing: FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS AVCODEC_INCLUDE_DIR AVFORMAT_INCLUDE_DIR AVUTIL_INCLUDE_DIR SWRESAMPLE_INCLUDE_DIR SWSCALE_INCLUDE_DIR) 
      [cmake] CMake Warning at /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
      [cmake]   Found package configuration file:
      [cmake] 
      [cmake]     /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Multimedia/Qt6MultimediaConfig.cmake
      [cmake] 
      [cmake]   but it set Qt6Multimedia_FOUND to FALSE so package "Qt6Multimedia" is
      [cmake]   considered to be NOT FOUND.  Reason given by package:
      [cmake] 
      [cmake]   Qt6Multimedia could not be found because dependency FFmpeg could not be
      [cmake]   found.
      [cmake] 
      [cmake] Call Stack (most recent call first):
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6TextToSpeech/Qt6TextToSpeechDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6TextToSpeech/Qt6TextToSpeechConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6TextToSpeechQmlDependencies.cmake:18 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6TextToSpeechQmlConfig.cmake:51 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlPlugins.cmake:47 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:138 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package)
      [cmake]   CMakeLists.txt:7 (find_package)
      [cmake] 
      [cmake] 
      [cmake] CMake Warning at /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
      [cmake]   Found package configuration file:
      [cmake] 
      [cmake]     /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6TextToSpeech/Qt6TextToSpeechConfig.cmake
      [cmake] 
      [cmake]   but it set Qt6TextToSpeech_FOUND to FALSE so package "Qt6TextToSpeech" is
      [cmake]   considered to be NOT FOUND.  Reason given by package:
      [cmake] 
      [cmake]   Qt6TextToSpeech could not be found because dependency Qt6Multimedia could
      [cmake]   not be found.
      [cmake] 
      [cmake]   Configuring with --debug-find-pkg=Qt6Multimedia might reveal details why
      [cmake]   the package was not found.
      [cmake] 
      [cmake]   Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
      [cmake]   of the path variables that find_package uses to try and find the package.
      [cmake] 
      [cmake] Call Stack (most recent call first):
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6TextToSpeechQmlDependencies.cmake:18 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6TextToSpeechQmlConfig.cmake:51 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlPlugins.cmake:47 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:138 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package)
      [cmake]   CMakeLists.txt:7 (find_package)
      [cmake] 
      [cmake] 
      [cmake] qmldir file not found at "/Users/ham/Qt/Examples/Qt-6.8.0/demos/mediaplayer/build/Qt_6_8_0_for_iOS/MediaControls"
      [cmake] qmldir file not found at "/Users/ham/Qt/Examples/Qt-6.8.0/demos/mediaplayer/build/Qt_6_8_0_for_iOS/Config"
      [cmake] -- Configuring done (2.0s)
      [cmake] CMake Error at /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Multimedia/Qt6QFFmpegMediaPluginTargets.cmake:61 (set_target_properties):
      [cmake]   The link interface of target "Qt6::QFFmpegMediaPlugin" contains:
      [cmake] 
      [cmake]     FFmpeg::avformat
      [cmake] 
      [cmake]   but the target was not found.  Possible reasons include:
      [cmake] 
      [cmake]     * There is a typo in the target name.
      [cmake]     * A find_package call is missing for an IMPORTED target.
      [cmake]     * An ALIAS target is missing.
      [cmake] 
      [cmake] Call Stack (most recent call first):
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Multimedia/Qt6QFFmpegMediaPluginConfig.cmake:54 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicPluginHelpers.cmake:518 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Multimedia/Qt6MultimediaPlugins.cmake:13 (__qt_internal_include_plugin_packages)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Multimedia/Qt6MultimediaConfig.cmake:135 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6TextToSpeech/Qt6TextToSpeechDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6TextToSpeech/Qt6TextToSpeechConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6TextToSpeechQmlDependencies.cmake:18 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/QmlPlugins/Qt6TextToSpeechQmlConfig.cmake:51 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlPlugins.cmake:47 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:138 (include)
      [cmake]   /Users/ham/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:142 (find_dependency)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
      [cmake]   /Users/ham/Qt/6.8.0/ios/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package)
      [cmake]   CMakeLists.txt:7 (find_package)
      [cmake] 
      [cmake] 
      [cmake] -- Generating done (0.1s)
      [cmake] CMake Generate step failed.  Build files cannot be regenerated correctly.
      [cmake] 
      [cmake] The command "/Users/ham/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -S /Users/ham/Qt/Examples/Qt-6.8.0/demos/mediaplayer -B /Users/ham/Qt/Examples/Qt-6.8.0/demos/mediaplayer/build/Qt_6_8_0_for_iOS" terminated with exit code 1.
      [cmake] 
      [cmake] Elapsed time: 00:03.
      

      Attachments

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

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            Harald Meyer Harald Meyer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes