[FFmpeg-user] Compiling ffmpeg, Optimize for size

Conor Mac Aoidh conormacaoidh at gmail.com
Thu Jun 18 12:39:48 CEST 2015


After adding the '--enable-small' flag, I'm having some problems 
building. It seems the build gets stuck on a file called 
'libavcodec/snowenc.d'. This command is running at 100% CPU for 20 minutes+:

//opt/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc 
-I. -I./ --sysroot=/opt/android-ndk-r10e/platforms/android-16/arch-arm 
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DHAVE_AV_CONFIG_H 
-I../x264 -I../faac/include -mcpu=cortex-a8 -std=c99 
-fomit-frame-pointer -fPIC -marm -I../freetype2/include -g 
-Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch 
-Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith 
-Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits 
-Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast 
-Wstrict-prototypes -Os -fno-math-errno -fno-signed-zeros 
-fno-tree-vectorize -Werror=implicit-function-declaration 
-Werror=missing-prototypes -MMD -MF libavcodec/snowenc.d -MT 
libavcodec/snowenc.o -c -o libavcodec/snowenc.o libavcodec/snowenc.c/

I've attached output to the configure/make steps. Anyone have any ideas 
what's going wrong?

I'm using this build script (with '--enable-small' added):

https://github.com/guardianproject/android-ffmpeg/blob/master/configure_ffmpeg.sh

Thanks!

Conor

On 18/06/15 09:12, Conor Mac Aoidh wrote:
> Thanks that worked!
>
> The extra cflags were included in an example I was working from, I 
> have removed them now. Thanks!
>
> Conor
>
> On 17/06/15 22:04, Carl Eugen Hoyos wrote:
>> Conor Mac Aoidh <conormacaoidh <at> gmail.com> writes:
>>
>>> I've built ffmpeg for ARM but I would like to
>>> also optimize the binary for size
>> Please use --enable-small to optimize for size.
>>
>>> //--extra-cflags="-Os -Wno-deprecated-declarations -I../x264
>>> -mfloat-abi=softfp -mfpu=neon -fPIE -DANDROID -pie"/
>> Except for the -I flag, please drop the
>> extra-cflags. Or is there a bug in our
>> build system that we don't know about?
>>
>> Carl Eugen
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure-ffmpeg.log
Type: text/x-log
Size: 11299 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20150618/98c9e625/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-ffmpeg.log
Type: text/x-log
Size: 94803 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20150618/98c9e625/attachment-0001.bin>


More information about the ffmpeg-user mailing list