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

[static linking] undefined symbols for ffmpeg plugin

    XMLWordPrintable

Details

    • Linux/Wayland, macOS
    • Multimedia wk 5-6, Multimedia wk 7-8, Multimedia, weeks 9-10, Multimedia, weeks 11-12, Multimedia, weeks 13-14, Multimedia, weeks 15-16, Multimedia, weeks 18-19

    Description

      trying to link the ffmpeg plugin statically gives a lot of undefined symbols for the ffmpeg backend:

        "_av_buffer_create", referenced from:
            QFFmpeg::VideoEncoder::processOne() in libffmpegmediaplugin.a[46](qffmpegvideoencoder.cpp.o)
            allocHWFrame(AVBufferRef*, __CVBuffer* const&) in libffmpegmediaplugin.a[54](qavfsamplebufferdelegate.mm.o)
        "_av_buffer_ref", referenced from:
            QFFmpeg::CodecContext::create(AVStream*, AVFormatContext*, QFFmpeg::CodecContext::VideoCodecCreationPolicy) in libffmpegmediaplugin.a[37](qffmpegcodeccontext.cpp.o)
            QFFmpeg::VideoFrameEncoder::initCodecContext() in libffmpegmediaplugin.a[48](qffmpegvideoframeencoder.cpp.o)
            QFFmpeg::VideoFrameEncoder::initCodecContext() in libffmpegmediaplugin.a[48](qffmpegvideoframeencoder.cpp.o)
            allocHWFrame(AVBufferRef*, __CVBuffer* const&) in libffmpegmediaplugin.a[54](qavfsamplebufferdelegate.mm.o)
      [...]
      

      https://codereview.qt-project.org/c/qt/qtmultimedia/+/613823 contains a reproducer which fails to build (at least on macos and linux)

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-132458
          # Subject Branch Project Status CR V

          Activity

            People

              timblechmann tim blechmann
              timblechmann tim blechmann
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change