WebRTC
WebRTC copied to clipboard
gn command not found
try to check if the
echo $PATH
/Users/chenyilong/opensource/webrtc_build/webrtc/src/depot_tools:/Users/chenyilong/opensource/webrtc_build/webrtc/src/depot_tools:/Users/chenyilong/.rvm/gems/ruby-2.2.2/bin:/Users/chenyilong/.rvm/gems/ruby-2.2.2@global/bin:/Users/chenyilong/.rvm/rubies/ruby-2.2.2/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/chenyilong/.rvm/bin
If you've done this
echo "export PATH=$PWD/depot_tools:$PATH" > $HOME/.bash_profile
then check the prefix
ls /Users/chenyilong/opensource/webrtc_build/webrtc/src/depot_tools
if logs like this
: No such file or directory
this means wrong path.
use the right one instead
ls /Users/chenyilong/opensource/webrtc_build/
or you can try to install gn command with brew:
brew install --HEAD https://raw.githubusercontent.com/Homebrew/homebrew-head-only/master/depot-tools.rb
make sure your Termal able to access https://gerrit.googlesource.com
or you will meet this error:
Failure while executing: git clone --branch v1.12.37 https://gerrit.googlesource.com/git-repo.git /Users/chenyilong/Library/Caches/Homebrew/repo--git
remember those commands:
chmod +x src/buildtools/mac/gn
../../depot_tools/gn gen out/Release-universal --args='target_os="ios" target_cpu="x64" additional_target_cpus=["arm", "arm64", "x86"] is_component_build=false is_debug=false ios_enable_code_signing=false'