编译xbmc遇到的问题

从github上下载的最新的版本,

  
  
  
  
-----------------------------------------------------------------------------
3.1 Install Cross libs and runtime environment
-----------------------------------------------------------------------------
 $ cd $HOME/XBMC
  $ cd tools/darwin/depends
 $ ./bootstrap
 $ ./configure --with-darwin=ios
 $ make
-----------------------------------------------------------------------------
4. How to compile
-----------------------------------------------------------------------------
Both Xcode and Terminal compilation require that build environment be setup
from the step 3.1.
 $ cd $HOME/XBMC
 $ make -C tools/darwin/depends/xbmc
 $ make clean
 $ make xcode_depends
 $ make -C lib/addons/script.module.pil


编译到 make Xcode-depends时出错

./libavutil/arm/intmath.h:106:14: error: invalid operand in inline asm: 'adds   $1, ${2:R}, ${2:Q}, lsr #31  
itet   ne                     
mvnne  $1, #1<<31             
moveq  $0, ${2:Q}                
eorne  $0, $1,  ${2:R}, asr #31  

网上着了一下,已经有老外讨论了。记录一下

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)禁用某条语句


编译完成后在xcode中编译工程,到最后出错:

/Users/UserName/Library/Developer/Xcode/DerivedData/xxx-beqfpakeslcfgjghvltweyjadfjk/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Script-B354780B144C8CA2002C6922.sh: line 4: /Developer/xcode-crack/gen_entitlements.py: No such file or directory

Solution:Build Phases中删除Run Script(在最新的代码工程中叫code sign)
分析是项目在破解Xcode上开发的,为了能装到真机,做了免费证书
编译xbmc遇到的问题_第1张图片

你可能感兴趣的:(xcode,File,Build,破解,Terminal,compilation)