简体   繁体   English

Wheh构建android平台代码系统挂起

[英]Wheh building android platform code system hangs

Am trying to build AOSP code. 我正在尝试构建AOSP代码。 Following the instruction am able to start the build but after few minutes my system hangs .System has 3GB RAM and 320GB hdd. 按照说明可以开始构建,但是几分钟后我的系统挂起。系统具有3GB RAM和320GB HDD。

it will not compile ..requires about 6 gig ram or more..trust me I use to build on 3gig machines sometime ago.. stop doing it about 1.5 years ago due changing requirements of needed ram. 它不会编译..requires大约需要6 gig ram或更多..信任我,我曾经在3gig机器上构建过..大约1.5年前,由于更改了所需ram的要求而停止这样做。

The good news is that most economy machines you see in walmart now for about $300 to $500 can in fact build AOSP code even though they may have only 8 12 gig ram. 好消息是,您现在在沃尔玛看到的大多数经济型机器(大约300至500美元)实际上都可以构建AOSP代码,即使它们只有8个12 gig ram。

It looks like you may need additional RAM to compile AOSP code. 看来您可能需要其他RAM才能编译AOSP代码。 Although it may build with 6 GB, I recommend at least 8 GB; 尽管它可以用6 GB生成,但我建议至少8 GB。 without the extra gigabytes, bad things could happen. 没有多余的千兆字节,可能会发生不好的事情。

I have a 3GB RAM ubuntu system and AOSP source compiles without problems. 我有一个3GB RAM ubuntu系统,并且AOSP源代码编译没有问题。 Try using 尝试使用

make -j4

This will spawn 4 threads and will compile faster on a multi-core CPU. 这将产生4个线程,并且将在多核CPU上更快地编译。

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

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