[FFmpeg-devel] help compiling ffmpeg for iphone 3.0

hatem ben rais hatem.benrais
Sun Sep 5 18:37:24 CEST 2010


I am very new to ffmpeg and even iphone dev.
I need to write an iphone app for radio streaming, targeting iOS beginning
from version 3.0, so I can't use the new 4.x API for that.
I tried following tutorials about compiling ffmpeg for iphone, but I got an
error, and I have absolutely no idea what it all means.

here is the command line I used for that :

--enable-cross-compile --target-os=darwin --arch=arm --cpu=cortex-a8

That led to a lot of warnings and ended with this error :

ffmpeg.c: In function ?do_video_out?:
ffmpeg.c:1085: warning: passing argument 2 of ?sws_scale? from incompatible
pointer type
ffmpeg.c: In function ?new_audio_stream?:
ffmpeg.c:492: warning: ?best? may be used uninitialized in this function
ffmpeg.c:492: note: ?best? was declared here
CC cmdutils.o
cmdutils.c:41:21: error: version.h: No such file or directory
cmdutils.c: In function ?show_banner?:
cmdutils.c:344: error: expected ?)? before ?FFMPEG_VERSION?
cmdutils.c:345: warning: too few arguments for format
cmdutils.c: In function ?show_version?:
cmdutils.c:360: error: expected ?)? before ?FFMPEG_VERSION?
cmdutils.c:360: warning: too few arguments for format
make: *** [cmdutils.o] Error 1

and help is appreciated.


More information about the ffmpeg-devel mailing list