[FFmpeg-devel] MPEG decoding on the iPhone is buggy

Måns Rullgård mans
Thu Oct 1 19:02:38 CEST 2009


Jason Millard <jsm174 at gmail.com> writes:

> You'll definitely want to compile with the latest iPhone SDK and use GCC
> 4.2. If you use 4.0.1, ffmpeg libraries run extremely slow.
> I run into the same compile issues you are running into with dsputil_arm_s.S
> and a few others, so I usually just shut off ARM optimizations off all
> together.
>
> ./configure --enable-cross-compile --arch=arm --disable-armv5te
> --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-iwmmxt
> --disable-altivec --disable-neon --cc=arm-apple-darwin9-gcc-4.2.1
>
> After ./configure, I go in and manually edit config.h and config.mak:
>
> ARCH_ARM no
> HAVE_ARCH_ARM 0

You can exactly the same result in a clean manner using this configure
command:

configure --arch=c --enable-cross-compile --cc=arm-apple-darwin9-gcc-4.2.1

With most gnu-based compilers, it is advisable to use
--cross-prefix=arm-apple-darwin9- (or whatever your compiler is
called), rather than passing --cc directly.  This also implies
cross-compilation, so --enable-cross-compile becomes unnecessary in
this case.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list