[FFmpeg-user] How to resolve “ERROR: libx264 not found”?

Reindl Harald h.reindl at thelounge.net
Fri Aug 1 13:46:07 CEST 2014


Am 01.08.2014 um 13:37 schrieb David Varghese:
> I needed to install ffmpeg with libx264 support for enabling H.264 encoding
> . I installed libx264 successfully using the below script with toolchains
> available in android-ndk-r9d .
> 
> Now I wanted to build ffmpeg with libx264 support .  I used the below
> script with --enable-libx264 , --enable-nonfree , --enable-gpl options
> as in the below script .
> 
> But when I run the script I'm getting error "ERROR: libx264 not found" .
> 
> I suppose ffmpeg is not able to figure out the installed location of
> libx264 . After libx264 installation I have libx264.so file in
> /usr/local/lib executable at /usr/local/bin and header files at
> /usr/local/include directories .
> 
> What all changes do I need to make to the ffmpeg build script in-order to
> make it detect libx264?

i build x264 a static lib below /usr/local/x264 and while
the rest of my ffmpeg-build is using shared libraries from
the default --prefix=/usr those below let the build find
my static x264

--extra-cflags='-I/usr/local/x264'
--extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -ldl'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20140801/823fcde0/attachment.asc>


More information about the ffmpeg-user mailing list