[FFmpeg-devel] mplayer failed to compile

Zongyao Qu zongyao.qu at gmail.com
Fri Feb 17 05:01:13 CET 2012


although I experienced it with mplayer,
from the error msg, I doubt it is ffmpeg should 
be fixed.

the original post is here 
http://article.gmane.org/gmane.comp.video.
mplayer.user/67694

But I am not a ffmpeg veteran, I am not sure if it is a 
right fix. So please review.

\\\\\\\\\\\\\\\\\\\ ERROR:
in linking, the following error occurs.

Undefined symbols for architecture x86_64:
  "_ff_prores_progressive_scan", referenced from:
      _decode_frame in libavcodec.a(proresdec_lgpl.o)
  "_ff_prores_interlaced_scan", referenced from:
      _decode_frame in libavcodec.a(proresdec_lgpl.o)
  "_ff_prores_dc_codebook", referenced from:
      _decode_slice_plane in libavcodec.a(proresdec_lgpl.o)
  "_ff_prores_lev_to_cb_index", referenced from:
      _decode_slice_plane in libavcodec.a(proresdec_lgpl.o)
  "_ff_prores_run_to_cb_index", referenced from:
      _decode_slice_plane in libavcodec.a(proresdec_lgpl.o)
  "_ff_prores_ac_codebook", referenced from:
      _decode_slice_plane in libavcodec.a(proresdec_lgpl.o)
ld: symbol(s) not found for architecture x86_64

dig a little bit, I found there is something missing in the 
Makefile in /ffmpeg/libavcodec/

since it is a really tiny missing, I post the patch here.

\\\\\\\\\\\\\\\\\\\ PATCH:
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 183b6c1..3866f2e 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -330,7 +330,7 @@ OBJS-$(CONFIG_PNG_ENCODER)             += png.o
pngenc.o
 OBJS-$(CONFIG_PPM_DECODER)             += pnmdec.o pnm.o
 OBJS-$(CONFIG_PPM_ENCODER)             += pnmenc.o pnm.o
 OBJS-$(CONFIG_PRORES_DECODER)          += proresdec2.o
-OBJS-$(CONFIG_PRORES_LGPL_DECODER)     += proresdec_lgpl.o proresdsp.o
+OBJS-$(CONFIG_PRORES_LGPL_DECODER)     += proresdec_lgpl.o proresdsp.o
proresdata.o
 OBJS-$(CONFIG_PRORES_ENCODER)          += proresenc_anatoliy.o
 OBJS-$(CONFIG_PRORES_ANATOLIY_ENCODER) += proresenc_anatoliy.o
 OBJS-$(CONFIG_PRORES_KOSTYA_ENCODER)   += proresenc_kostya.o
proresdata.o proresdsp.o



More information about the ffmpeg-devel mailing list