[FFmpeg-user] Compiling ffmpeg with libx264

Nicolas George nicolas.george at normalesup.org
Sun Aug 28 12:58:34 CEST 2011


Le primidi 11 fructidor, an CCXIX, Steve Jones a écrit :
> so there's no specific directive to look anywhere for libx264 (it's just
> -lx264). This must be why it's falling back to /usr/lib without the
> extra compile flags.

That's the normal behaviour. The strange part is that it finds x264.h in
/usr/local.

You may want to try to compile the following program:

#include <stdint.h>
#include <x264.h>
int main(void) {
    x264_encoder_open(0);
    return 0;
}

with just -lx264. If it compiles but fails to link, then there is something
seriously inconsistent in your compiler's settings, and it will probably
cause you trouble again later. If it fails to compile or success entirely,
it is probably a problem in ffmpeg's configure.

> Using the explicit flags you mentioned above works perfectly.

Glad I could help.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20110828/63e423f2/attachment.asc>


More information about the ffmpeg-user mailing list