[FFmpeg-devel] iOS Cross Compile issues

Gerhard Roethlin gerhard at disneyresearch.com
Tue Dec 20 08:32:55 CET 2011

This patch fixes problems when compiling ffmpeg with apple's iOS SDK, maybe
caused by the old compiler shipped with it. The solution is similar to that
in commit f7de5235.
I am aware that this just hides the problem, but I have no arm asm knowledge,
so I can not provide a real solution.

This is the error message:
> make V=1
/Developer4/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -I. -I./ --sysroot=/Developer4/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DHAVE_AV_CONFIG_H -arch armv7 -mcpu=cortex-a8 -std=c99 -fomit-frame-pointer -fPIC -marm -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -mllvm -stack-alignment=16  -MMD -MF libavfilter/af_volume.d -MT libavfilter/af_volume.o -c -o libavfilter/af_volume.o libavfilter/af_volume.c
error: invalid operand in inline asm: 'adds   $1, ${2:R}, ${2:Q}, lsr #31  
	itet   ne                     
	mvnne  $1, #1<<31             
	moveq  $0, ${2:Q}                
	eorne  $0, $1,  ${2:R}, asr #31  
make: *** [libavfilter/af_volume.o] Error 1

Gerhard Röthlin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-iOS-SDK-Fixes.patch
Type: application/octet-stream
Size: 1743 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111220/619058b7/attachment.obj>

More information about the ffmpeg-devel mailing list