Quantcast

Compiling ffmpeg with --prefix option

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Compiling ffmpeg with --prefix option

Abhijit Das
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Compiling ffmpeg with --prefix option

rogerdpack2
> How do I make ./configure happy? How do I specify the library path to
> search for as an option to ./configure?

LDFLAGS possibly?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Compiling ffmpeg with --prefix option

Lou-2
In reply to this post by Abhijit Das
On Sat, 4 Aug 2012 21:11:50 +0530
Abhijit Das <[hidden email]> 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

Untested example:

sudo apt-get update
sudo apt-get -y install build-essential git yasm
cd
mkdir -p junk/src
git clone git://git.videolan.org/x264
cd x264
./configure --prefix=$HOME/junk --enable-static
make
make install
cd
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
./configure --extra-cflags="-I$HOME/junk/include" \
--extra-ldflags="-L$HOME/junk/lib" --enable-gpl --enable-libx264
make
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Compiling ffmpeg with --prefix option

Tim Nicholson-2
In reply to this post by Abhijit Das
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


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Loading...