Thanks MIke . I can see x264.h and x264_config.h at /usr/local/include after libx264 instalation. Are those the .h file you mentioned?
On Fri, Aug 1, 2014 at 5:18 PM, Mike Martin <[email protected]> wrote: > Not familiar with the toolchain script, but looks like your either missing > the development files (usually live in include dir and end in .h) or they > are installed but not in a standard location > > > On 1 August 2014 12:37, David Varghese <[email protected]> wrote: > > > Hi, > > > > 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 . > > > > #!/bin/bash > > NDK=~/android-ndk-r9d > > SYSROOT=$NDK/platforms/android-8/arch-arm/ > > > TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64 > > function build_one > > { > > ./configure \ > > --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ > > --sysroot="$SYSROOT" \ > > --host=arm-linux \ > > --enable-pic \ > > --enable-shared \ > > --disable-cli > > make clean > > make > > make install > > } > > build_one > > > > 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 . > > > > SYSROOT=$NDK/platforms/android-8/arch-arm/ > > > > > TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64function > > build_one{./configure \--prefix=$PREFIX \--enable-shared > > \--enable-nonfree \--enable-gpl \--enable-libx264 \--disable-doc > > \--disable-ffmpeg \--disable-ffplay \--disable-ffprobe > > \--disable-ffserver \--disable-avdevice \--disable-doc > > \--disable-symver > > \--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- > > \--target-os=linux \--arch=arm \--enable-cross-compile > > \--sysroot=$SYSROOT \--extra-cflags="-Os -fpic $ADDI_CFLAGS" > > \--extra-ldflags="$ADDI_LDFLAGS" \ > > $ADDITIONAL_CONFIGURE_FLAG > > make clean > > make > > make install} > > CPU=arm > > PREFIX=$(pwd)/android/$CPU > > ADDI_CFLAGS="-marm" > > build_one > > > > 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? > > > > > > > > > > -- > > Thanks and Regards , > > David Varghese > > _______________________________________________ > > ffmpeg-user mailing list > > [email protected] > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > 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
