如何编译Chromium content_shell_apk

来源:互联网 发布:马尔可夫链算法 编辑:程序博客网 时间:2024/05/21 15:37

步骤链接是:http://code.google.com/p/chromium/wiki/AndroidBuildInstructions

实际操作的时候,会遇到错误提示,本文描述如何解决。

 

English: Hi everyone for building apk. If you type "make -j4 content_shell_apk" and the console show "no rules for make content_shell_apk"(Seems to be). The key point is,how to "append the following line to your .gclient file". Just suppose you create a dir named "/home/yourname/chromium",and execute "gclient sync --nohooks" and other steps for downloading code and compile apk.The .gclient file is a hidden file in /home/yourname/chromium. Now execute "sudo gedit .gclient" and "append the following line to your .gclient file" Then redo the steps "gclient sync --nohooks" and other steps in the doc,you can download files for build apk.  Now you can "make -j4 content_shell_apk" successfully.

Simplified Chinese: 致各位试图编译apk的同仁. 如果在运行"make -j4 content_shell_apk" 后,命令行显示"no rules for make content_shell_apk"(大概如此). 解决这个问题的关键点是,如何执行本文的第一步,即如何"append the following line to your .gclient file". 假定你创建了一个目录叫做"/home/yourname/chromium",并且在这个目录下运行"gclient sync --nohooks"等步骤来取得源码并编译.此时 .gclient是目录/home/yourname/chromium下的隐藏文件. 你可以在"/home/yourname/chromium"下运行"sudo gedit .gclient" 并且"append the following line to your .gclient file" 然后重新执行"gclient sync --nohooks" 以及本文后面的步骤,这样可以下载到编译apk所需的各文件.  这样就可以成功的使用"make -j4 content_shell_apk"编译出apk了.

原创粉丝点击