[FFmpeg-user] Compiling ffmpeg with --prefix option

Tim Nicholson nichot20 at yahoo.com
Mon Aug 6 09:33:11 CEST 2012


On 04/08/12 16:41, Abhijit Das wrote:
> Hello Everyone,
> 
> I am trying to compile the ffmpeg source code following the guideline
> below. I am using ubuntu 11.10
> http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
> 
> This is an excellent guide. But I have a small problem.  I wanted to
> install all the binary and libraries in /opt/ffmpeg including libvpx and
> libx264.
> 
> However when I try to configure ffmpeg it is throwing error:
> ERROR: libvpx decoder version must be >=0.9.1
> 
> So it seems ./configure could not locate the libraries I compiled before in
> /opt/ffmpeg/lib
> 
> How do I make ./configure happy? How do I specify the library path to
> search for as an option to ./configure?
> 
> Thanks -Abhijit Das

> [..]


My test static build script includes...

./configure \
--extra-version=by_Tim \
--enable-static --disable-shared \
--prefix=$SYSROOT/usr/local \
--libdir=$SYSROOT/usr/local/lib64 \
--samples="../fate-suite/" \
--extra-cflags="-static -I$SYSROOT/usr/local/include" \
--extra-ldflags="-static -L$SYSROOT/usr/local/lib64" \
--progs-suffix="_$build_date" \

Having set $SYSROOT to my desired location.

-- 
Tim




More information about the ffmpeg-user mailing list