Re: Unsupported codec (id=88)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported codec (id=88)

Yohann Martineau-2
Le mercredi 09 janvier 2008 à 18:52 +0100, Niklas Saers a écrit :

> Hi Yohann,
> thank you very much for all your help. :-)
>
>
> > I think you can use configure option
> > --extra-cflags="-I/home/myuser/local/include -L/home/myuser/local/lib"
>
> Thanks a bunch
>
> > For your x264 library, you would configure it using the following command:
> > ./configure --prefix=/home/user/local
> > Then you compile, and make install should not generate any error.
>
> Exactly what I did, worked perfectly.
>
> > Then, when you configure ffmpeg, you would use the same configure line as
> > usual, appending an option to tell ffmpeg where it can find headers and
> > libraries:
>
> Right, my line became:
>
> ./configure --prefix=/home/myuser/local --enable-gpl --enable-libx264
> --extra-cflags="-I/home/myuser/local/include -L/home/myuser/local/lib"
>
> The error I get is:
>
> ERROR: x264 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
> [hidden email] 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.
>
> And I'm using the current svn version. The remainder of config.err is:
>
> check_lib x264.h x264_encoder_open -lx264
> check_header x264.h
> check_cpp
> BEGIN /tmp/ffmpeg-conf-29267-4885-10507.c
>     1 #include <x264.h>
>     2 int x;
> END /tmp/ffmpeg-conf-29267-4885-10507.c
> gcc -I/home/myuser/local/include -L/home/myuser/local/lib
> -fomit-frame-pointer -E -o /tmp/ffmpeg-conf-1925-4885-16129.o
> /tmp/ffmpeg-conf-29267-4885-10507.c
> In file included from /tmp/ffmpeg-conf-29267-4885-10507.c:1:
> /home/myuser/local/include/x264.h:32:4: warning: #warning You must
> include stdint.h or inttypes.h before x264.h
> check_func x264_encoder_open
> check_ld
> check_cc
> BEGIN /tmp/ffmpeg-conf-29267-4885-10507.c
>     1 extern int x264_encoder_open();
>     2 int main(void){
>     3    x264_encoder_open();
>     4 }
> END /tmp/ffmpeg-conf-29267-4885-10507.c
> gcc -I/home/myuser/local/include -L/home/myuser/local/lib
> -fomit-frame-pointer -c -o /tmp/ffmpeg-conf-1925-4885-16129.o
> /tmp/ffmpeg-conf-29267-4885-10507.c
> gcc -o /tmp/ffmpeg-conf-6823-4885-19373
> /tmp/ffmpeg-conf-1925-4885-16129.o -lz -lm -lx264
> /usr/bin/ld: cannot find -lx264
> collect2: ld returned 1 exit status
> ERROR: x264 not found
>
> local/lib contains libx264.a and pkgconfig and local/include contains
> x264.h. The system I'm running is Debian. The CFLAGS variable looks
> correct enough. I attached the logfile
>
> > Actually, when you ran make install in x264 library it should have created
> > those include and lib directories.
>
> It did
>
> > It's better to have a common root directory for all your installation files.
> > Thus you won't have include and lib directories in your home directory.
>
> I totally agree. :-) I was just using my home directory but now I use
> the ~/local as you suggested
>
> > I'm not 100% sure about the --extra-cflags option, but I think this should
> > do the trick.
>
> It sounds like a very good suggestion and I'm not quite sure why I get
> this error. I hope the logfile and the information I have provided can
> tell you something. :-) I've spent a while staring at it trying
> different environment variables with no luck.
>
> Cheers, and thanks again for your help
>
>    Nik

Hello,

you should always use the mailing list if you want any answer.

looking at your config.err file, it seems that the configuration flags were:
# ./configure --prefix=/home/myuser/local --enable-gpl --enable-libx264 --extra-cflags=-I/home/myuser/local/include -L/home/myuser/local/lib

but, of course,  you should replace myuser with your real user name. If you want, you can use ~ instead of /home/your_real_user_name, but it won't change many things

regards,

yohann

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user