Hey guys,
i want to start compiling android from source, but i wonder which ubuntu version would do the best job for me? The ubuntu 12.04. LTS or the new 13.04.
I looked a bit around and most of the guides are written for 12.04. and also Google mentions on its developer site only 12.04. as beta supported.
Can i also use 13.04?
Thx for your answers!
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 Everybody,
Many of you must be familiar with Ubuntu Mobile, Ubuntu's latest project in the field of mobiles. Now the question is- Is Ubuntu supported on HTC HD2?
The Answer to the question is- Yes. As explained in the Linked video(See Below) by UBUNTU Co-founder, Ubuntu works on all the devices which can run Android. If you're not sure what I am saying, please see the video, seek it to 20:49 if you don't want to watch the whole video. It is based on Android Kernel only.
See the video here- http://youtu.be/cpWHJDLsqTU
(Already Seeked) - http://youtu.be/cpWHJDLsqTU?t=20m49s
I am here with a new challenge, and that is the Porting Of Ubuntu Mobile. I hope you all are ready for it! :good:
I will be waiting for a Native SD Release!
Many of you might be thinking what is this thing doing in Android Section, the answer to your question is as its kernel is same with that of Ubuntu, you guys have the best chances of porting Ubuntu Mobile into HD2.
Your help will be appreciated.
Regards
Arun Wadhwa
CEO, Themegastar1 Technologies
Even though it might use the android kernel it belongs in ubuntu section.
P.s. The android kernel and ubuntu kernel are built from the same source anyway
曾经尝试过Ubuntu核心,非常好,十分期待Ubuntu的SD ROM
Native SD 个人感觉好像是掩耳盗铃
Is there any developer working on ubunto mobile for hd2?
Sent from my HTC HD2 using xda premium
So I want to compile Cyanogenmod myself. But all the time I'm trying to set up my ubuntu it's not working. And often the threads are out of date. So could you tell me what I'll need in order to compile roms ? Toutorials would be nice. Of course I'm running a 64bit Ubuntu 12.04. If I schould use another distro just tell me.
Thank you in advance.
Just starting to learn how to build ROMs from source using Ubuntu in VirtualBox, so bear with me, but is there a best version of Ubuntu to build ROMs? I've seen 14.04, 14.10, and 15.04 all thrown into the mix. Are they all more or less the same? Or is there a certain version better compatible with this type of stuff? Appreciate any help.
hawkstwelve said:
Just starting to learn how to build ROMs from source using Ubuntu in VirtualBox, so bear with me, but is there a best version of Ubuntu to build ROMs? I've seen 14.04, 14.10, and 15.04 all thrown into the mix. Are they all more or less the same? Or is there a certain version better compatible with this type of stuff? Appreciate any help.
Click to expand...
Click to collapse
More or less, they wont make a difference depending on what you're building. Generally, AOSP and CM will build fine on any, but if you plan to use custom toolchains, the 15.04 is your best option because of updated libraries.
I'm using Ubuntu 14.04 STL. I think the UI and functions are useful enough.
Decided to go with 14.04 and everything worked out great. Thanks for your help guys!