[FFmpeg-trac] #4238(build system:new): AVFoundation indev is allowed on OS X 10.7 but uses CoreGraphics framework which is 10.8 only

FFmpeg trac at avcodec.org
Fri Jan 9 04:43:15 CET 2015


#4238: AVFoundation indev is allowed on OS X 10.7 but uses CoreGraphics framework
which is 10.8 only
--------------------------------------+----------------------------------
             Reporter:  nieder        |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  build system  |                  Version:  2.5.2
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 On OS X 10.7, the AVFoundation is detected:

 {{{
 Enabled indevs:
 avfoundation        libcdio            x11grab_xcb
 lavfi            qtkit
 }}}

 However, it then sets a linker flag for the CoreGraphics framework that
 doesn't exist on 10.7 (it's 10.8 and above):
 {{{
 avfoundation_indev=yes
 avfoundation_indev_extralibs='-Wl,-framework,CoreVideo
 -Wl,-framework,Foundation -Wl,-framework,AVFoundation
 -Wl,-framework,CoreMedia -Wl,-framework,CoreGraphics'
 avfoundation_indev_select=avfoundation
 }}}

 (The CoreGraphics framework used to be a subcomponent of
 ApplicationServices before 10.8, but the linker flag as provided doesn't
 help there).

 The search for CoreGraphics causes a failure when linking
 libavutil.54.dylib:

  gcc -dynamiclib -Wl,-single_module
 -Wl,-install_name,/sw/lib/ffmpeg-2.4/lib/libavutil.54.dylib,-current_version,54.15.100,-compatibility_version,54
 -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample
 -Llibavutil -Llibpostproc -Llibswscale -Llibswresample
 -L/sw/lib/libspeex1/lib -L/sw/lib/libopenjpeg -L/sw/lib -L/usr/X11R6/lib
 -lX11 -lXext  -Wl,-dynamic,-search_paths_first -Qunused-arguments -o
 libavutil/libavutil.54.dylib libavutil/adler32.o libavutil/aes.o
 libavutil/atomic.o libavutil/audio_fifo.o libavutil/avstring.o
 libavutil/base64.o libavutil/blowfish.o libavutil/bprint.o
 libavutil/buffer.o libavutil/cast5.o libavutil/channel_layout.o
 libavutil/cpu.o libavutil/crc.o libavutil/des.o libavutil/dict.o
 libavutil/display.o libavutil/downmix_info.o libavutil/error.o
 libavutil/eval.o libavutil/fifo.o libavutil/file.o libavutil/file_open.o
 libavutil/fixed_dsp.o libavutil/float_dsp.o libavutil/frame.o
 libavutil/hash.o libavutil/hmac.o libavutil/imgutils.o libavutil/intmath.o
 libavutil/lfg.o libavutil/lls.o libavutil/log.o libavutil/log2_tab.o
 libavutil/lzo.o libavutil/mathematics.o libavutil/md5.o libavutil/mem.o
 libavutil/murmur3.o libavutil/opt.o libavutil/parseutils.o
 libavutil/pixdesc.o libavutil/pixelutils.o libavutil/random_seed.o
 libavutil/rational.o libavutil/rc4.o libavutil/ripemd.o
 libavutil/samplefmt.o libavutil/sha.o libavutil/sha512.o
 libavutil/stereo3d.o libavutil/threadmessage.o libavutil/time.o
 libavutil/timecode.o libavutil/tree.o libavutil/utils.o
 libavutil/x86/cpu.o libavutil/x86/cpuid.o libavutil/x86/emms.o
 libavutil/x86/float_dsp.o libavutil/x86/float_dsp_init.o
 libavutil/x86/lls.o libavutil/x86/lls_init.o libavutil/x86/pixelutils.o
 libavutil/x86/pixelutils_init.o libavutil/xga_font_data.o libavutil/xtea.o
 -lXv -lX11 -lXext -Wl,-framework,QTKit -Wl,-framework,Foundation
 -Wl,-framework,QuartzCore -Wl,-framework,CoreVideo
 -Wl,-framework,Foundation -Wl,-framework,AVFoundation
 -Wl,-framework,CoreMedia -Wl,-framework,CoreGraphics
 -Wl,-framework,CoreFoundation -Wl,-framework,VideoDecodeAcceleration
 -Wl,-framework,QuartzCore -liconv -L/usr/X11/lib -lxcb -L/usr/X11/lib
 -lxcb-shm -lxcb -L/usr/X11/lib -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb
 -L/usr/X11/lib -lxcb-shape -lxcb -lX11 -lcdio_paranoia -lcdio_cdda -lcdio
 -L/sw/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lzvbi -L/sw/lib -lzmq
 -lxvidcore -L/sw/lib -lx265 -L/sw/lib -lx264 -lpthread -L/sw/lib -lwebp
 -lwavpack -lvpx -lvpx -lvpx -lvpx -lvorbisenc -lvorbis -logg -L/sw/lib
 -lvidstab -ltwolame -ltwolame -ltheoraenc -ltheoradec -logg
 -L/sw/lib/libspeex1/lib -lspeex -L/sw/lib -lschroedinger-1.0 -lpthread
 -loil-0.3 -L/sw/lib -lrtmp -lz -lssl -lcrypto -lz -lcrypto -lz -L/sw/lib
 -lquvi -L/sw/lib -lopus -lopenjpeg -DOPJ_STATIC -lopencore-amrwb
 -lopencore-amrnb -lmp3lame -L/sw/lib -lmodplug -lgsm -lgme -lstdc++
 -L/sw/lib -lfribidi -L/sw/lib -lfreetype -L/sw/lib -lfontconfig -L/sw/lib
 -lcaca -lcelt0 -lcelt0 -L/sw/lib -lbs2b -L/sw/lib -lbluray -L/sw/lib -lass
 -lm -llzma -lbz2 -lz -pthread
  ld: warning: directory not found for option '-Llibavresample'
  ld: framework not found CoreGraphics

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4238>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list