[MEncoder-users] How to enable faac / faad ?

Enzo v.deflorio at katamail.com
Tue Dec 26 11:49:50 CET 2006


Dear mencoders,

first of all let me wish you a happy new year! This is to ask your help
on the proper way to enable faac and faad in the latest svn mencoder
under cygwin. I downloaded and compiled faac-1.25.tar.gz and
faad2_2.0_rc1.tar.gz, thus creating the corresponding libraries in
/usr/local/lib; then I added to my configure options "--enable-faac
--enable-faad-internal" (I tried also with --enable-faad-external); this
is what I get:

Vincenz at PCINF55 ~/trunk
$ cc -o mencoder.exe 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 parser-mecmd.o xvid_vbr.o
libmpcodecs/libmpencoders.a libmpdemux/libmpmux.a
libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a
stream/stream.a libswscale/libswscale.a libvo/libosd.a
libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a
libpostproc/libpostproc.a mp3lib/libMP3.a liba52/liba52.a
libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a
osdep/libosdep.a -lwinmm -liconv -lncurses -lpng -lz -L/usr/local/lib
-lstdc++ -static -lm -lstdc++ -lm /usr/local/lib/libfaac.a
/home/Vincenz/x264/libx264.a
/home/Vincenz/live2/live/BasicUsageEnvironment/libBasicUsageEnvironment.a
/home/Vincenz/live2/live/UsageEnvironment/libUsageEnvironment.a
/home/Vincenz/live2/live/groupsock/libgroupsock.a
/usr/X11R6/lib/libX11-6.dll.a /usr/local/lib/libdvdnav.dll.a
/usr/local/lib/xvidcore.a
/home/Vincenz/live2/live/liveMedia/libliveMedia.a
/usr/local/lib/libmp3lame.a -lstdc++ -lm
libmpcodecs/libmpencoders.a(ae_faac.o):ae_faac.c:(.text+0x193):
undefined reference to `_faacEncEncode at 20'
libmpcodecs/libmpencoders.a(ae_faac.o):ae_faac.c:(.text+0x209):
undefined reference to `_faacEncOpen at 16'
libmpcodecs/libmpencoders.a(ae_faac.o):ae_faac.c:(.text+0x2af):
undefined reference to `_faacEncGetCurrentConfiguration at 4'
libmpcodecs/libmpencoders.a(ae_faac.o):ae_faac.c:(.text+0x3a0):
undefined reference to `_faacEncSetConfiguration at 8'
libmpcodecs/libmpencoders.a(ae_faac.o):ae_faac.c:(.text+0x465):
undefined reference to `_faacEncGetDecoderSpecificInfo at 12'
collect2: ld returned 1 exit status
make: *** [mencoder.exe] Error 1


In other words, it seems there's something wrong with
/usr/local/lib/libfaac.a, or some incompatibility between libfaac and
some of my configure options (which, by the way, are as follows:

configure --enable-dvdnav --enable-live --enable-menu \

  --enable-xvid --enable-x264 --enable-mp3lib --enable-win32 \

--enable-gl \

--enable-menu \

--enable-real \

--enable-faac \

--enable-faad-internal \

--enable-qtx \

--disable-vidix-internal \

--disable-pthreads \

--extra-libs="-mconsole" \

--enable-static \

    --disable-jpeg                   \

    --disable-gif                    \

    --disable-tga                    \

    --disable-liblzo                 \

    --disable-tv                     \

    --disable-dvb                    \

    --disable-sdl                    \

    --disable-pnm                    \

--extra-libs=“-lstdc++ -lm /home/Vincenz/x264/libx264.a \

/home/Vincenz/live2/live/BasicUsageEnvironment/libBasicUsageEnvironment.a \

/home/Vincenz/live2/live/UsageEnvironment/libUsageEnvironment.a \

/home/Vincenz/live2/live/groupsock/libgroupsock.a \

/usr/X11R6/lib/libX11-6.dll.a \

/usr/local/lib/libdvdnav.dll.a \

/usr/local/lib/xvidcore.a \

/home/Vincenz/live2/live/liveMedia/libliveMedia.a \

/usr/local/lib/libmp3lame.a -lstdc++ -lm” \

--with-extraincdir=/home/Vincenz/live2/live/BasicUsageEnvironment/include:\

/home/Vincenz/live2/live/UsageEnvironment/include:\

/home/Vincenz/faac/include:\

/home/Vincenz/faad2/include:\

/home/Vincenz/live2/live/groupsock/include:/home/Vincenz/live2/live/liveMedia/include

)

Do you have any suggestions? Thank you very much,

Kind regards,

Enzo



More information about the MEncoder-users mailing list