[Libav-user] FFMPEG android compilation issue.

Puneet B punitb20 at gmail.com
Fri Apr 24 07:27:04 CEST 2015


HI All,

I want compile ffmpeg-2.4.3 to android , Here my script used to compile and
error i am facing.

Script:

export NDKHOME=/home/embdes/Projects/A20/android-ndk-r10

export
CCHOME=/home/embdes/Projects/A20/android-ndk-r10/toolchain/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi


export PLATFORM=$NDKHOME/platforms/android-18/arch-arm/

export CFLAGS="-O9 -march=armv7-a -ffast-math -fomit-frame-pointer -lc -lm
-L $NDKHOME/platforms/android-18/arch-arm/usr/lib/ -I
$NDKHOME/platforms/android-18/arch-arm/usr/include/ -I. -mtune=cortex-a8
-mfpu=neon  -ldl -Ifreetype/include -fPIC -mfloat-abi=softfp
-Wl,--fix-cortex-a8 -ftree-vectorize -mvectorize-with-neon-quad -nostdlib
-fstack-protector-all -DHAVE_ASM_MOD_Q=1 -DHAVE_ASM_MOD_Y=1
-DMPLAYER_JAVA_PACKAGE_PATH=com_vnd_mplayer_neon_noad -DHAVE_VFP=1
-funroll-loops  -DNOAD=1 -D__linux__ -DHAVE_AS_FUNC=1
-DHAVE_LOCAL_ALIGNED_32=1 -DHAVE_AS_DN_DIRECTIVE=1"

export LDFLAGS="-L $NDKHOME/platforms/android-14/arch-arm/usr/lib/ -lc -lm
-lgcc  -nostdlib -ljnigraphics -llog -Wredundant-decls"

./configure --cc=$CCHOME-gcc --nm=$CCHOME-nm  --ar=$CCHOME-ar
--as=$CCHOME-as --ranlib=$CCHOME-ranlib --host-cc=gcc --target-os=linux
--arch=arm --enable-armv6t2  --enable-cross-compile --extra-libs="-lgcc"
--enable-static

make

The ERROR in config log:

 /home/embdes/Projects/A20/android-ndk-r10/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-as:
unrecognized option '-_ISOC99_SOURCE'
GNU assembler not found, install/update gas-preprocessor

Could anyone tell me how to solve this.

Regards
Punith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150424/73632b80/attachment.html>


More information about the Libav-user mailing list