• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 编译android源码要多长时间阿? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 81888
精华: 0
发帖: 38
金钱: 205 两
威望: 41 点
贡献值: 0 点
综合积分: 76 分
注册时间: 2012-11-15
最后登录: 2013-05-24
楼主  发表于: 2012-11-26 11:06

 编译android源码要多长时间阿?

研究了一下android源码
按照手册上./build-android
然后我就快疯掉了。停在这里了2个小时了。这是出问题了还是正常阿?要多久阿?
我是在虚拟机上编译的



自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
贡献值: 27 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2012-11-26 11:14
你的空间可能不够了

用虚拟机可能要4,5个小时了,差点配置的,可能要超过8小时

我这里使用4核8GB内存,一般需要1-2小时
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 81888
精华: 0
发帖: 38
金钱: 205 两
威望: 41 点
贡献值: 0 点
综合积分: 76 分
注册时间: 2012-11-15
最后登录: 2013-05-24
2楼  发表于: 2012-11-26 11:44

 回 1楼(mindee) 的帖子

呀咩喋~~~~~~
版主这个怎么停止阿,直接关掉终端OK吗?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2012-11-26 11:58

 回 楼主(neigeshenme) 的帖子

另外,你得用64位的Linux来编译。Android 2.3开始只支持在64位OS上编译。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 81888
精华: 0
发帖: 38
金钱: 205 两
威望: 41 点
贡献值: 0 点
综合积分: 76 分
注册时间: 2012-11-15
最后登录: 2013-05-24
4楼  发表于: 2012-11-26 12:26

 回 3楼(kasim) 的帖子

我了个去阿。。。。
开发手册上说用32位的啊。而且还红色字体特殊说明的。
我晕阿。。。。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2012-11-26 13:16

 回 4楼(neigeshenme) 的帖子

哦,那也许是友善之臂修改了,不用担心了:)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
贡献值: 0 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
6楼  发表于: 2012-11-26 14:42
看错误信息,明显的make 出异常了,如果是用Fedora,可以更新一下,
yum install make
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2012-11-26 14:47
这是AOSP(http://source.android.com/source/initializing.html)上关于编译环境的解释,希望对你有帮助

Setting up a Linux build environment
These instructions apply to all branches, including master.

The Android build is routinely tested in house on recent versions of Ubuntu LTS (10.04), but most distributions should have the required build tools available. Reports of successes or failures on other distributions are welcome.

For Gingerbread (2.3.x) and newer versions, including the master branch, a 64-bit environment is required. Older versions can be compiled on 32-bit systems.

Note: It is also possible to build Android in a virtual machine. If you are running Linux in a virtual machine, you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree.

Detailed instructions for Ubuntu and MacOS follow. In general you will need:

Python 2.5 -- 2.7, which you can download from python.org.

GNU Make 3.81 -- 3.82, which you can download from gnu.org,

JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download both from java.sun.com.

Git 1.7 or newer. You can find it at git-scm.com.
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 81649
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2012-11-12
最后登录: 2012-12-18
8楼  发表于: 2012-11-27 16:07
这个跟系统关系很大,我在单位的服务器上(两路6核CPU还支持超线程)下20分钟就行,在我的笔记本上4线程+虚拟机编了5个多小时。
级别: 新手上路
UID: 81888
精华: 0
发帖: 38
金钱: 205 两
威望: 41 点
贡献值: 0 点
综合积分: 76 分
注册时间: 2012-11-15
最后登录: 2013-05-24
9楼  发表于: 2012-11-27 17:10
嗯,我现在虚拟机上正编译着呢哈。
之前一直不能编译,出了好多问题,现在才解决。
这次编译完后,我下次再小修改源码,再编译起来是不是就快啦?还是还要等那么久?
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go