[Libav-user] FFmpeg 2.1.3 and Git HEAD builds fail on OS X

Lucas Soltic lucas.soltic at orange.fr
Wed Feb 19 23:17:54 CET 2014


Le 19 févr. 2014 à 22:51, Carl Eugen Hoyos <cehoyos at ag.or.at> a écrit :

> Lucas Soltic <lucas.soltic at ...> writes:
> 
>> Ok. I did "make distclean" before using this configure line:
>> configure --disable-encoders --disable-decoders --disable-yasm 
>> --enable-shared --disable-static
> 
>> Undefined symbols for architecture x86_64:
>>  "_ff_h263dsp_init", referenced from:
>>      _ff_h263_decode_init in h263dec.o
> 
> The relevant file libavcodec/h263dsp.o gets compiled 
> here because config.mak defines H263DSP here with 
> your configure line and this forces libavcodec/Makfile 
> to enable compilation of libavcodec/h263dsp.o:
> 
> $ make distclean
> $ git pull
> $ configure --disable-encoders --disable-decoders --disable-yasm \
> --enable-shared --disable-static
> $ grep H263DSP config.mak
> CONFIG_H263DSP=yes
> $ make ffmpeg
> $ ls libavcodec/h263dsp.o
> libavcodec/h263dsp.o
> 
> Carl Eugen

So what am I supposed to do..?
Executing the same commands as you gives me the following:
~/ffmpeg $ git pull
Updating 0a30ad3..ca9f7e1
Fast-forward
 doc/muxers.texi      |  2 +-
 libavcodec/hevc.c    | 30 ++++++++++++++++--------------
 libavcodec/hevc_ps.c |  2 +-
 3 files changed, 18 insertions(+), 16 deletions(-)
~/ffmpeg $ cd ../ffbuild
~/ffbuild $ make distclean
~/ffbuild $ ../ffmpeg/configure --disable-encoders --disable-decoders --disable-yasm --enable-shared --disable-static
~/ffbuild $ grep H263DSP config.mak
!CONFIG_H263DSP=yes
~/ffbuild $ make ffmpeg
[...]
(link error here)
~/ffbuild $ make ffmpeg V=1
gcc -dynamiclib -Wl,-single_module -Wl,-install_name,/usr/local/lib/libavcodec.55.dylib,-current_version,55.52.102,-compatibility_version,55 -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-dynamic,-search_paths_first -Qunused-arguments -o libavcodec/libavcodec.55.dylib libavcodec/aac_ac3_parser.o libavcodec/aac_adtstoasc_bsf.o libavcodec/aac_parser.o libavcodec/aacadtsdec.o libavcodec/ac3_parser.o libavcodec/ac3tab.o libavcodec/adx.o libavcodec/adx_parser.o libavcodec/allcodecs.o libavcodec/audioconvert.o libavcodec/avfft.o libavcodec/avpacket.o libavcodec/avpicture.o libavcodec/bitstream.o libavcodec/bitstream_filter.o libavcodec/bmp_parser.o libavcodec/cabac.o libavcodec/cavs_parser.o libavcodec/chomp_bsf.o libavcodec/codec_desc.o libavcodec/cook_parser.o libavcodec/dca.o libavcodec/dca_parser.o libavcodec/dct.o libavcodec/dct32_fixed.o libavcodec/dct32_float.o libavcodec/dirac.o libavcodec/dirac_parser.o libavcodec/dnxhd_parser.o libavcodec/dnxhddata.o libavcodec/dpx_parser.o libavcodec/dsputil.o libavcodec/dump_extradata_bsf.o libavcodec/dv_profile.o libavcodec/dvbsub_parser.o libavcodec/dvd_nav_parser.o libavcodec/dvdsub_parser.o libavcodec/elbg.o libavcodec/error_resilience.o libavcodec/faanidct.o libavcodec/fft_fixed.o libavcodec/fft_fixed_32.o libavcodec/fft_float.o libavcodec/fft_init_table.o libavcodec/flac.o libavcodec/flac_parser.o libavcodec/flacdata.o libavcodec/fmtconvert.o libavcodec/golomb.o libavcodec/gsm_parser.o libavcodec/h261_parser.o libavcodec/h263.o libavcodec/h263_parser.o libavcodec/h263dec.o libavcodec/h264.o libavcodec/h264_cabac.o libavcodec/h264_cavlc.o libavcodec/h264_direct.o libavcodec/h264_loopfilter.o libavcodec/h264_mp4toannexb_bsf.o libavcodec/h264_parser.o libavcodec/h264_ps.o libavcodec/h264_refs.o libavcodec/h264_sei.o libavcodec/h264chroma.o libavcodec/h264dsp.o libavcodec/h264idct.o libavcodec/h264pred.o libavcodec/h264qpel.o libavcodec/hevc.o libavcodec/hevc_cabac.o libavcodec/hevc_filter.o libavcodec/hevc_mvs.o libavcodec/hevc_parser.o libavcodec/hevc_ps.o libavcodec/hevc_refs.o libavcodec/hevc_sei.o libavcodec/hevcdsp.o libavcodec/hevcpred.o libavcodec/hpeldsp.o libavcodec/iff.o libavcodec/imgconvert.o libavcodec/imx_dump_header_bsf.o libavcodec/ituh263dec.o libavcodec/jrevdct.o libavcodec/latm_parser.o libavcodec/log2_tab.o libavcodec/mathtables.o libavcodec/mjpeg.o libavcodec/mjpeg2jpeg_bsf.o libavcodec/mjpeg_parser.o libavcodec/mjpega_dump_header_bsf.o libavcodec/mlp.o libavcodec/mlp_parser.o libavcodec/movsub_bsf.o libavcodec/mp3_header_decompress_bsf.o libavcodec/mpeg12.o libavcodec/mpeg12data.o libavcodec/mpeg4audio.o libavcodec/mpeg4video.o libavcodec/mpeg4video_parser.o libavcodec/mpeg4videodec.o libavcodec/mpegaudio_parser.o libavcodec/mpegaudiodata.o libavcodec/mpegaudiodecheader.o libavcodec/mpegvideo.o libavcodec/mpegvideo_motion.o libavcodec/mpegvideo_parser.o libavcodec/msmpeg4.o libavcodec/msmpeg4data.o libavcodec/noise_bsf.o libavcodec/options.o libavcodec/parser.o libavcodec/png_parser.o libavcodec/pnm.o libavcodec/pnm_parser.o libavcodec/pthread.o libavcodec/pthread_frame.o libavcodec/pthread_slice.o libavcodec/raw.o libavcodec/rawdec.o libavcodec/rdft.o libavcodec/remove_extradata_bsf.o libavcodec/resample.o libavcodec/resample2.o libavcodec/rv34_parser.o libavcodec/simple_idct.o libavcodec/tak.o libavcodec/tak_parser.o libavcodec/utils.o libavcodec/vc1.o libavcodec/vc1_parser.o libavcodec/vc1data.o libavcodec/videodsp.o libavcodec/vorbis_data.o libavcodec/vorbis_parser.o libavcodec/vp3_parser.o libavcodec/vp8_parser.o libavcodec/vp9_parser.o libavcodec/x86/constants.o libavcodec/x86/dct_init.o libavcodec/x86/dsputil_init.o libavcodec/x86/dsputil_mmx.o libavcodec/x86/dsputil_x86.o libavcodec/x86/fft_init.o libavcodec/x86/fmtconvert_init.o libavcodec/x86/fpel_mmx.o libavcodec/x86/h264_intrapred_init.o libavcodec/x86/h264_qpel.o libavcodec/x86/h264chroma_init.o libavcodec/x86/h264dsp_init.o libavcodec/x86/hpeldsp_init.o libavcodec/x86/hpeldsp_mmx.o libavcodec/x86/idct_mmx_xvid.o libavcodec/x86/idct_sse2_xvid.o libavcodec/x86/mpegvideo.o libavcodec/x86/rnd_mmx.o libavcodec/x86/simple_idct.o libavcodec/x86/videodsp_init.o libavcodec/xiph.o -lavutil -liconv -lm -lbz2 -lz -pthread 
ld: warning: directory not found for option '-Llibavresample'
ld: warning: directory not found for option '-Llibpostproc'
Undefined symbols for architecture x86_64:
  "_ff_h263dsp_init", referenced from:
      _ff_h263_decode_init in h263dec.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.55.dylib] Error 1
~/ffbuild $ ls libavcodec/h263dsp.o
ls: libavcodec/h263dsp.o: No such file or directory

Lucas


More information about the Libav-user mailing list