[MPlayer-dev-eng] [PATCH] Problem using libavcodec.so
Panagiotis Issaris
takis at lumumba.uhasselt.be
Mon Aug 15 17:53:12 CEST 2005
Hi,
For some time now, mencoder CVS failed to link dynamically to libavcodec.so:
cc -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4
-march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer
-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I.
-I/usr/include/freetype2 -I/usr/X11R6/include -o mencoder
mencoder.o mp_msg-mencoder.o asxparser.o codec-cfg.o cpudetect.o edl.o
find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o playtree.o
playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o
divx4_vbr.o libvo/aclib.o libvo/font_load.o libvo/font_load_ft.o
libvo/osd.o libvo/sub.o parser-mecmd.o xvid_vbr.o
libmpcodecs/libmpencoders.a -lmp3lame libmpcodecs/libmpcodecs.a
loader/libloader.a loader/dshow/libDS_Filter.a
loader/dmo/libDMO_Filter.a libaf/libaf.a libmpdemux/libmpdemux.a
input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2
-lmpdvdkit -lavcodec -ltheora -logg -lmp3lame -lxvidcore -lm
-ldts -lm -lpng -lz -lz -ljpeg -lasound -ldl -lpthread
-L/usr/local/src/x264 -lx264 -lm -lpthread -lfaac -lfreetype -lz
-ltermcap /usr/local/src/live/liveMedia/libliveMedia.a
/usr/local/src/live/groupsock/libgroupsock.a
/usr/local/src/live/UsageEnvironment/libUsageEnvironment.a
/usr/local/src/live/BasicUsageEnvironment/libBasicUsageEnvironment.a
-lstdc++ -lnsl -lungif -lfontconfig libfaad2/libfaad2.a
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a
tremor/libvorbisidec.a -Wl,-z,noexecstack -lpthread -ldl -rdynamic
-lm
libmpcodecs/libmpencoders.a(ae.o)(.text+0xb9): In function
`new_audio_encoder':
: undefined reference to `mpae_init_lavc'
collect2: ld returned 1 exit status
This seems to be caused by libmpencoders.a not containing ae_lavc.o.
The attached patch contains a fix for this.
With friendly regards,
Takis
--
OpenPGP key: http://lumumba.luc.ac.be/takis/takis_public_key.txt
fingerprint: 6571 13A3 33D9 3726 F728 AA98 F643 B12E ECF3 E029
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1039
diff -w -b -B -u -r1.1039 configure
--- configure 14 Aug 2005 07:02:00 -0000 1.1039
+++ configure 15 Aug 2005 15:42:26 -0000
@@ -7023,6 +7023,7 @@
AV_LIB = $_ld_libavformat $_ld_libavcodec $_ld_libavutil
CONFIG_LIBAVUTIL = $_libavutil_required
CONFIG_LIBAVCODEC = $_libavcodec
+CONFIG_LIBAVCODECSO = $_libavcodecso
CONFIG_LIBAVFORMAT = $_libavformat
ZORAN = $_zr
FAME = $_fame
Index: libmpcodecs/Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/Makefile,v
retrieving revision 1.147
diff -w -b -B -u -r1.147 Makefile
--- libmpcodecs/Makefile 1 Aug 2005 20:16:56 -0000 1.147
+++ libmpcodecs/Makefile 15 Aug 2005 15:42:26 -0000
@@ -192,6 +192,10 @@
ENCODER_SRCS += ae_lavc.c
endif
+ifeq ($(CONFIG_LIBAVCODECSO),yes)
+ENCODER_SRCS += ae_lavc.c
+endif
+
ifeq ($(MUSEPACK),yes)
AUDIO_SRCS += ad_mpc.c
endif
More information about the MPlayer-dev-eng
mailing list