Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#300 closed defect (invalid)

ae.c: undefined reference to `mpae_init_lavc'

Reported by: impulze@… Owned by: diego@…
Priority: normal Component: build system
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

I configured MPlayer with the following lines
./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles
--with-codecsdir=/usr/lib/mplayer/codecs --with-livelibdir=/usr/lib/live
--with-dvbincdir=/usr/include --with-sdl-config=/usr/bin/sdl-config
--with-gtk-config=/usr/bin/gtk-cofnig
--with-freetype-config=/usr/bin/freetype-cofnig
--with-cdparanoiaincdir=/usr/include --with-cdparanoialibdir=/usr/lib
--enable-gui --enable-menu --enable-shared-pp --disable-fastmemcpy --enable-smb
--enable-live --enable-dvb --enable-dvbhead --enable-alsa --enable-arts
--enable-sdl --enable-png --enable-jpeg --enable-gif --enable-freetype
--enable-fontconfig --enable-aa --enable-vorbis --enable-xvid --enable-liblzo
--enable-mad --with-madlibdir=/usr/lib --disable-libfame --disable-mpdvdkit
--disable-libavcodec --disable-libavformat --disable-divx4linux

First issue was that it searched for ./libavcodec and ./libavformat. I thought
shared postprocessing is used to use dynamically linked FFMpeg(libavcodec)
instead of static internal one. Anyway i just resolved this issue by copying the
libavcodec and libavformat directory from the FFMpeg-CVS(20050515) into the
MPlayer build dir and smashed "make" again.
It keeps failing at the following:
cc -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -march=athlon-4
-mtune=athlon-4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I. -I/usr/include/freetype2 -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/include -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include
-I/usr/include -o mencoder mencoder.o mp_msg-mencoder.o cpudetect.o
codec-cfg.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o
subreader.o sub_cc.o find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o
edl.o unrarlib.o divx4_vbr.o libvo/aclib.o libvo/osd.o libvo/sub.o
libvo/font_load.o libvo/font_load_ft.o xvid_vbr.o parser-mecmd.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 -ldvdread -lavcodec -lmad -ltheora -logg -llzo -ldivxdecore
-lmp3lame -lxvidcore -lm -lpng -lz -lz -ljpeg -lasound -ldl -lpthread
-lfreetype -lz -L/usr/lib -lcdda_interface -lcdda_paranoia
/usr/lib/live/liveMedia/libliveMedia.a /usr/lib/live/groupsock/libgroupsock.a
/usr/lib/live/UsageEnvironment/libUsageEnvironment.a
/usr/lib/live/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++ -lnsl
-lgif -lsmbclient -lfontconfig libfaad2/libfaad2.a mp3lib/libMP3.a
liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a
libavcodec/libpostproc/libpostproc.so -lpthread -ldl -rdynamic -lm
libmpcodecs/libmpencoders.a(ae.o)(.text+0xe2): In function `new_audio_encoder':
ae.c: undefined reference to `mpae_init_lavc'
collect2: ld returned 1 exit status
make: * [mencoder] Error 1

Change History (3)

comment:1 by saschasommer@…, 19 years ago

First of all you don't need to pass all these --enable-* lines to configure.
Configure will automatically detect all available libs and use them if the
devel-packages are installed.
You also have at least two typos here: cofnig should be config
--with-gtk-config=/usr/bin/gtk-cofnig
--with-freetype-config=/usr/bin/freetype-cofnig

Then do a complete recompile with current cvs of both ffmpeg and libavcodec.

comment:2 by diego@…, 18 years ago

Component: corebuild system
Owner: changed from alex@… to diego@…

comment:3 by diego@…, 18 years ago

Resolution: invalid
Status: newclosed

This bug report is outdated and most probably just user error.

Note: See TracTickets for help on using tickets.