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
I want to install python and run my python code and its libs on an Android dev board like PandaBoard. I do not need to access devices through my python code so I don't think I would need android-scripting. (Correct me if I am wrong please)
I want to compile and run my python code and its used libs (like twisted) on the android device as a daemons so can I just install regular python on my device? If yes how (as there is no apt-get) and if no, and I have to install android-scripting, why is that the case. why do I have to do it that way?
I am a little lost in the difference between my Linux experience on ubuntu and my Linux experience on Android so sorry if I am not making sense!
Bump...
iCode said:
I want to install python and run my python code and its libs on an Android dev board like PandaBoard. I do not need to access devices through my python code so I don't think I would need android-scripting. (Correct me if I am wrong please)
I want to compile and run my python code and its used libs (like twisted) on the android device as a daemons so can I just install regular python on my device? If yes how (as there is no apt-get) and if no, and I have to install android-scripting, why is that the case. why do I have to do it that way?
I am a little lost in the difference between my Linux experience on ubuntu and my Linux experience on Android so sorry if I am not making sense!
Click to expand...
Click to collapse
try QPython
Good Day XDA!
I'm just asking a little help because i don't know where to start to.. I do have a project in school that will use ARM Board and Android OS. I have bought an ARM Board but I don't know where to start to in integrating..
1. The ARM board has already installed Android OS 2.2 but I want to install a higher version of OS. Can someone give me an advice or tutorials that can help me to upgrade or to build android for an ARM?
2. I've seen the article about building android from source but I don't know what's next after building the source from Linux OS and in building boot loaders and drivers.
3. What are the ways in making applications pre-installed aside from ADB? Is it possible to have a pre-installed app in a custom ROM?
That's all! Thank you!
Hi. I am having xiaomi redmi note 3(kenzo). I know a bit of java and c languages. I want to build android rom from scratch for kenzo. Not from the cyanogenmod, but from the google's source code. I need help finding proprietary binaries and tools required. I have installed ubuntu on vmware workstation 12 and done everything stated in "Downloading Source" section of source.android.com page. I need help in finding proprietary binaries and a little bit of assistance in making the rom bootable. I am no way building the rom from cyanogenmod sources, because i know i will end up building a nightlie of cm at max. please help. Thank you.
Hello I am Jimmy and I am starting on ROM development for mobile and PC. I have a few doubts regarding that.
1> Android-x86 Oreo is the latest build on their website, But roms like Bliss, they ported Pie on PC. How to do that? I mean how to get Android-x86 pie?
2> How much average time does it take to compile the source of Android(both x86 and arm64)? [Specs for consideration: Intel Core i7-8750H 2.2 Ghz 6 cores, 16 GB RAM, Ubuntu 18.04 ]
3> What IDE/Development softwares should I use for modifying the original source code that is? Android Studio? Netbeans? Notepad++? Or what??
And a question not regarding development:
I have a device lying around my drawer. My bro used to use it until he bought a new one. Its LAVA Z60 which is based on MTK MT6737 chipset. I researched but found out that there are very few MTK devices with custom roms. Is LAVA Z60 one of em? And if so, where to get the Device Tree, Vendor, Kernel etc.. for the device? Also, note that MTK Droid tools does identify the device, but I cant create scatter file cuz there is just one item on the list with location and every other thing as 0.
Soo.. yeah thats all. Please help me if you can. Thanks in advance.
Help