Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gn command not found #1

Open
ChenYilong opened this issue Oct 21, 2016 · 0 comments
Open

gn command not found #1

ChenYilong opened this issue Oct 21, 2016 · 0 comments

Comments

@ChenYilong
Copy link
Owner

ChenYilong commented Oct 21, 2016

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant