2014-02-14 50 views
3
構建的ffmpeg

我試圖建立fmmpeg適用於iOS與以下配置:錯誤而iOS的

./configure --prefix=build/armv7 --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --enable-avutil --enable-avresample --enable-cross-compile --sysroot="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk" --target-os=darwin --cc=gcc --extra-cflags="-arch armv7 -mfpu=neon -miphoneos-version-min=6.0" --extra-ldflags="-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=6.0" --arch=arm --cpu=cortex-a9 --enable-pic

當我試圖讓我收到了如下錯誤:

AS libavcodec/arm/vc1dsp_neon.o libavcodec/arm/vc1dsp_neon.S:751:10: error: unexpected token in argument list ra .dn d28.i8 ^ libavcodec/arm/vc1dsp_neon.S:752:10: error: unexpected token in argument list rb .dn d29.i8 ^ libavcodec/arm/vc1dsp_neon.S:753:10: error: unexpected token in argument list rc .dn d30.i8 ^ libavcodec/arm/vc1dsp_neon.S:754:10: error: unexpected token in argument list rd .dn d31.i8 ^ libavcodec/arm/vc1dsp_neon.S:757:14: error: invalid operand for instruction vmov ra, #4 ^ libavcodec/arm/vc1dsp_neon.S:758:14: error: invalid operand for instruction vmov rb, #53 ^ libavcodec/arm/vc1dsp_neon.S:759:14: error: invalid operand for instruction vmov rc, #18 ^ libavcodec/arm/vc1dsp_neon.S:760:14: error: invalid operand for instruction vmov rd, #3 ^ libavcodec/arm/vc1dsp_neon.S:864:10: error: unexpected token in argument list ra .dn d28.i16 ^ libavcodec/arm/vc1dsp_neon.S:865:10: error: unexpected token in argument list rb .dn d29.i16 ^

什麼可能是錯誤?

+0

[錯誤編譯ffmpeg for iPhone](http://stackoverflow.com/questions/9316852/errors-compiling-ffmpeg-for-iphone) –

回答

3

嘗試添加標誌--disable-neon--disable-armv5te

順便說一句,下面的一組標誌確實爲AMRv7的伎倆:

'--arch=arm', 
'--enable-pic', 
"--extra-cflags='-arch armv7 -miphoneos-version-min=6.0'", 
"--extra-ldflags='-arch armv7 -miphoneos-version-min=6.0'", 
'--disable-neon', 
'--enable-optimizations', 
'--disable-debug', 
'--disable-armv5te', 
'--disable-armv6', 
'--disable-armv6t2', 

'--disable-ffmpeg', 
'--disable-ffplay', 
'--disable-ffserver', 
'--disable-ffprobe', 
'--disable-doc', 
'--disable-bzlib', 
'--target-os=darwin', 
'--enable-cross-compile', 
'--enable-version3', 

或者事件越好,你改變你的libAV 氣體預處理器的版本保持版本:https://github.com/libav/gas-preprocessor

希望這會有所幫助。