Compiling x264 for iOS 5 armv7.

Just have a drink and chat
arter97
New Cone
New Cone
Posts: 1
Joined: 17 Feb 2012 13:41

Compiling x264 for iOS 5 armv7.

Postby arter97 » 17 Feb 2012 14:02

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.)

julius rambles
New Cone
New Cone
Posts: 1
Joined: 18 Jan 2013 18:31

Re: Compiling x264 for iOS 5 armv7.

Postby julius rambles » 18 Jan 2013 18:34

I know i'm a bit late but i'm having the same issue.
Does anyone know how to solve it?

Thank you,
Julius


Return to “Coffee Corner”

Who is online

Users browsing this forum: No registered users and 20 guests