Thanks for the reply . I tried with static builds for libx264 . I edited the build script for libx264 and added options --enable -static , --disable -shared . After running the script I got libx264.a at /usr/local/lib x264(executable file) at /usr/local/bin and x_264.h and x_264_config.h at /usr/local/include .
I modified my ffmpeg script by adding --extra-cflags='-I/usr/local/' --extra-ldflags='-I/usr/local/x264 -L/usr/local/ -ldl' . But still I'm getting the error . On Fri, Aug 1, 2014 at 5:16 PM, Reindl Harald <[email protected]> wrote: > > 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' > > > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- Thanks and Regards , David Varghese _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
