[FFmpeg-user] compiling for android

Patrick Shirkey pshirkey at boosthardware.com
Thu Jul 10 12:12:03 CEST 2014


On Thu, July 10, 2014 6:18 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey <pshirkey <at> boosthardware.com> writes:
>
>> --extra-cflags='-fno-builtin-sin -fno-builtin-cos' \
>
> Please try instead:
> --extra-cflags='-fno-builtin-sin -fno-builtin-sinf'
>
> -fno-builtin-sin is definitely not enough for aacps.o.
>

BULLS EYE!

Thanks very much for your assistance.

I have been able to build with libx264 for android 4.4 with the following
configure line:

./configure --arch=arm --target-os=linux  --enable-cross-compile \
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
\
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
--enable-gpl --enable-avresample --enable-libx264 \
--extra-cflags='-fno-builtin-sin -fno-builtin-sinf' \
--extra-ldflags='-L/4.4/external/x264'


:/ # ffmpeg
ffmpeg version git-2014-06-20-f4ed41d Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jul 10 2014 12:14:20 with gcc 4.7 (GCC)

:/ # ffmpeg -codecs
 DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
(encoders: libx264 libx264rgb )

:/ # ffserver -f /data/ffserver.conf
ffserver version git-2014-06-20-f4ed41d Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jul 10 2014 12:14:20 with gcc 4.7 (GCC)

:/ # ffprobe
ffprobe version git-2014-06-20-f4ed41d Copyright (c) 2007-2014 the FFmpeg
developers
  built on Jul 10 2014 13:05:10 with gcc 4.7 (GCC)

--
Patrick Shirkey
Boost Hardware Ltd


More information about the ffmpeg-user mailing list