2009-07-03 09:09:13     Some problems about adding libfaac to ffmpeg under bf561

Document created by Aaronwu Employee on Aug 16, 2013
Version 1Show Document
  • View in full screen mode

2009-07-03 09:09:13     Some problems about adding libfaac to ffmpeg under bf561

bin zhang (CHINA)

Message: 76773   

 

Hi.

 

    Could you please tell me how to add libfaac to ffmpeg. I have tried some method,but failed.

 

    My method is as follows( all steps have been finished under colinux ):

 

   1)download faac-1.28 source code and do three steps.

 

     a.  ./configure --host=bfin-linux-uclibc

 

     b. make

 

     c. make install

 

      the default lib address is  "/usr/local/lib"   and  excute file  address is "/usr/local/bin"

 

     2) add the lib to ffmpeg

 

     a. cd  /root/uClinux-dist-2008R1-RC8/lib/ffmpeg/ffmpeg-svn-11114/

 

 

     b. CROSS_COMPILE=bfin-linux-uclibc  ./configure  --enable-libfaac

 

     We got errors after doing that

 

ERROR: libfaac not found

If you think configure made a mistake, make sure you are using the latest

version from SVN.  If the latest version fails, report the problem to the

ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file "config.err" produced by configure as this will help

solving the problem.

 

 

     Then i have taken alook at the file config.err

 

gcc -fomit-frame-pointer -c -o /tmp/ffmpeg-conf-24982-13477-32175.o /tmp/ffmpeg-conf-30781-13477-20649.c

gcc -o /tmp/ffmpeg-conf-18871-13477-22832 /tmp/ffmpeg-conf-24982-13477-32175.o -lz -lm

check_lib2 stdint.h faac.h faacEncGetVersion -lfaac

check_func2 stdint.h faac.h faacEncGetVersion

check_ld

check_cc

BEGIN /tmp/ffmpeg-conf-30781-13477-20649.c

    1

    2 #include <stdint.h>

    3 #include <faac.h>

    4 int main(void){

    5     (void) faacEncGetVersion;

    6     return 0;

    7 }

END /tmp/ffmpeg-conf-30781-13477-20649.c

gcc -fomit-frame-pointer -c -o /tmp/ffmpeg-conf-24982-13477-32175.o /tmp/ffmpeg-conf-30781-13477-20649.c

gcc -o /tmp/ffmpeg-conf-18871-13477-22832 /tmp/ffmpeg-conf-24982-13477-32175.o -lz -lm -lfaac

/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libfaac.so when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libfaac.a when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/lib/../lib/libfaac.so when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/lib/../lib/libfaac.a when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/bin/../lib/libfaac.so when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/bin/../lib/libfaac.a when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/local/lib/libfaac.so when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/local/lib/libfaac.a when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/lib/libfaac.so when searching for -lfaac

/usr/bin/ld: skipping incompatible /usr/lib/libfaac.a when searching for -lfaac

/usr/bin/ld: cannot find -lfaac

collect2: ld returned 1 exit status

ERROR: libfaac not found

 

 

I want to konw  how to sovle the problem ....

TranslateQuoteReplyEditDelete

 

 

2009-07-03 14:18:35     Re: Some problems about adding libfaac to ffmpeg under bf561

Mike Frysinger (UNITED STATES)

Message: 76778   

 

/usr/local/ paths are not acceptable locations -- those are host toolchain paths, not cross-compiler toolchain paths.  install the library somewhere locally and then tell ffmpeg where to find it.

 

read the ffmpeg Makefile to see how to compile ffmpeg properly.

QuoteReplyEditDelete

 

 

2009-07-05 09:08:51     Re: Some problems about adding libfaac to ffmpeg under bf561

bin zhang (CHINA)

Message: 76811   

 

Hi

 

   Mike. I have take a look at the Makefile of ffmpeg ,but I can not find  which library path it finds to add to the application.

TranslateQuoteReplyEditDelete

 

 

2009-07-05 09:13:38     Re: Some problems about adding libfaac to ffmpeg under bf561

bin zhang (CHINA)

Message: 76812   

 

For more, I compile faac and ffmpeg alone for testing.

 

If I want to add them to the kernel how to make it ?? I have tried to change the configure file to enable libfaac . but it doesn't work.

TranslateQuoteReplyEditDelete

 

 

2009-07-07 03:24:50     Re: Some problems about adding libfaac to ffmpeg under bf561

Yi Li (CHINA)

Message: 76842   

 

Bin,

 

You may ask this question on ffmpeg mailing list.

 

-Yi

QuoteReplyEditDelete

 

 

2009-07-07 03:27:28     Re: Some problems about adding libfaac to ffmpeg under bf561

Yi Li (CHINA)

Message: 76843   

 

What do you mean saying "add them to kernel"? Do you mean, if you run "make menuconfig" under uclinux-dist/, and build ffmpeg and libfaac, you cannot build them?

Attachments

    Outcomes