Skip to content

Commit 151e593

Browse files
committed
Merge pull request #17 from aarnaud/master
FFmpeg 2.1 and full static. Thanks @aarnaud !
2 parents 4bc1bf5 + c31a49e commit 151e593

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Build dependencies
1010
------------------
1111

1212
# Debian & Ubuntu
13-
$ apt-get install build-essential curl tar <FIXME???>
13+
$ apt-get install build-essential curl tar
1414

1515
# OS X
1616
# install XCode, it can be found at http://developer.apple.com/
@@ -20,7 +20,7 @@ Build dependencies
2020
Build & "install"
2121
-----------------
2222

23-
$ ./build.sh
23+
$ ./build.sh or build-ubuntu.sh
2424
# ... wait ...
2525
# binaries can be found in ./target/bin/
2626

@@ -49,13 +49,8 @@ I'm not sure it's a good idea to statically link those, but it probably
4949
means the executable won't work across distributions or even across releases.
5050

5151
# On Ubuntu 10.04:
52-
$ ldd build/bin/ffmpeg
53-
linux-gate.so.1 => (0xb78df000)
54-
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb789f000)
55-
libz.so.1 => /lib/libz.so.1 (0xb788a000)
56-
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7870000)
57-
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7716000)
58-
/lib/ld-linux.so.2 (0xb78e0000)
52+
$ ldd ./target/bin/ffmpeg
53+
not a dynamic executable
5954

6055
# on OSX 10.6.4:
6156
$ otool -L ffmpeg

build-ubuntu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
sudo apt-get install build-essential curl tar
4+
5+
./build.sh

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
set -u
55

66
jflag=
7-
jval=4
7+
jval=2
88

99
while getopts 'j:' OPTION
1010
do
@@ -51,7 +51,7 @@ cd $BUILD_DIR
5151
../fetchurl "ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2"
5252
../fetchurl "http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz"
5353
../fetchurl "http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz"
54-
../fetchurl "http://ffmpeg.org/releases/ffmpeg-2.0.tar.bz2"
54+
../fetchurl "http://www.ffmpeg.org/releases/ffmpeg-2.1.tar.bz2"
5555

5656
echo "*** Building yasm ***"
5757
cd $BUILD_DIR/yasm*
@@ -126,5 +126,5 @@ rm -f "$TARGET_DIR/lib/*.so"
126126
# FFMpeg
127127
echo "*** Building FFmpeg ***"
128128
cd $BUILD_DIR/ffmpeg*
129-
CFLAGS="-I$TARGET_DIR/include" LDFLAGS="-L$TARGET_DIR/lib -lm" ./configure --prefix=${OUTPUT_DIR:-$TARGET_DIR} --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-pthreads --enable-postproc --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --disable-devices
129+
CFLAGS="-I$TARGET_DIR/include" LDFLAGS="-L$TARGET_DIR/lib -lm" ./configure --prefix=${OUTPUT_DIR:-$TARGET_DIR} --extra-cflags="-I$TARGET_DIR/include -static" --extra-ldflags="-L$TARGET_DIR/lib -lm -static" --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-pthreads --enable-postproc --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --disable-devices
130130
make -j $jval && make install

0 commit comments

Comments
 (0)