Hi.
I'm trying to build FFmpeg for iOS.
And since it's quite useless without x264,
I'm also trying to compile x264 for iOS. (Specifically, armv7 cortex-a9 Apple A5 processor on iOS 5)
I've installed GCC and many other things to make iOS into a developer platform.
(Such as copying .dylibs from Xcode.)
I have absolutely no problem witb compiling LAME, libfaac, vorbis, flac, FFmpeg(without x264)!!
But when running ./configure in x264(fresh build directly from official git repository)
It says "No working C compiler found." and quits itself.
But, since I know that my device HAS A WORKING C COMPILER, I went to configure and replaced "die" command to "echo" to force bypass error.
And now, I'm seeing many errors when "make".
/usr/local/include/architecture/arm/math.h:271: error: expected ')' bef
ore '/' token
/usr/local/include/architecture/arm/math.h:272: error: expected ')' bef
ore '/' token
In file included from x264.c:33:
common/common.h: In function 'x264_predictor_difference':
common/common.h:276: error: 'for' loop initial declaration used outside
C99 mode
common/common.h: In function 'x264_predictor_roundclip':
common/common.h:295: error: 'for' loop initial declaration used outside
C99 mode
x264.c: In function 'print_csp_names':
x264.c:340: error: 'for' loop initial declaration used outside C99 mode
x264.c: In function 'init_vid_filters':
x264.c:1158: error: 'for' loop initial declaration used outside C99 mod
e
x264.c: In function 'parse_enum_name':
x264.c:1207: error: 'for' loop initial declaration used outside C99 mod
e
x264.c: In function 'parse_enum_value':
x264.c:1218: error: 'for' loop initial declaration used outside C99 mod
e
x264.c: In function 'parse':
x264.c:1432: error: 'for' loop initial declaration used outside C99 mod
e
x264.c:1614: error: 'for' loop initial declaration used outside C99 mod
e
make: *** [x264.o] Error 1
I did bunch of works editing x264.c to just bypass those errors above.
If I do that, then other errors appears. And I just can't compile it.
Anybody can help me??
(PS. My Mac do the same things above.)