Skip to content

Commit 7b66ac8

Browse files
committed
Enable libx264 on full version
1 parent 69f02aa commit 7b66ac8

File tree

1 file changed

+34
-32
lines changed

1 file changed

+34
-32
lines changed

build_scripts/build_ffmpeg.sh

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -227,24 +227,40 @@ export CPPFLAGS="--sysroot=$SYSROOT "
227227
export STRIP=${CROSS_PREFIX}strip
228228
export PATH="$PATH:$PREFIX/bin/"
229229

230-
# TODO: fix build failed
231-
# pushd x264
232-
# ./configure \
233-
# --cross-prefix=$CROSS_PREFIX \
234-
# --sysroot=$SYSROOT \
235-
# --host=$HOST \
236-
# --enable-pic \
237-
# --enable-static \
238-
# --disable-shared \
239-
# --disable-cli \
240-
# --disable-opencl \
241-
# --disable-asm \
242-
# --prefix=$PREFIX
230+
if [ "$FLAVOR" = "full" ]; then
231+
pushd x264
232+
./configure \
233+
--cross-prefix=$CROSS_PREFIX \
234+
--sysroot=$SYSROOT \
235+
--host=$HOST \
236+
--enable-pic \
237+
--enable-static \
238+
--disable-shared \
239+
--disable-cli \
240+
--disable-opencl \
241+
--disable-asm \
242+
--prefix=$PREFIX
243+
244+
make clean
245+
make -j8
246+
make install
247+
popd
248+
249+
# Non-free
250+
pushd fdk-aac-${FDK_AAC_VERSION}
251+
./configure \
252+
--prefix=$PREFIX \
253+
--host=$HOST \
254+
--enable-static \
255+
--disable-shared \
256+
--with-sysroot=$SYSROOT
257+
258+
make clean
259+
make -j8
260+
make install
261+
popd
262+
fi;
243263

244-
# make clean
245-
# make -j8
246-
# make install
247-
# popd
248264

249265
pushd opus-${OPUS_VERSION}
250266
./configure \
@@ -260,21 +276,6 @@ make -j8
260276
make install V=1
261277
popd
262278

263-
264-
# Non-free
265-
pushd fdk-aac-${FDK_AAC_VERSION}
266-
./configure \
267-
--prefix=$PREFIX \
268-
--host=$HOST \
269-
--enable-static \
270-
--disable-shared \
271-
--with-sysroot=$SYSROOT
272-
273-
make clean
274-
make -j8
275-
make install
276-
popd
277-
278279
pushd lame-${LAME_VERSION}
279280
./configure \
280281
--prefix=$PREFIX \
@@ -366,6 +367,7 @@ if [ "$FLAVOR" = "full" ]; then
366367
--enable-libmp3lame \
367368
--enable-libopus \
368369
--enable-libvorbis \
370+
--enable-libx264 \
369371
--enable-libfdk-aac \
370372
--enable-bsf=aac_adtstoasc \
371373
--enable-openssl \

0 commit comments

Comments
 (0)