Can't fetch chromium source for android

894 views
Skip to first unread message

Nirjhar Mistry

unread,
Nov 16, 2015, 11:26:51 PM11/16/15
to Chromium-dev
I'm trying to build chromium for android in Ubuntu interface, but I can't get the source code described in "android build instruction" page. I have synced the depot_tools, but when I enter " fetch android" command in a specific directory to sync the code I'm getting error. "No command fetch found". any suggestion? 

Ian Clelland

unread,
Nov 16, 2015, 11:50:57 PM11/16/15
to nairi...@gmail.com, Chromium-dev
You'll want to add your depot_tools checmout directory to your $PATH variable. At the top of the instructions for installing depot_tools (https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up) it tells you how to add it to your $PATH.

It also mentions that you'll want to put that into your shell's login script so that it's set up every time you log in or start a new terminal window.
 

On Mon, Nov 16, 2015 at 11:26 PM, Nirjhar Mistry <nairi...@gmail.com> wrote:
I'm trying to build chromium for android in Ubuntu interface, but I can't get the source code described in "android build instruction" page. I have synced the depot_tools, but when I enter " fetch android" command in a specific directory to sync the code I'm getting error. "No command fetch found". any suggestion? 

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Nirjhar Mistry

unread,
Nov 17, 2015, 12:00:07 AM11/17/15
to Chromium-dev, nairi...@gmail.com
You mean I have to set the path to the directory where I'd like to sync the source?

Ian Clelland

unread,
Nov 17, 2015, 12:12:15 AM11/17/15
to nairi...@gmail.com, Chromium-dev
No, your PATH variable determines where your shell looks for commands when you enter them. It usually includes directories like /usr/bin and /usr/local/bin, where the operating system commands are stored. If you want to be able to use the 'fetch' command from any directory, then the directory where the 'fetch' command is stored (your depot_tools checkout directory) needs to be in your PATH. Then you can run `fetch android` from the directory where you want to sync the source.

There are lots of resources online about setting your PATH, and files like .bashrc -- you should probably do some research there if you still need to learn more. chromium-dev isn't the right forum for more general Ubuntu advice, but hopefully you're at least pointed in the right direction :)

Nirjhar Mistry

unread,
Nov 17, 2015, 12:26:10 AM11/17/15
to Chromium-dev, nairi...@gmail.com
Thank you sir. i'll look into the web for more info.
Reply all
Reply to author
Forward
0 new messages