[Bug 751838] New: Compilation fails with ffmpeg h264_vda build

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jul 2 07:05:02 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=751838

            Bug ID: 751838
           Summary: Compilation fails with ffmpeg h264_vda build
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Mac OS
            Status: NEW
          Severity: blocker
          Priority: Normal
         Component: gst-libav
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: hfink at toolsonair.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

After the switch to ffmpeg, building gst-libav fails on OSX with the following
error: 

...
build    02-Jul-2015 13:31:39    libtool: link: clang  -o .libs/libgstlibav.so
-bundle  .libs/libgstlibav_la-gstav.o .libs/libgstlibav_la-gstavprotocol.o
.libs/libgstlibav_la-gstavcodecmap.o .libs/libgstlibav_la-gstavutils.o
.libs/libgstlibav_la-gstavaudenc.o .libs/libgstlibav_la-gstavvidenc.o
.libs/libgstlibav_la-gstavauddec.o .libs/libgstlibav_la-gstavviddec.o
.libs/libgstlibav_la-gstavcfg.o .libs/libgstlibav_la-gstavdemux.o
.libs/libgstlibav_la-gstavmux.o .libs/libgstlibav_la-gstavdeinterlace.o  
-L/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib
../../gst-libs/ext/libav/libavformat/libavformat.a
../../gst-libs/ext/libav/libavcodec/libavcodec.a
../../gst-libs/ext/libav/libswresample/libswresample.a
../../gst-libs/ext/libav/libavutil/libavutil.a
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libgstpbutils-1.0.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libgstvideo-1.0.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libgstaudio-1.0.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libgsttag-1.0.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/liborc-0.4.dylib
-lpthread
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libgstbase-1.0.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libgstreamer-1.0.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libgmodule-2.0.dylib
-ldl
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libgobject-2.0.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libffi.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libglib-2.0.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libintl.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libiconv.dylib
-lc
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libz.dylib
/Users/Administrator/bamboo-agent-home/xml-data/build-dir/GST-GST-JOB1/cerbero-home/dist/darwin_universal/lib/libbz2.dylib
 -g -Os -arch x86_64 -m64 -mmacosx-version-min=10.8 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-Wl,-read_only_relocs -Wl,suppress -Wl,-headerpad_max_install_names -arch
x86_64 -m64 -Wl,-arch -Wl,x86_64 -mmacosx-version-min=10.8 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
  -Wl,-exported_symbols_list,.libs/libgstlibav-symbols.expsym
build    02-Jul-2015 13:31:39    ld: warning: -read_only_relocs cannot be used
with x86_64
build    02-Jul-2015 13:31:39    Undefined symbols for architecture x86_64:
build    02-Jul-2015 13:31:39      "_CVPixelBufferGetBaseAddress", referenced
from:
build    02-Jul-2015 13:31:39          _vdadec_decode in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferGetBaseAddressOfPlane",
referenced from:
build    02-Jul-2015 13:31:39          _vdadec_decode in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferGetBytesPerRow", referenced
from:
build    02-Jul-2015 13:31:39          _vdadec_decode in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferGetBytesPerRowOfPlane",
referenced from:
build    02-Jul-2015 13:31:39          _vdadec_decode in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferGetPlaneCount", referenced
from:
build    02-Jul-2015 13:31:39          _vdadec_decode in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferIsPlanar", referenced from:
build    02-Jul-2015 13:31:39          _vdadec_decode in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferLockBaseAddress", referenced
from:
build    02-Jul-2015 13:31:39          _vdadec_decode in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferRelease", referenced from:
build    02-Jul-2015 13:31:39          _release_buffer in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferRetain", referenced from:
build    02-Jul-2015 13:31:39          _vdadec_decode in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_CVPixelBufferUnlockBaseAddress",
referenced from:
build    02-Jul-2015 13:31:39          _release_buffer in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_ff_vda_create_decoder", referenced from:
build    02-Jul-2015 13:31:39          _vdadec_init in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_ff_vda_destroy_decoder", referenced from:
build    02-Jul-2015 13:31:39          _vdadec_init in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39          _vdadec_close in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39      "_kCFCoreFoundationVersionNumber",
referenced from:
build    02-Jul-2015 13:31:39          _vdadec_init in
libavcodec.a(vda_h264_dec.o)
build    02-Jul-2015 13:31:39    ld: symbol(s) not found for architecture
x86_64

... 

This comes from compiling (and then failing to link) ffmpeg's h264_vda which
should have been disabled by passing --disable-hwaccels to ffmpeg in the first
place. 

Simple solution is to explicitly disable using VDA (VideoDecoderAcceleration)
in the ffmpeg config stage. Note that VDA is going to be deprecated in 10.11
anyway. See attached patch.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list