[vlc-devel] Re: How to compile ffmpeg with faad for VLC?

j y yunjnz at yahoo.com
Wed Nov 23 09:02:43 CET 2005


Hi,
  Thank you for your kind help, I configured and compiled ffmpeg successfully,
  but there is a new problem now while I configure VLC with the new ffmpeg with faad support enabled, 
  the configuration shows that the compiler can't find the -lfaad,
  It seems that the configuration script doesn't add the path of the FAAD path to the LDFLAGS,
  but after I added it and compiled, the program runs with error information prompted:
   
  libfaad.so.0 can't load: no such file or directory.
   
  why this happened? Should I compile ffmpeg with static link with faad? how can I do?
  Currently I think the faad library wasn't staticly linked to FFMPEG.
  I just add the LDFLAGS in the config.mak with the FAAD library path,
  if we should staticly link the faad, how to do? 
   
  Thank you and best regards,
  Sean
  

Jean-Paul Saman <jean-paul.saman at planet.nl> wrote:
  j y wrote:
> Hi,
> I met a problem while configuring VLC, I found that the program couldn't play audio with the information:
> no suitable decoder module for fourcc 'mp4a'
> and with this information, I heard from VLC-Devel that it indicated that the FFMPEG didn't be configured with FAAD support, so I downloaded FAAD and compiled, and then add --enable-faad option while configuring FFMPEG, but while compiling ffmpeg there are errors happened, here is the detailed error information:
> 
> ./libavcodec/libavcodec.a(faad.o)(.text+0x1d1): In function 'faac_decode_init': /root/ffmpeg-0.4.9-pre1/libavcodec/faad.c:217: undefined reference to 'faacDecOpen'
> ./libavcodec/libavcodec.a(faad.o)(.text+0x1d8):/root/ffmpeg-0.4.9-pre1/libavcodec/faad.c:218: undefined reference to 'faacDecGetCurrentConfiguration'
> 
> and several lines similar information about undefined reference for such asfaacDecSetConfiguration / faacDecInit / faacDecInit2 / faacDecDecode / faacDecGetErrorMessage / faacDecOpen and so on.
> why this happened? how to solve this problem? thank you.
> 
> Regards,
> Sean
Welcome to the ffmpeg hell ;-)

ffmpeg has a broken build system if there is more then one library that 
needs to be statically linked and those libraries are in their own 
compiled tree. The easiest thing todo is to create a directory under 
ffmpeg, eg: libs and copy all *.a or *.so to that directory.

Configure ffmpeg with the option to the libraries configuration and with 
--enable-faad.

Gtz,
Jean-Paul Saman

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

  


		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20051123/210a6ad2/attachment.html>


More information about the vlc-devel mailing list