rror:Command/usr/bin/python trunk/setup_links.py returned non-zero exit status 1
Cannot rebase: You have unstaged changes.
Please commit or stash them.
./setup_links.py --force
gclient sync --force
gclient runhooks
depot_tools update failed. Conflict in /opt/depot_tools
Cannot rebase: You have unstaged changes.
Please commit or stash them.
4. IOError: [Errno 13] Permission denied: './.gclient'
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 遇到这个错误:
解决:
在文件 : 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.
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
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,