0 - Android Q&A, Help & Troubleshooting

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

Related

Cross compiling for the Nexus One on Linux

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

[Q] Linux or Android?

I understand this is a UI preview, but will the full build be completly linux and use a linux kernel? I really don't want it to use anything Andrtoid related, otherwise it wouldn't truely be linux. :/
They have said they are only doing it at the start for compatibility.
And technically android is full Linux and therefore Ubuntu is now.
Sent from my Galaxy Nexus using xda app-developers app
Forty.Two said:
I understand this is a UI preview, but will the full build be completly linux and use a linux kernel? I really don't want it to use anything Andrtoid related, otherwise it wouldn't truely be linux. :/
Click to expand...
Click to collapse
Hello,
To be honest, both Android and Ubuntu are both Linux based Distributions and both use a Linux kernel. In fact, both distributions branch from the same Linux source tree.
With this said, the touch preview uses the CyanogenMod 10.0 Android fork as a base. Ubuntu is ran inside of a chroot, This means that they are both using a shared kernel.
Keith Myers
Forty.Two said:
I understand this is a UI preview, but will the full build be completly linux and use a linux kernel? I really don't want it to use anything Andrtoid related, otherwise it wouldn't truely be linux. :/
Click to expand...
Click to collapse
you dont like android ? they both from linux
I think the confusion here is that when most people who have used a Linux system in the past, prior to Android or didn't know that Android used the Linux kernel, they were actually using GNU/Linux, so they think that is what Linux is. Some people may even mix up that the X server is also a part of Linux.
But Android isn't GNU/Linux so when some one says 'Linux distro', they are probably thinking of a GNU/Linux distro, like Debian, Slackware, Fedora, Ubuntu, Red Hat, Mint, etc, and not just an OS that also happens to have the Linux Kernel in it.
So the title of this post probably should have been GNU/Linux or Android.
Findee said:
They have said they are only doing it at the start for compatibility.
And technically android is full Linux and therefore Ubuntu is now.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
android is java+linux and ubuntu is fully linux it's big differece
Sent from my GT-I9000 using xda app-developers app
bobo1337 said:
android is java+linux and ubuntu is fully linux it's big differece
Sent from my GT-I9000 using xda app-developers app
Click to expand...
Click to collapse
I think you are confusing linux and bsd.
http://m.techrepublic.com/blog/10things/10-differences-between-linux-and-bsd/1709
Read #3
In summary- android IS Linux. All the extra stuff you are used to calling Linux is just.... Extra stuff. Linux IS the kernel.
--
Sent from my Kindle Fire 2, CM 10.1
Hey guys, I wanna ask you question, is Ubuntu touch like Ubuntu for arm? i mean it uses the same deb packages or New different OS ?
mindmajick said:
I think you are confusing linux and bsd.
http://m.techrepublic.com/blog/10things/10-differences-between-linux-and-bsd/1709
Read #3
In summary- android IS Linux. All the extra stuff you are used to calling Linux is just.... Extra stuff. Linux IS the kernel.
--
Sent from my Kindle Fire 2, CM 10.1
Click to expand...
Click to collapse
By that logic, technically, Android isn't Linux (since Android isn't a Kernel), rather Android uses Linux.
BukaKing said:
By that logic, technically, Android isn't Linux (since Android isn't a Kernel), rather Android uses Linux.
Click to expand...
Click to collapse
That would also mean ubuntu isn't Linux
PHONE SLOW CLICK ME?
_____________________________________
"No one lives in the slums because they want to. It's like this train. It can't run anywhere except where its rails take it."- Cloud[FFvii]"​
TingTingin said:
That would also mean ubuntu isn't Linux
PHONE SLOW CLICK ME?
_____________________________________
"No one lives in the slums because they want to. It's like this train. It can't run anywhere except where its rails take it."- Cloud[FFvii]"​
Click to expand...
Click to collapse
Exactly, ubuntu isn't Linux, it is GNU/Linux meaning it runs the Linux kernel (Just like android does), and contains the GNU utilities and software that make the system usable. Android is also GNU/Linux, but android has less GNU software and most "apps" are run using dalvik. So really ubuntu and Linux are both running "Linux Kernel" but aren't just Linux. Pure Linux would just be the kernel as Linux isn't an OS.
TingTingin said:
That would also mean ubuntu isn't Linux
PHONE SLOW CLICK ME?
_____________________________________
"No one lives in the slums because they want to. It's like this train. It can't run anywhere except where its rails take it."- Cloud[FFvii]"​
Click to expand...
Click to collapse
And that is why they are called Linux distribution.
And even calling Android a distribution is kind of a loose definition of what a distribution is and was. It used to be a long time ago that a distribution was intending to distribute Linux, which the only way Linux would be useful is to also have several applications and modules that make a useable operating system, that is what a distribution was. Android doesn't exactly fit that, users are not even really aware of or deal with Linux related things, although some of the apps they use may access parts of the file system (sysfs, procfs, etc), and users can install software that gives them access also. And it could be argued too though that Ubuntu doesn't exactly fit this either, since there are not stripped down versions and they are starting to force dominance of certain packages, but they still allow for low level access.
---------- Post added at 09:32 PM ---------- Previous post was at 09:19 PM ----------
This is what Richard Stallman has to say:
http://www.gnu.org/gnu/gnu-linux-faq.html#linuxsyswithoutgnu
Are there complete Linux systems without GNU? (#linuxsyswithoutgnu)
There are complete systems that contain Linux and not GNU; Android is an example. But it is a mistake to call them “Linux” systems.
Android is very different from the GNU/Linux system—because it contains very little of the GNU system, only Linux. Overall, it's a different system. If you call the whole system “Linux”, you will find it necessary to say things like, “Android contains Linux, but it isn't Linux, because it doesn't have the usual Linux [sic] libraries and utilities [meaning the GNU system].” Android contains just as much of Linux as GNU/Linux does. What it doesn't have is the GNU system. Android replaces that with Google software that works quite differently. Thus, what makes Android different is the lack of GNU.
Click to expand...
Click to collapse
joshumax said:
Exactly, ubuntu isn't Linux, it is GNU/Linux meaning it runs the Linux kernel (Just like android does), and contains the GNU utilities and software that make the system usable. Android is also GNU/Linux, but android has less GNU software and most "apps" are run using dalvik. So really ubuntu and Linux are both running "Linux Kernel" but aren't just Linux. Pure Linux would just be the kernel as Linux isn't an OS.
Click to expand...
Click to collapse
BukaKing said:
And that is why they are called Linux distribution.
And even calling Android a distribution is kind of a loose definition of what a distribution is and was. It used to be a long time ago that a distribution was intending to distribute Linux, which the only way Linux would be useful is to also have several applications and modules that make a useable operating system, that is what a distribution was. Android doesn't exactly fit that, users are not even really aware of or deal with Linux related things, although some of the apps they use may access parts of the file system (sysfs, procfs, etc), and users can install software that gives them access also. And it could be argued too though that Ubuntu doesn't exactly fit this either, since there are not stripped down versions and they are starting to force dominance of certain packages, but they still allow for low level access.
---------- Post added at 09:32 PM ---------- Previous post was at 09:19 PM ----------
This is what Richard Stallman has to say:
http://www.gnu.org/gnu/gnu-linux-faq.html#linuxsyswithoutgnu
Click to expand...
Click to collapse
I didn't read your u guys comment fully it's like 1 a.m here but anyways my comment was just show that people often use the word Linux loosely when referring to any Linux based operating system they'll call ubuntu Linux but then when it comes android not so because it's further off the tree and not pure Linux but the only pure Linux OS is well Linux (and yes Linux is an operating system though only command line that's all u need to constitute a OS) so I was just pointing out that this is a bit confusing it makes more sense when you refer to a Linux based OS as a distro but that's kinda hazy if simply using the kernel = distro then android is a distro but then same problem as b4 it's further off the tree so then does it mean it isn't a distro because of that which is actually due to differences with mobile phone hardware but we're taking about the os anyways I was just pointing out that this isn't very black and white
PHONE SLOW CLICK ME?
_____________________________________
"No one lives in the slums because they want to. It's like this train. It can't run anywhere except where its rails take it."- Cloud[FFvii]"​
To rephrase the question: Will the apps and system functions use languages other than java? In desktop Ubuntu, there was a wide assortment of languages the could be compiled and run as scripts. Will we see the same multi-language support on the full mobile distributions?
Forty.Two said:
To rephrase the question: Will the apps and system functions use languages other than java?
Click to expand...
Click to collapse
They already do...QML
PHONE SLOW CLICK ME?
_____________________________________
"No one lives in the slums because they want to. It's like this train. It can't run anywhere except where its rails take it."- Cloud[FFvii]"​
Forty.Two said:
To rephrase the question: Will the apps and system functions use languages other than java? In desktop Ubuntu, there was a wide assortment of languages the could be compiled and run as scripts. Will we see the same multi-language support on the full mobile distributions?
Click to expand...
Click to collapse
It's hard to be completely certain what Canonical will do, but it is very likely it will support multiple languages.
Technically you can build applications on Android in any language you want provided there is a native runtime module or the language compiles to native libraries, but Java always sits in the middle.
From what I have seen with Ubuntu Touch, Java is not even included by default, I saw it pull openjdk when I installed Eclipse, and that Java is not even the same as the one Android uses.
Currently the only API that draws to the display is Qt5 and QML, other APIs like GTK+ and even Qt4 try to use an X server which doesn't exist currently, although you can route to a remote x server and display applications remotely.
But in terms of language support I've tested c, c++, JavaScript, python, bash scripts and java, and I'm almost certain perl will work. Again the problem is though, if they don't have Qt5 bindings they can only display on a remote x server or in a remotely connected terminal and not on the device.
1) Linux is not, I repeat, NOT an operating system. It's a kernel, which is the core coding which an operating system is based around. The kernel acts as a medium between software and hardware.
2) Ubuntu, Android, Fedora, Arch, WebOS , and etcetera are not Linux. They are Linux based operating systems that are built upon the Linux kernel.
3) BSD, Free BSD, Mac OS X+, iOS, and Solaris are all UNIX based operating systems. Linux is a clone of the UNIX kernel.
4) The GUI is not part of Linux. X server is a back end for the X11 window service. And is not included in the core kernel itself.
5) I like tacos.
Sent from my Galaxy Nexus using Tapatalk 2
TingTingin said:
I didn't read your u guys comment fully it's like 1 a.m here but anyways my comment was just show that people often use the word Linux loosely when referring to any Linux based operating system they'll call ubuntu Linux but then when it comes android not so because it's further off the tree and not pure Linux
Click to expand...
Click to collapse
Android is pure linux, with a google init system, rather than a GNU one..
but the only pure Linux OS is well Linux (and yes Linux is an operating system though only command line that's all u need to constitute an OS)
Click to expand...
Click to collapse
What you are "seeing" when you refer to a comand line is almost enitrely made up of GNU coreutils(bash, ls, cd, rm, cp) running on a linux kernel. Linux is NOT an OS.
so I was just pointing out that this is a bit confusing it makes more sense when you refer to a Linux based OS as a distro but that's kinda hazy if simply using the kernel = distro then android is a distro but then same problem as b4 it's further off the tree so then does it mean it isn't a distro because of that which is actually due to differences with mobile phone hardware but we're taking about the os anyways I was just pointing out that this isn't very black and white
Click to expand...
Click to collapse
A "distro" is usually made up of: The kernel (linux), the GNU coreutils, a package manager, a Desktop Environment, and some integrated applications. "linux" is a kernel. You can replace the kernel with any other compatible kernel, as Arch/HURD, Debian/kFreeBSD, and Arch/BSD have proven. Don't confuse linux with GNU/Linux.
Android is merely a distribution of liunx with a different set of coreutils, tablet based applications, and the play store as a package manager, and Dalvik VM.
linux is NOT andoperating system.
crshbndct said:
Android is pure linux, with a google init system, rather than a GNU one..
What you are "seeing" when you refer to a comand line is almost enitrely made up of GNU coreutils(bash, ls, cd, rm, cp) running on a linux kernel. Linux is NOT an OS.
A "distro" is usually made up of: The kernel (linux), the GNU coreutils, a package manager, a Desktop Environment, and some integrated applications. "linux" is a kernel. You can replace the kernel with any other compatible kernel, as Arch/HURD, Debian/kFreeBSD, and Arch/BSD have proven. Don't confuse linux with GNU/Linux.
Android is merely a distribution of liunx with a different set of coreutils, tablet based applications, and the play store as a package manager, and Dalvik VM.
linux is NOT andoperating system.
Click to expand...
Click to collapse
...
Wikipedia
Linux is a
Unix-like computer
operating system
Click to expand...
Click to collapse
en.m.wikipedia.org/wiki/Linux
How Stuff Works
Linux is an operating system --
very much like UNIX -- that has
become very popular over the last
several years.
Click to expand...
Click to collapse
computer.howstuffworks.com/question246.htm
Linux.org
Linux is an operating system that
evolved from a kernel created by
Linus Torvalds
Click to expand...
Click to collapse
www.linux.org/article/view/what-is-linux
getgnulinux.org
Linux is an operating system, a
large piece of software that
manages a computer. It is similar
to Microsoft Windows, but it is
entirely free.
Click to expand...
Click to collapse
www.getgnulinux.org/en/linux/
Webopedia.com
The Linux open source operating
system, or Linux OS, is a freely
distributable, cross-platform
operating system based on Unix
Click to expand...
Click to collapse
www.webopedia.com/TERM/L/linux_os.html
Linux.com
What is Linux?
Linux is, in simplest terms, an
operating system.
Click to expand...
Click to collapse
www.linux.com/learn/new-user-guides...ere-an-overview-of-the-linux-operating-system
http://bit.ly/13rqRIv
PHONE SLOW CLICK ME?
_____________________________________
"No one lives in the slums because they want to. It's like this train. It can't run anywhere except where its rails take it."- Cloud[FFvii]"​
MikeyCriggz said:
1) Linux is not, I repeat, NOT an operating system. It's a kernel, which is the core coding which an operating system is based around. The kernel acts as a medium between software and hardware.
2) Ubuntu, Android, Fedora, Arch, WebOS , and etcetera are not Linux. They are Linux based operating systems that are built upon the Linux kernel.
3) BSD, Free BSD, Mac OS X+, iOS, and Solaris are all UNIX based operating systems. Linux is a clone of the UNIX kernel.
4) The GUI is not part of Linux. X server is a back end for the X11 window service. And is not included in the core kernel itself.
5) I like tacos.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
+1, like, :good:.

Windows vs VM vs Linux

So i been developing actual apps for about 6 months, and want to get into customizing rooms, so i see that alot of you guys use cygwin, a virtual machine or linux and wanted to know if its really worth it running linux natively instead of a vm or cygwin...
if yes, then whats the general opinion on linux vs osx?
I have definitely used all three with good success. If you are RAM limited on your machine, skip the virtual machine option since you need enough RAM to run your base OS and the VM separately. One advantage to running linux natively is that you are forced to think in the linux world, which for an Android behind the curtain point of view is closer to the mentality you need. You might learn some good stuff familiarizing yourself with linux that later applies to your Android exploits!
SuperMiguel said:
So i been developing actual apps for about 6 months, and want to get into customizing rooms, so i see that alot of you guys use cygwin, a virtual machine or linux and wanted to know if its really worth it running linux natively instead of a vm or cygwin...
if yes, then whats the general opinion on linux vs osx?
Click to expand...
Click to collapse
I'm using win7 with andLinux installed. Unfortunately andLinux is based on Ubuntu 9.04 so I can't use most toolchains built on newer distro because they need newer versions of glibc.
So I'm forced to use CodeSourcery's toolchain which uses it's own glibc.

[Q] libwebviewchromium.so Error 1

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

[Q] Any scope of development on Windows?

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...

Categories

Resources