[FFmpeg-user] ffmpeg for iPhone fails
Patrick
humer4489 at gmail.com
Wed Sep 28 02:21:54 CEST 2011
On Sep 27, 2011, at 5:01 AM, 杨兴军 wrote:
> Hello!
> I want to use ffmpeg for iPhone app. But I fail.
> Xcode version: 3.2.6.
> iOS SDK version:4.3.
> iOS device: iPod touch 4, 4.3.3(8J2).
>
>
> The Xcode console messages:
> "warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/libavutil.dylib (file not found).
> warning: Unable to read symbols from "libavutil.dylib" (not yet mapped into memory)."
> "dyld: Library not loaded: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/libavutil.dylib
>
> Referenced from: /var/mobile/Applications/462CB733-4699-4BB4-B2BF-F2C157DA5C7B/Book+.app/Book+
>
> Reason: image not found"
>
>
> Get the latest FFmpeg from SVN .
> Configure FFmpeg with one of the following commands:
> (1) ./configure --enable-cross-compile --cross-prefix=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 --prefix=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr --extra-cflags="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk" --extra-ldflags="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -Wl,-syslibroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk" --arch=armv6 --enable-armv6 --enable-gpl --enable-shared --enable-swscale --enable-zlib --enable-bzlib --disable-ffmpeg --disable-ffplay --disable-ffserver
> (2) make
> (3) sudo make install
>
>
> I wish you help me solve the problem. Thanks a lot!!!!
>
>
>
"Unable to read symbols"..... means architecture mismatch. Remember compile i386 for simulator, and armv6/7 for device. Use this as a starting point:
http://www.codza.com/extracting-frames-from-movies-on-iphone
Patrick
More information about the ffmpeg-user
mailing list