[FFmpeg-devel] [PATCH]: Video Decoder Acceleration (VDA) HWAccel module for Mac OS X
Sebastien Zwickert
dilaroga at gmail.com
Fri Nov 4 20:47:37 CET 2011
On Nov 3, 2011, at 2:39 PM, Hanspeter Niederstrasser wrote:
> Fresh git pull and this fails to build on OS X 10.7.2:
[…]
> Undefined symbols for architecture x86_64:
> "_kVDADecoderConfiguration_Height", referenced from:
> _ff_vda_create_decoder in vda.o
> "_kVDADecoderConfiguration_Width", referenced from:
> _ff_vda_create_decoder in vda.o
> "_kVDADecoderConfiguration_SourceFormat", referenced from:
> _ff_vda_create_decoder in vda.o
> "_kVDADecoderConfiguration_avcCData", referenced from:
> _ff_vda_create_decoder in vda.o
> "_VDADecoderCreate", referenced from:
> _ff_vda_create_decoder in vda.o
> "_CVPixelBufferGetPixelFormatType", referenced from:
> _vda_decoder_callback in vda.o
> "_CVPixelBufferRetain", referenced from:
> _vda_decoder_callback in vda.o
> "_VDADecoderDestroy", referenced from:
> _ff_vda_destroy_decoder in vda.o
> "_CVPixelBufferRelease", referenced from:
> _ff_vda_destroy_decoder in vda.o
> _ff_vda_release_vda_frame in vda.o
> "_VDADecoderDecode", referenced from:
> _ff_vda_decoder_decode in vda.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make: *** [libavcodec/libavcodec.53.dylib] Error 1
>
> Manually adding "-framework CoreFoundation -framework
> VideoDecodeAcceleration -framework QuartzCore" (copied from configure)
> to the linker command successfully builds libavcodec.dylib. My
> configure line is:
>
> ../configure --prefix=/usr/local/ffmpeg-git --enable-shared
> --disable-static --enable-gpl --enable-version3 --enable-pthreads
> --enable-x11grab --enable-bzlib --enable-libcelt --enable-frei0r
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libopencv --enable-libcdio --enable-libdirac
> --enable-libfreetype --enable-libmodplug --enable-libmp3lame
> --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
> --enable-libspeex --enable-libtheora --enable-libvorbis
> --enable-libvpx --enable-libx264 --enable-libxvid --enable-zlib
> --extra-cflags='-I/sw/include -I/usr/X11/include'
> --extra-libs='-L/sw/lib -L/usr/X11/lib' --cc=clang
>
> and the output from configure says:
>
> Enabled hwaccels:
> h264_vda
>
> Hanspeter
Thanks for your report.
This happens when vda is not explicitly enable/disable in the configure line.
I provided a patch in attachment that fixes the issue. By default, it enables vda
if it is not explicitly disabled in the configure line and if header is found.
Best regards,
Sebastien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-configure-fixes-vda-compilation-issue.patch
Type: application/octet-stream
Size: 1391 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111104/93c092f4/attachment.obj>
-------------- next part --------------
More information about the ffmpeg-devel
mailing list