gn.py: Could not find gn 报错编译webrtc,求助

root@ubuntu:/home/ndnrtc-env/webrtc-checkout# gn gen out/Release “–args=is_debug=false”
gn.py: Could not find gn executable at: /home/ndnrtc-env/webrtc-checkout/src/buildtools/linux64/gn

ubuntu16.04编译本官网的代码报错,然后把depot_tools内容复制到这个目录下,编译内存爆炸死机,为什么呀,有大佬指导吗,

这个是正确的步骤:
rm -rf depot_tools && git clone https://webrtc.bj2.agoralab.co/webrtc-mirror/depot_tools.git
chmod +x $WORKSPACE/depot_tools/cipd
export PATH=$PATH:$WORKSPACE/depot_tools

不需要把depot_tools里面的内容复制到源码目录,添加到系统PATH里就行了

这个步骤之前就添加过了,不行,提示buildtools/linux64找不到gn文件

vi src/DEPS
# 可以看到,这里面的资源是需要用CIPD下载的,webrtc_mirror里面只镜像了代码,没有编译工具链,工具链需要开代理下载
  'src/buildtools/linux64': {
    'packages': [
      {
        'package': 'gn/gn/linux-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
    'condition': 'checkout_linux',
  },

cd src/buildtools/linux64
git remote -v
alx@DESKTOP-0H14GVN:~/google/webrtc/src/buildtools/linux64$ git remote -v
origin  https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/buildtools (fetch)
origin  https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/buildtools (push)
# 再同时看一下里面的文件状态如下,gn是没有用git仓库管理
alx@DESKTOP-0H14GVN:~/google/webrtc/src/buildtools/linux64$ git status
Not currently on any branch.
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        gn.bat
        gn.py

nothing added to commit but untracked files present (use "git add" to track)

结论是如果需要编译的话,需要开代理,再执行一次gclient sync直到完成,具体步骤请参考 linux配置webRTC环境问题(1)

我试试,感谢