Hello everyone,
Today I was trying to build CyanogenMod 11 for my Galaxy Nexus. But after any attempt I did I get the following problem:
Code:
target Strip: libwebviewchromium (/home/little/Documents/CyanogenMod_System_11/out/target/product/maguro/obj/lib/libwebviewchromium.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip:/home/little/Documents/CyanogenMod_System_11/out/target/product/maguro/symbols/system/lib/libwebviewchromium.so: File format not recognized
make: *** [/home/little/Documents/CyanogenMod_System_11/out/target/product/maguro/obj/lib/libwebviewchromium.so] Error 1
make: *** Waiting for unfinished jobs....
I am using Oracle Java 6. All the previous *.so files have no problem with compiling. Has anyone else dealt with this problem?
Even I get error on this many times. The reason behind same is it needs lot of memory for compilation compared to other binaries. I tried increasing ram on virtual machine but no success.
Sent from my Nexus 5 using Tapatalk
neobuddy89 said:
Even I get error on this many times. The reason behind same is it needs lot of memory for compilation compared to other binaries. I tried increasing ram on virtual machine but no success.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
So, how much RAM do you suggest to have? If the problem is the RAM I could buy some. It is a cheap modification in order to build my first ROM!
If you are not using virtual machine and have directly installed on pc, try increasing SWAP and build. I have 4 GB RAM for virtual machine and it fails.
Sent from my Nexus 5 using Tapatalk
neobuddy89 said:
If you are not using virtual machine and have directly installed on pc, try increasing SWAP and build. I have 4 GB RAM for virtual machine and it fails.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
One last question as a conclusion. Is it possible to exist another problem and the build fails? If there is even a small possibility I could wait and don't buy new RAM memories.
neobuddy89 said:
Even I get error on this many times. The reason behind same is it needs lot of memory for compilation compared to other binaries. I tried increasing ram on virtual machine but no success.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
TheLiTTle said:
So, how much RAM do you suggest to have? If the problem is the RAM I could buy some. It is a cheap modification in order to build my first ROM!
Click to expand...
Click to collapse
Did you ever determine how much ram you need? I'm getting this error too
Guitarboarder28 said:
Did you ever determine how much ram you need? I'm getting this error too
Click to expand...
Click to collapse
I abandoned this project due to my computer age! It would take forever to build a rom! I barely can run Android Studio at the moment.
But, this may be help you!
https://source.android.com/source/building.html
I am intending to build something like this in the near future and cross my fingers that everything will work just fine!
TheLiTTle said:
I abandoned this project due to my computer age! It would take forever to build a rom! I barely can run Android Studio at the moment.
But, this may be help you!
https://source.android.com/source/building.html
I am intending to build something like this in the near future and cross my fingers that everything will work just fine!
Click to expand...
Click to collapse
I know it is long ago since last post, but on official Google page are system requirements
The Android build is routinely tested in-house on recent versions of Ubuntu LTS (14.04), but most distributions should have the required build tools available.
Before you download and build the Android source, ensure your system meets the following requirements:
A Linux or Mac OS system. It is also possible to build Android in a virtual machine on unsupported systems such as Windows. If you are running Linux in a virtual machine, you need at least 16GB of RAM/swap and 100GB or more of disk space in order to build the Android tree. See disk size requirements below.
A 64-bit environment is required for Gingerbread (2.3.x) and newer versions, including the master branch. You can compile older versions on 32-bit systems.
At least 100GB of free disk space for a checkout, 150GB for a single build, and 200GB or more for multiple builds. If you employ ccache, you will need even more space.
Python 2.6 -- 2.7, which you can download from python.org.
GNU Make 3.81 -- 3.82, which you can download from gnu.org,
JDK 7 to build the master branch of Android in the Android Open Source Project (AOSP); JDK 6 to build Gingerbread through KitKat; JDK 5 for Cupcake through Froyo. See Initializing a Build Environment for installation instructions by operating system.
Git 1.7 or newer. You can find it at git-scm.com
Related
Hey All,
I'm curious about compiling a native Linux app for the Nexus One, and wondering what the best way is to go about it in Ubuntu. I found this link for the G1:
http://android-dls.com/wiki/index.php?title=Compiling_for_Android
Since the Snapdragon is also ARM I'm assuming this will work, but is there a decent way to do this on Ubuntu or is my best bet to install Debian in Virtualbox and compile it there?
Thanks,
-Dan
overridex said:
Hey All,
I'm curious about compiling a native Linux app for the Nexus One, and wondering what the best way is to go about it in Ubuntu. I found this link for the G1:
http://android-dls.com/wiki/index.php?title=Compiling_for_Android
Since the Snapdragon is also ARM I'm assuming this will work, but is there a decent way to do this on Ubuntu or is my best bet to install Debian in Virtualbox and compile it there?
Thanks,
-Dan
Click to expand...
Click to collapse
There's a certain amount of vagueness associated with your generalized request.
That said ... ubuntu is sooo very very closely related to debian in the linux fam!
Almost all things described in the link your reference will carry-over/hold-true in ubuntu as they are stated in debian.
But ... the real kicker is the specific app you're trying to compile.
Depending on what the app you want to build depends on ... will determine your overall success. While the reference posted link is insightful, you must understand the need to link against libraries being used. Many of these libraries (at least the basic 'c' ones) you'll find in the AOSP code in android's git repo.
I would suggest taking a look at the "external" projects found in the AOSP code to see how they utilize the makefile setup and build-environment and how they leverage bionic and others to build against.
The way those projects build out, would be essentially what you're looking for .. (I assume) again, I state this without knowing the specific app you have in mind.
Hope that helps.
~enom~
How well would a linux disto made for desktop PCs work with touch screen mouse inputs and no keboard support? (im assuming the Android VK doesnt work when you press on a textbox in a Linux Emulator)
enomther said:
There's a certain amount of vagueness associated with your generalized request.
Click to expand...
Click to collapse
Sorry, I should have been more specific - by Linux native I didn't mean any app in particular, I just meant not a java Android app. I'm really just looking to compile a HelloWorld in C and run it at the shell on the Nexus at this point.
My main concern with the link I posted is that although Ubuntu is based on Debian, Ubuntu does not maintain an ARM version, and the package mentioned in that tutorial is not included in Ubuntu because of this.
So I'm just wondering if anyone has come up with a good solution for compiling for the Nexus in Ubuntu, or if I'm better off installing Debian in a virtual machine.
Thanks,
-Dan
http://android-tricks.blogspot.com/2009/02/hello-world-c-program-on-using-android.html
I think this is more of what I was looking for, I'll build AOSP and try out the agcc script.
-Dan
Another idea: find the Android source wherever Google hides it, I have forgotten, sorry! But they give instructions for setting up a whole ARM cross-compiling environment on x86/x64 Ubuntu, and as I recall, it was really easy, quick and automatic! (so easy, I did it just so I could compile some ARM apps myself, I really didn't need to compile Android, I don't build phones! )
After that, you too should be able to compile your own apps into native ARM binaries.
overridex said:
Sorry, I should have been more specific - by Linux native I didn't mean any app in particular, I just meant not a java Android app. I'm really just looking to compile a HelloWorld in C and run it at the shell on the Nexus at this point.
Click to expand...
Click to collapse
To do this, you need a version of the ARM tools appropriate for your platform and then use them for building a static binary for Linux. You can find such tools at CodeSourcery (http://www.codesourcery.com/sgpp/lite/arm). Given that you sound like you have Ubuntu, then the Linux version from this page, http://www.codesourcery.com/sgpp/lite/arm/portal/[email protected]=lite, would be what you want. The key is to use the --static parm when you build the binary.
From there, just get your binary over onto the target and run it from the command shell.
Remember that static binaries are HUGE. They have to include all library functions linked in.
If you are looking for tiny binaries, look into the NDK and use the BUILD_EXECUTABLE rule for Android.mk.
A few more useful links, but not much that hasn't already been stated in previously referenced links:
http://benno.id.au/blog/2007/11/13/android-native-apps
http://honeypod.blogspot.com/2007/12/dynamically-linked-hello-world-for.html
http://honeypod.blogspot.com/2007/12/initialize-libc-for-android.html
Currently, I think that 10.04 lucid is the "official" build platform for Android. Does anyone have any insight on if/when 12.04 will become the build platform? It seems a likely candidate because of the extra long 5 year support for both desktop and server.
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.
Click to expand...
Click to collapse
http://source.android.com/source/initializing.html
Well it should work fine, I assume Google will update there Ubuntu now 12.04 is stable and LTS
Sent from my ice cream powered Nexus S
12.04 can be easiely used to build Android without any problems, I was using it already.
You can downgrade gcc and g++ to 4.4 and everything works like on 10.04, so no problems in latest version .
It's not really a question about compiling the code, but more about testing. Do you think that google will start testing the code against 12.04 with gcc 4.7 (or whatever is current) or just keep downgrading?
Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master.
Click to expand...
Click to collapse
Also from source.android.com
I thought I read something from JQB about moving to 12.04, but I don't know if this is a trivial issue or if there are major roadblocks, like java, etc. I think that 10.04 is supported until 2013 desktop/2015 server, so it might not even be this summer.
Well, I can build Android (CM9) very well with a recent Debian system.
I think what it basically comes down to is the toolchain you use (i.e. the right version of gcc, g++, etc). If your distribution doesn't have packages for the versions you need, you can always build your own ;-)
Maybe I should ask "when will JBQ upgrade his desktop machine to 12.04?"
gee one said:
It's not really a question about compiling the code, but more about testing. Do you think that google will start testing the code against 12.04 with gcc 4.7 (or whatever is current) or just keep downgrading?
Click to expand...
Click to collapse
You do know that the x86/x64 toolchain in your system is not used by the android build system ? You can't use output of that on any of the currently supported android phones. check the /prebuilt directory for the cross compile toolchains used by android which should work fine on any linux system.
Hello Everyone,
Just had a simple question, do you all develop/code for Android for on Linux? Is it something of a must? This is just a precursor to my next question. Just wanted to get the general feel of things.
hell_storm2004 said:
Hello Everyone,
Just had a simple question, do you all develop/code for Android for on Linux? Is it something of a must? This is just a precursor to my next question. Just wanted to get the general feel of things.
Click to expand...
Click to collapse
either works. linux is easier but also a matter of opinion.
calisro said:
either works. linux is easier but also a matter of opinion.
Click to expand...
Click to collapse
Ok... I was trying to download the android source code, and when i run the repo command I get this:
fatal: unable to start c:\Users\sm187t\JellyBean\.repo\repo/main.py
fatal: [Errno 8] Exec format error
Till now haven't found anything to solve this. Googled since evening. I have Windows 7, Python 2.7 and running the commands on Git Bash.
I don't think compiling android source or any android Rom source is possible in Windows. You can use a vm and run Linux through that to compile but if possible it is best to do it through Linux itself.
You can develop android apps in Windows using the sdk and an ide such as eclipse.
Sent from my PACman GT-I9100 using xda premium
Hmmm.... interesting! I wonder why the ROM is so rigid that only Linux users can be free to use it. There goes my hope! I have an office laptop cant install Linux and VM. Not allowed. :crying:
can some1 just tell me if developpment has any scope using windows os
can i build cm form source without linux or ubuntu
I have not started on tutorials since most of them advice to use linux or ubuntu
so if there is a way to development on windows can u all tell me, how it is possible
or a tutorial ?
Just so u know my computer has 2gb ram and intel hd graphics
so i cant run emulators
Thnx in advance
@Hnk1 help
T3snake said:
can some1 just tell me if developpment has any scope using windows os
can i build cm form source without linux or ubuntu
I have not started on tutorials since most of them advice to use linux or ubuntu
so if there is a way to development on windows can u all tell me, how it is possible
or a tutorial ?
Just so u know my computer has 2gb ram and intel hd graphics
so i cant run emulators
Thnx in advance
@Hnk1 help
Click to expand...
Click to collapse
As a beginner, I would suggest you start with windows/Linux mint. Linux/Ubuntu are for more advanced users and thus provide less friendly interface. There might be a dispute which OS is best. For Android, I would suggest LINUX.
Development requires large amount of disk space (up to 200-500gb); very fast PC (8 or more recommended) high end PC (icore 5 but icore7 recommended)
You might be able to start on windows for small projects with your PC but algorithms would take 6-12 hours rather than half an hour on a high end PC. I know many developers using minimal PC to work so it means more time for processes to finish.
For example
UBUNTU might be better because android is developed under linux with java base. So using Windows might need some adjustments while development. Also, Eclipse is preferred for all development for Android.(programme name)
As android is based on linux, using same base/framework is a key advantage. Ubuntu/Linux is that's why preferred so no more adjustments are made and thus its quicker to develop on Linux. This is because of same internal architecture used by Linux/ubuntu and Android.All Android applications use Linux as its base and java libraries for programming. Java and Linux both being open source can easily be synchronized. The simulation on Linux platform is also fast as compared to windows. You can even download some system files patches for Linux if there is any compatibility problem but it is not possible for windows.
Android/Java/Linux are all open sourced(libraries n API)and easier to debug.
Linux mint is more friendly than Ubuntu in comparision in my opinion.
Another advantage of Linux/ubuntu is booting time/quick interface as windows easily gets laggy after some time.
In the end it comes to user preference.It takes a variety of tools to make software, including drawing tools, so the OS is not that important but helpful to have both Linux and Win. You will need code editors and drawing tools.
Hnk1 said:
As a beginner, I would suggest you start with windows/Linux mint. Linux/Ubuntu are for more advanced users and thus provide less friendly interface. There might be a dispute which OS is best. For Android, I would suggest LINUX.
Development requires large amount of disk space (up to 200-500gb); very fast PC (8 or more recommended) high end PC (icore 5 but icore7 recommended)
You might be able to start on windows for small projects with your PC but algorithms would take 6-12 hours rather than half an hour on a high end PC. I know many developers using minimal PC to work so it means more time for processes to finish.
For example
UBUNTU might be better because android is developed under linux with java base. So using Windows might need some adjustments while development. Also, Eclipse is preferred for all development for Android.(programme name)
As android is based on linux, using same base/framework is a key advantage. Ubuntu/Linux is that's why preferred so no more adjustments are made and thus its quicker to develop on Linux. This is because of same internal architecture used by Linux/ubuntu and Android.All Android applications use Linux as its base and java libraries for programming. Java and Linux both being open source can easily be synchronized. The simulation on Linux platform is also fast as compared to windows. You can even download some system files patches for Linux if there is any compatibility problem but it is not possible for windows.
Android/Java/Linux are all open sourced(libraries n API)and easier to debug.
Linux mint is more friendly than Ubuntu in comparision in my opinion.
Another advantage of Linux/ubuntu is booting time/quick interface as windows easily gets laggy after some time.
In the end it comes to user preference.It takes a variety of tools to make software, including drawing tools, so the OS is not that important but helpful to have both Linux and Win. You will need code editors and drawing tools.
Click to expand...
Click to collapse
Yea the emulator for testing didnt even bootup till now
ill just have to postpone advanced development until i get a newer pc
My last Question....
does android kitchen support this device?
or partially supported? or anything close?
T3snake said:
Yea the emulator for testing didnt even bootup till now
ill just have to postpone advanced development until i get a newer pc
My last Question....
does android kitchen support this device?
or partially supported? or anything close?
Click to expand...
Click to collapse
I don't think android kitchen is supported
T3snake said:
can some1 just tell me if developpment has any scope using windows os
can i build cm form source without linux or ubuntu
I have not started on tutorials since most of them advice to use linux or ubuntu
so if there is a way to development on windows can u all tell me, how it is possible
or a tutorial ?
Just so u know my computer has 2gb ram and intel hd graphics
so i cant run emulators
Thnx in advance
@Hnk1 help
Click to expand...
Click to collapse
I hav ubuntu on my laptop... nd I really want cm on our device but my main problem is that my internet is really slow and cm11 source is around 10 gb which might take weeks on my pc...
T3snake said:
can some1 just tell me if developpment has any scope using windows os
can i build cm form source without linux or ubuntu
I have not started on tutorials since most of them advice to use linux or ubuntu
so if there is a way to development on windows can u all tell me, how it is possible
or a tutorial ?
Just so u know my computer has 2gb ram and intel hd graphics
so i cant run emulators
Thnx in advance
@Hnk1 help
Click to expand...
Click to collapse
for developing android apps.. windows works.. and a fair computer will do... unless you plan to develop something huge...
AVD's have problem with low specs on windows.... try emulating with GenyMotion
and unless you have a gpu.. the graphics won't really matter much..
and as far as building android/cm goes.. you need linux or mac os..
you could build on virtual box.. if you had whopping 16 gb of ram..
maybe cygwin works.. but i don;t know...
and it isn't hard to install ubuntu alongside windows.. all you need is a usb drive and a x64 live cd from their website.. and some patience..
ubuntu is just feels out of place for first time windows user... if you used Mac Os.. it' s easy.. the dock and the universal title bar are not hard to get.. after some time you will be more comfortable with ubuntu than windows.. or that was the case for me..
you need processing power of cpu for building... sure you can build on a p4.. but time is a great factor here.. i7 can compile faster than i5.. and it goes like that..
by the way.. i know a guy who built cm on a 4gb ram and intel core duo... took around 7 hours he said..
psych.half said:
i know a guy who built cm on a 4gb ram and intel core duo... took around 7 hours he said..
Click to expand...
Click to collapse
I hav 6gb ram and i7 processor but my internet download speed is jst 60 kbps...
Vortex99 said:
I hav 6gb ram and i7 processor but my internet download speed is jst 60 kbps...
Click to expand...
Click to collapse
buddy you don't need to download the whole 12gb of source code..
if you only plan to build for a specific device... you don't need the all platform codes for arm/ mips/ x86 or prebuilt binaries for mac os and x86 and x64..
you can select only required prebuilts and projects for your current device and current os by creating an xml file with some modifications in
.repo/local_manifests directory.. then you can reduce size of the source code...
and at 60kbps.. let's average that to 55 kb/ps... it would take around... 53 hours
but you can do continue syncing where you left off... kinda like pause and resume... so maybe in a week you will have the source code..
and just make source you sync the frameworks_base at last.. that one repository alone is over 1 gb.. O_O
psych.half said:
buddy you don't need to download the whole 12gb of source code..
if you only plan to build for a specific device... you don't need the all platform codes for arm/ mips/ x86 or prebuilt binaries for mac os and x86 and x64..
you can select only required prebuilts and projects for your current device and current os by creating an xml file with some modifications in
.repo/local_manifests directory.. then you can reduce size of the source code...
and at 60kbps.. let's average that to 55 kb/ps... it would take around... 53 hours
but you can do continue syncing where you left off... kinda like pause and resume... so maybe in a week you will have the source code..
and just make source you sync the frameworks_base at last.. that one repository alone is over 1 gb.. O_O
Click to expand...
Click to collapse
So ur sayin I can pause during the repo sync command... ??
How can I do that... ??
Now I am really getting interested... but I hav exams right now and my laptop hard disk has failed... btw can you give me detailed explanation about building cm from source or atleast post a link to guide. .. I hav seen many guides but all of them are confusing...
Vortex99 said:
So ur sayin I can pause during the repo sync command... ??
How can I do that... ??
Now I am really getting interested... but I hav exams right now and my laptop hard disk has failed... btw can you give me detailed explanation about building cm from source or atleast post a link to guide. .. I hav seen many guides but all of them are confusing...
Click to expand...
Click to collapse
well.. it's not pause.. it's like.. let's say you have already downloaded 16%.. and you stopped it that.. and turn off your pc..
next time you open pc and run repo sync.. it will check if sources have changed.. if not it will continue to sync from there..
it's just matter of copy and pasting commands to set up sources....it is not that hard..
hmmm... how about i set up the build environment for you on your laptop via ssh .. when your laptop is fixed.. pm me for your thoughts on this..
psych.half said:
well.. it's not pause.. it's like.. let's say you have already downloaded 16%.. and you stopped it that.. and turn off your pc..
next time you open pc and run repo sync.. it will check if sources have changed.. if not it will continue to sync from there..
it's just matter of copy and pasting commands to set up sources....it is not that hard..
hmmm... how about i set up the build environment for you on your laptop via ssh .. when your laptop is fixed.. pm me for your thoughts on this..
Click to expand...
Click to collapse
yea sure m gonna let you know about it...
0
The suitable Android version for the mentioned device is Android Oreo GO Edition.
Seppppx said:
The name is self explanatory. I want the most lightweight Linux distro to compile at least a Linux kernel on my old 3GIG RAM Core 2 Duo laptop. I would also like to compile Android, but I don't know if that's possible on this laptop. Any help is appreciated.
Click to expand...
Click to collapse
Linux Mint is very popular among developers > https://www.linuxmint.com/download.php
and you can never go wrong with Ubuntu > https://ubuntu.com/download/desktop
0
Seppppx said:
The name is self explanatory. I want the most lightweight Linux distro to compile at least a Linux kernel on my old 3GIG RAM Core 2 Duo laptop. I would also like to compile Android, but I don't know if that's possible on this laptop. Any help is appreciated.
Click to expand...
Click to collapse
You can try the LFS project. You can build a linux OS from the ground up and make changes for how you'd like
Seppppx said:
The name is self explanatory. I want the most lightweight Linux distro to compile at least a Linux kernel on my old 3GIG RAM Core 2 Duo laptop. I would also like to compile Android, but I don't know if that's possible on this laptop. Any help is appreciated.
Click to expand...
Click to collapse
I dont know if its the lightest distro, but people have reported that arch linux us one of the fastest.
https://forum.xda-developers.com/showpost.php?p=83040355&postcount=9966
To build android, you are going to need 8GB ram and a LOT of spare disk space.
Have a read of the thread referenced above
https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
0
Seppppx said:
Thanks,
For the 8 Gig thing I don't think I need that when I disable Jack and Ninja.
A lot of disc space is not needed. 130GIGS to download the source code and maybe a bit more (mosly for the swapfile) to build it.
Click to expand...
Click to collapse
Android code I've worked with after download is only 40GB but to compile and use CCache you'll need about 500GB extra
Seppppx said:
Thanks,
For the 8 Gig thing I don't think I need that when I disable Jack and Ninja.
A lot of disc space is not needed. 130GIGS to download the source code and maybe a bit more (mosly for the swapfile) to build it.
Click to expand...
Click to collapse
TheExploitedOne said:
Android code I've worked with after download is only 40GB but to compile and use CCache you'll need about 500GB extra
Click to expand...
Click to collapse
I use VBox for my builds.
My usage:
30GB System (that is bloated as i use for other things)
20GB CCache (i have built multiple roms using this shared partition EXTRA: about 5GB per ROM, and on an SSD)
80GB ROM Source (Single ROM. remember you basically have 2 copies of the ROM source, one in GIT paths and one to build from)
80GB Build OUT
8GB Swap (i have 24GB of physical RAM assigned, so a smaller swap)
PS: as for disabling build features such as Ninja, I have been amazed to read how some people take DAYS to compile a ROM.
DiamondJohn said:
I use VBox for my builds.
My usage:
30GB System (that is bloated as i use for other things)
20GB CCache (i have built multiple roms using this shared partition)
80GB ROM Source (Single ROM. remember you basically have 2 copies of the ROM source, one in GIT paths and one to build from)
80GB Build OUT
8GB Swap (i have 24GB of physical RAM assigned, so a smaller swap)
PS: as for disabling build features such as Ninja, I have been amazed to read how some people take DAYS to compile a ROM.
Click to expand...
Click to collapse
After they've started using Ninja to build the OS I've not chose to proceed further with Android development for a custom OS as I've ran into many errors. I'm actually going to try that and see if I can speed up builds
0
Seppppx said:
Thank for the accurate storage consumption.
As for ninja. One of the reason it makes builds fast is it's usage of RAM. If I disable it and let make build everything I should have much less use of RAM. I would rather have my builds take a week rather than not succeed.
Click to expand...
Click to collapse
Is that for the newer build trees? CM 11 on my old Core i7 PC a while back took at least a couple hours
That's a pretty long build time though
Seppppx said:
Thank for the accurate storage consumption.
As for ninja. One of the reason it makes builds fast is it's usage of RAM. If I disable it and let make build everything I should have much less use of RAM. I would rather have my builds take a week rather than not succeed.
Click to expand...
Click to collapse
I have never built without Ninja, but to limit iot, you can configure the number of parallel threads it uses. I have gone down to 1 when I am trying to debug a failing build. I think the RAM usage may be a flow on effect from running parallel compilation i.e. cutting it down to 1 or 2 may help.
As I said, i have always used Ninja. however, my understanding is that it takes care of dependencies, so if your build stops at 99% (ie day 5) you can simply restart the build where it stopped, after correcting the source code error. I dont know, but if it needs to start at 0% again without Ninja, thats going to hurt.
PS: my build times are 50-90min, and disk usage above are for Nougat to Q/10
I compiled the kernel with vps with Debian based OS using 2 cores. It takes up to 1 hour, but it doesn't matter to me. maybe you can try the ubuntu or debian distro and you change the lighter Desktop Environment to cut RAM usage.
BryanHafidz said:
I compiled the kernel with vps with Debian based OS using 2 cores. It takes up to 1 hour, but it doesn't matter to me. maybe you can try the ubuntu or debian distro and you change the lighter Desktop Environment to cut RAM usage.
Click to expand...
Click to collapse
I have ways used a Linux desktop without the VM. I strongly dislike Windows as they've been proven to spy on their users. I prefer Linux Mint it's a light weight OS and still preform like Ubuntu