如何解决 ios5 编译 ffmpeg产生的问题

来源:互联网 发布:php实例化对象 编辑:程序博客网 时间:2024/05/16 15:37

以下大家友情支持一下:

做了一个产品,需要人气支持一下,android和iphone上91市场搜索#super junior粉丝团#,或者直接到页面下载http://m.ixingji.com/m.html?p=X16,大家帮忙捧捧场


错误如下:

error: invalid operand in inline asm: 'ldr   ${0:Q}, $1      ldr   ${0:R}, $2  

error: invalid operand in inline asm: 'adds $1, ${2:R}, ${2:Q}, lsr #31



前2个月搞的时候,碰到这个问题,当时找遍google也没人知道,最后改到另外一台电脑用ios 4.1的sdk编译通过。

今天再一试,已经有老外讨论了。记录一下

https://github.com/yuvi/gas-preprocessor/issues/16

http://stackoverflow.com/questions/7874667/trying-to-compile-last-ffmpeg-iphone-error-invalid-operand-in-inline-asm


基本上

1)首选是换sdk, 换4.2,4.3都可

2)禁用 asm 

./configure --disable-asm ...

3)禁用某条语句

Well, just for a quick work, I did this: 
1) find the error source, that is "av_clipl_int32_arm" in libavutil/arm/intmath.h;
2) avoid it. (I simply comment out "#define av_clipl_int32 av_clipl_int32_arm", so don't use NEON for just that one function)


又遇到一个问题:

CClibavcodec/avpacket.o
error: invalid operand in inline asm: 'str  ${2:Q}, $0  
str  ${2:R}, $1  


还不知道怎么搞。。。


原创粉丝点击