简体   繁体   English

为Android构建铬项目

[英]Building chromium project for Android

I am following the instructions here to build chromium project for android on ubuntu 14.04. 我按照这里的说明在ubuntu 14.04上为android构建chrome项目。 I was able to successfully check out the code, now I'm trying to configure the build. 我能够成功检查代码,现在我正在尝试配置构建。 I'm using GN to configure, so I run "gn args out/Default", however I get this error: gn.py: Could not find gn executable at: /home/moon/chromium/src/buildtools/linux64/gn 我正在使用GN来配置,所以我运行“gn args out / Default”,但是我得到了这个错误:gn.py:找不到gn可执行文件:/ home / moon / chromium / src / buildtools / linux64 / gn

All I have in that above folder is sha1 files, I don't seem to have python files. 我在上面的文件夹中的所有内容都是sha1文件,我好像没有python文件。 However, I had not received any errors during checkout process. 但是,在结账过程中我没有收到任何错误。 What am I doing wrong and how can I fix this? 我做错了什么,我该如何解决这个问题?

Thanks a lot! 非常感谢!

I had the same problem as you but I managed to build Chromium finally. 我遇到了和你一样的问题,但我终于成功建立了Chromium。

Most probably, you may not successfully install any necessary dependencies. 最有可能的是,您可能无法成功安装任何必要的依赖项。

Since you are on Linux, run the following command under src : 由于您使用的是Linux,请在src下运行以下命令:

$ ./build/install-build-deps.sh

After this you can rerun the command: 在此之后,您可以重新运行该命令:

$ gn gen out/Default

After giving credit to Brett Wilson , run: 在赞扬Brett Wilson之后 ,运行:

gclient runhooks

It worked for me. 它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM