webrtc ios 端编译错误

1. mac下

rror:Command/usr/bin/python trunk/setup_links.py returned non-zero exit status 1


2. mac 

 Conflict in /src/third_party
Cannot rebase: You have unstaged changes.
Please commit or stash them.

解决:
git reset --hard


./setup_links.py --force

gclient sync --force

gclient runhooks




3.  depot_tools update failed. Conflict in
xxx@xxxxxx:~/libjingle$ gclient config   http://libjingle.googlecode.com/svn/trunk/
depot_tools update failed. Conflict in /opt/depot_tools
Cannot rebase: You have unstaged changes.
Please commit or stash them.

解决方法:
原因就是你改动了,depot tools这个文件夹下面的文件,解决方法就是到
cd  depot tools/
git checkout *

4. IOError: [Errno 13] Permission denied: './.gclient'

cff@ubuntu :~/webRTC/webRTC_Checkout$ fetch webrtc

Running: gclient config --spec 'solutions = [


  {


    "managed": False,


    "name": "src",


    "url": "https://chromium.googlesource.com/external/webrtc.git",


    "custom_deps": {},


    "deps_file": "DEPS",


    "safesync_url": "",


  },


]


'


Traceback (most recent call last):


  File "/home/cff/webRTC/depot_tools/gclient.py", line 2313, in <module>


    sys.exit(main(sys.argv[1:]))


  File "/home/cff/webRTC/depot_tools/gclient.py", line 2299, in main


    return dispatcher.execute(OptionParser(), argv)


  File "/home/cff/webRTC/depot_tools/subcommand.py", line 252, in execute


    return command(parser, args[1:])


  File "/home/cff/webRTC/depot_tools/gclient.py", line 1896, in CMDconfig


    client.SaveConfig()


  File "/home/cff/webRTC/depot_tools/gclient.py", line 1295, in SaveConfig


    self.config_content)


  File "/home/cff/webRTC/depot_tools/gclient_utils.py", line 142, in FileWrite


    with codecs.open(filename, mode=mode, encoding='utf-8') as f:


  File "/usr/lib/python2.7/codecs.py", line 881, in open


    file = __builtin__.open(filename, mode, buffering)


IOError: [Errno 13] Permission denied: './.gclient'


Traceback (most recent call last):


  File "/home/cff/webRTC/depot_tools/fetch.py", line 335, in <module>


    sys.exit(main())


  File "/home/cff/webRTC/depot_tools/fetch.py", line 330, in main


    return run(options, spec, root)


  File "/home/cff/webRTC/depot_tools/fetch.py", line 324, in run


    return checkout.init()


  File "/home/cff/webRTC/depot_tools/fetch.py", line 128, in init


    self.run_gclient('config', '--spec', self._format_spec())


  File "/home/cff/webRTC/depot_tools/fetch.py", line 76, in run_gclient


    return self.run(cmd_prefix + cmd, **kwargs)


  File "/home/cff/webRTC/depot_tools/fetch.py", line 66, in run


    return subprocess.check_call(cmd, **kwargs)


  File "/usr/lib/python2.7/subprocess.py", line 511, in check_call


    raise CalledProcessError(retcode, cmd)


subprocess.CalledProcessError: Command '('gclient', 'config', '--spec', u'solutions = [\n  {\n    "managed": False,\n    "name": "src",\n    "url": "https://chromium.googlesource.com/external/webrtc.git",\n    "custom_deps": {},\n    "deps_file": "DEPS",\n    "safesync_url": "",\n  },\n]\n')' returned non-zero exit status 1



解决方法:


修改webRTC_Checkout的权限为可读可写


chmod 777 webRTC_Checkout



4.  执行  gclient runhooks 遇到这个错误:

AssertionError: Multiple codesigning fingerprints for identity: iPhone Developer

解决:

在文件 : src/tools/gyp/pylib/gyp/xcode_emulation.py and at lines 1008-1009

comment the following line :

注释:
#assert identity not in cache or fingerprint == cache[identity], (

#”Multiple codesigning fingerprints for identity: %s” % identity)


5. 

git pull 时出现 error: Your local changes to the following files would be overwritten by merge的解决办法

% git pull
...error: Your local changes to the following files would be overwritten by merge:
    webfront/app/views/Projects/index.html
    webfront/app/views/main.html
Please, commit your changes or stash them before you can merge.

In those cases, you want to stash

% git stash
Saved working directory and index state WIP on master: 11f6d51 merge changes
HEAD is now at 11f6d51 merge changes

Then you pull...

rndtaxcredit/rndtaxcredit 
% git pull
...
5 files changed, 61 insertions(+), 69 deletions(-)

And finally you stash pop

% git stash pop
....
Dropped refs/stash@{0} (865bf3eef6b7752cff098dbf3dd20b2ffebb02f7)

git checkout is useful for switching between branches. A best practice, in conjunction with working with an issue tracker such as jira, is to create branches for each issue.

git checkout -b i777

where, issue 777 would be the issue number for this issue. This enables a convenient coupling between the name of your branches and the issues you are working on. "git checkout -b some_branch" is equivalent to the two commands "git branch some_branch" and "git checkout some_branch”


6. gyp: ../../third_party/class-dump/class-dump.gyp not found

cff:src xufangzhou$ webrtc/build/gyp_webrtc

Updating projects from gyp files...

gyp: ../../third_party/class-dump/class-dump.gyp not found (cwd: /Users/xufangzhou/Desktop/webrtc-ios-7-20/ios/webrtc/src)

gyp: Call to 'cd ../../../.. && build/gyp_chromium "--depth=." --ignore-environment "--format=ninja" "-Goutput_dir=xcodebuild/ninja-iossim" "-Ddisable_nacl=1" "-Dmac_sdk=10.9" "-Dparent_generator=xcode" testing/iossim/iossim.gyp' returned exit status 1.

解决:
export GYP_GENERATORS="xcode” 之后要 添加
export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1” 


7.  No module named gyp_chromium

cff:src xufangzhou$ webrtc/build/gyp_webrtc

Traceback (most recent call last):

  File "webrtc/build/gyp_webrtc", line 23, in <module>

    import gyp_chromium

ImportError: No module named gyp_chromium


解决:

cd src

./setup_links.py --force
生成如下链接

6.  gyp: ../../third_party/class-dump/class-dump.gyp not found

cff:src xufangzhou$ webrtc/build/gyp_webrtc

Updating projects from gyp files...

gyp: ../../third_party/class-dump/class-dump.gyp not found (cwd: /Users/backup/webrtc-build-scripts/ios/webrtc/src)

gyp: Call to 'cd ../../../.. && build/gyp_chromium "--depth=." --ignore-environment "--format=ninja" "-Goutput_dir=xcodebuild/ninja-iossim" "-Ddisable_nacl=1" "-Dmac_sdk=10.9" "-Dparent_generator=xcode" testing/iossim/iossim.gyp' returned exit status 1.


在all.gyp中,设置

    'include_examples%': 0,

    'include_tests%': 0,


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值