[MPlayer-dev-eng] Re: [MPlayer-users] Compilation problem
Diego Biurrun
diego at biurrun.de
Sun Aug 11 15:59:15 CEST 2002
Hi!
This patch was floating around on -users, it sounds reasonable, should
we commit it?
Diego
Steven M. Schultz writes:
> > From: lochon at roulaise.net
> > I'm new to this list, and I report a problem I have when compiling
> > mplayer (any version, afaik).
> >
> > It doesn't link propoerly, because of liba52...
> >
> > libmpcodecs/libmpcodecs.a(ad_a52.o): In function `a52_fillbuff':
> > ad_a52.o(.text+0x126): undefined reference to `crc16_block'
> > libmpcodecs/libmpcodecs.a(ad_a52.o): In function `init':
> > ad_a52.o(.text+0x425): undefined reference to `a52_resample_init'
> > libmpcodecs/libmpcodecs.a(ad_a52.o): In function `decode_audio':
> > ad_a52.o(.text+0x574): undefined reference to `a52_resample'
> > collect2: ld returned 1 exit status
> >
> > So, I have to replace "-Lliba52 -la52" with "liba52/*.o"
>
> What you should do, and I have posted a patch a couple times for this,
> is simply change the Makefile:
>
> liba52/liba52.a
>
> What I think is happening (and it happens to me all the time) is
> that an older version of liba52 is installed on the system in
> /usr/local/lib. Although MPlayer has its own/private liba52/
> directory the system version has priority because it is seen first
> by the linker
>
> This is what I use:
>
> --- Makefile.dist Wed Aug 7 16:29:20 2002
> +++ Makefile Wed Aug 7 16:30:56 2002
> @@ -42,7 +42,7 @@
> VO_LIBS = -Llibvo2 -lvo2
> VO_INC = -Ilibvo2
> else
> -VO_LIBS = -Llibvo -lvo
> +VO_LIBS = libvo/libvo.a
> VO_INC = -Ilibvo
> endif
> V_LIBS = $(X_LIB) $(MP1E_LIB) $(GGI_LIB) $(MLIB_LIB) $(SDL_LIB) $(SVGA_LIB) $(AA_LIB) $(DIRECTFB_LIB)
> @@ -50,7 +50,7 @@
> AO_LIBS = -Llibao2 -lao2
> A_LIBS = $(ALSA_LIB) $(ARTS_LIB) $(NAS_LIB) $(MAD_LIB) $(VORBIS_LIB) $(FAAD_LIB) $(SGIAUDIO_LIB)
>
> -CODEC_LIBS = -Llibmpcodecs -lmpcodecs -Lmp3lib -lMP3 -Lliba52 -la52 -Llibmpeg2 -lmpeg2 $(AV_LIB) $(FAME_LIB) $(XVID_LIB)
> +CODEC_LIBS = -Llibmpcodecs -lmpcodecs -Lmp3lib -lMP3 liba52/liba52.a libmpeg2/libmpeg2.a $(AV_LIB) $(FAME_LIB) $(XVID_LIB)
> COMMON_LIBS = $(CODEC_LIBS) -Llibmpdemux -lmpdemux $(NEW_INPUT_LIB) $(LIB_LOADER) $(A_LIBS) $(CSS_LIB) $(ARCH_LIB) -Lpostproc -lpostproc $(DECORE_LIB) -Llinux -losdep $(TERMCAP_LIB) $(STREAMING_LIB) $(Z_LIB) $(GTK_LIBS) $(PNG_LIB) $(JPEG_LIB) $(GIF_LIB) $(CDPARANOIA_LIB) -lm
> ifeq ($(VIDIX),yes)
> MISC_LIBS += -Llibdha -ldha -Lvidix -lvidix
More information about the MPlayer-dev-eng
mailing list