FFmpeg: Difference between revisions
From CBLFS
Jump to navigationJump to search
| Line 40: | Line 40: | ||
sed -i "s/static uint64/const uint64/" \ | sed -i "s/static uint64/const uint64/" \ | ||
libavcodec/liba52/resample_mmx.c && | libavcodec/liba52/resample_mmx.c && | ||
./configure --prefix=/usr --enable-shared --enable-pthreads && | ./configure --prefix=/usr --enable-shared --enable-pthreads --enable-gpl && | ||
make | make | ||
Revision as of 21:31, 16 November 2006
Configuring
Look at the output of ./configure --help and add the parameters for the optional dependencies you have installed.
Dependencies
Optional
Non-Multilib
Compile the package:
patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
sed -i "s/static uint64/const uint64/" \
libavcodec/liba52/resample_mmx.c &&
./configure --prefix=/usr --enable-shared --enable-pthreads --enable-gpl &&
make
Install the package
make install
Multilib
32Bit
Compile the package:
patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
CC="gcc ${BUILD32}" USE_ARCH=32 CFLAGS="-fPIC" ./configure --prefix=/usr \
--enable-shared --enable-pthreads &&
make CC="gcc ${BUILD32}"
Install the package
make install
N32
Compile the package:
patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
sed -i 's:$(prefix)/lib:&32:g' $(grep -lr '$(prefix)/lib' *) &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 CFLAGS="-fPIC" ./configure --prefix=/usr \
--enable-shared --enable-pthreads &&
make CC="gcc ${BUILDN32}"
Install the package
make install
64Bit
Compile the package:
patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
sed -i 's:$(prefix)/lib:&64:g' $(grep -lr '$(prefix)/lib' *) &&
CC="gcc ${BUILD64}" USE_ARCH=64 CFLAGS="-fPIC" ./configure --prefix=/usr \
--enable-shared --enable-pthreads &&
make CC="gcc ${BUILD64}"
Install the package
make install