cross compiling for Chromecast - Google Chromecast

Hello,
I have a rooted Chromecast, and just getting started programming in C...
Out of pure curiosity how do i go about compiling C for Chromecast?
I know this is not the way to develop a Chromecast app, im interested the embedded platform.
There seems to be many finicky methods to cross compile for ARMv7, however i don't want to lead myself down a rabbit hole only to learn i took the wrong approach.
Any pointers would be appreciated ?.

Related

I Want To learn

I want to learn how to develop...I mean of course it wont be an over the night thing, but i still have 70 years to spare.
I want to contribute to the community, and isn't that what linux is all about?
My first question, Can i develop android in ubuntu? or does it HAVE to be eclipse?
I wouldn't mind downloading both anyways since i want to learn how to use ubuntu anyways.
yeah..so i guess all im asking is for someone to set me in the right direction?
Also android is written in java too right?
hoshmosh said:
I want to learn how to develop...I mean of course it wont be an over the night thing, but i still have 70 years to spare.
I want to contribute to the community, and isn't that what linux is all about?
My first question, Can i develop android in ubuntu? or does it HAVE to be eclipse?
I wouldn't mind downloading both anyways since i want to learn how to use ubuntu anyways.
yeah..so i guess all im asking is for someone to set me in the right direction?
Also android is written in java too right?
Click to expand...
Click to collapse
Eclipse is a program that runs under ubuntu/windows/mac. It's only needed for development if you're going to be doing app modifications, etc, it completely depends what kind of development you want to do.
Kernel/Source editing can be done in notepad if you want but you're still gonna need to know some java.
Interested in learning as well
I'm also interested in learning to develop apps for android and apparently we're in the same boat and level (beginner) - Currently I have 22 apps and 10 live wallpapers I'd like to develop but I'm still doing the reading and software acquisitions necessary to start so PLEASE drop me a line on anything you figure out or learn and where you acquired the info/tutorial - who knows maybe we can get this software company going lol (big dreams here)
The guys on here seem to be light years ahead of us but I've got hella time to devote to learning, testing and development so I'm ready to go
Meltus said:
Eclipse is a program that runs under ubuntu/windows/mac. It's only needed for development if you're going to be doing app modifications, etc, it completely depends what kind of development you want to do.
Kernel/Source editing can be done in notepad if you want but you're still gonna need to know some java.
Click to expand...
Click to collapse
JAVA knowledge is a MUST for development.
Also based on my own experience Eclipse does not work well under Windows.
I've tried to modify the Launcher app from Cyanogen's source to have 7 screens in stead of 5 and it failed each time. I edited it in Ubuntu and it worked the first time. Just need to have Java 5 installed (not sure if there was a fix for Java 6 discovered yet). Eclipse works very well in Windows if you just plan on editing .9.png files but that's more theming than development. So bottom line Ubuntu is highly advisable.
I guess you could always start somewhere by reading some of this.

Need to learn the android development... From basics....

Hi,
First of all thank you so much for starting a forum for learning the Android Development.
I am very much interested in learning android, and i have gone through the official android developers site, and downloaded the SDK.
But i am stuck there, coz i am very new to the Linux/Unix part. I would like to learn more about that, but i do not want to learn programming unless it's necessary. I know it will take a long long time to learn that. So can anyone help me with the app development or fixing/understanding ROM/Kernels.
Sorry if i am being too much jumpy in the starting itself, It's because i do not know where/how to start.
Thanks,
Les
lesfauves said:
Hi,
First of all thank you so much for starting a forum for learning the Android Development.
I am very much interested in learning android, and i have gone through the official android developers site, and downloaded the SDK.
But i am stuck there, coz i am very new to the Linux/Unix part. I would like to learn more about that, but i do not want to learn programming unless it's necessary. I know it will take a long long time to learn that. So can anyone help me with the app development or fixing/understanding ROM/Kernels.
Sorry if i am being too much jumpy in the starting itself, It's because i do not know where/how to start.
Thanks,
Les
Click to expand...
Click to collapse
Unfortunately without learning programming, you will find it difficult to do any app development and kernel understanding or fixing.
Programming is key to both of these. So although you don't want to, have a look at some of the resources out there on how to learn to program.
Apps are written in java, kernel code is mostly C.
Maybe this helps? I think failing to start by learning to program will just leave you disappointed.
If it's okay, I'd like to suggest something.
@lesfauves
For kernel development, you really need to learn C, C+, C++ etc. C is the most important language here. However if you're gonna build vanilla kernels (with no modifications whatsoever), a simple guide should do it. Modifying source code requires knowledge of C (and maybe some other languages) as pulser_g2 has said.
For app development, you need to know the basics of Java. It's a must. Otherwise you'll end up getting nowhere.
For ROMs, you need to have a good understanding of both Java and C (and some other languages).
You can learn these online. I'm learning C myself. It's really easy.
Hope I helped.
sgt. meow
I too want to learn android development, just dont know where to start. Been waiting for xda university to open up for this very purpose. now I went through the site and still have a couple questions. I see that learning C is fundamental, where would you guys suggest would be the best place to learn? i was hoping for something like codeacademy, they dont have C though. Also, which distribution of linux would you guys suggest to install?
If you just want to dive in, and have fun creating small Android apps, learning Android concepts as you go, I highly recommend MIT App Inventor (AI): http://appinventor.mit.edu/ . It used to be Google AI but Google wanted to focus on other things.
I have decades of experience in Unix & Linux low level mostly C software development, but was new to Android & Java in Feb. 2011. App Inventor was a great intro to Android concepts, but it seems almost impossible to make commercial quality apps of any size with it.
So after a few months I dove into Java with the Android SDK & the concepts I learned with AI transferred well.
If you want to run Linux on your PC, which is a great way to learn Linux in general, Ubuntu remains quite popular, but a lot of us techy types have moved to Mint. I'm still on Ubuntu but will likely try Mint at some point.
The original and seminal book on C language is this: http://en.wikipedia.org/wiki/The_C_Programming_Language . It was a great intro for me back in the 1980's. But many C++ people will tell you learning C first may mess you up for C++. I never really caught on to C++ and don't care now as Java is IMO better.
This is the seminal book for C++: http://en.wikipedia.org/wiki/The_C++_Programming_Language
In general I think C is better for kernel and low level Android NDK stuff; C is the language of the kernel. For higher level Java of course, using Eclipse as an IDE since it still is the most widely used IDE I think.
Any good sites or tutorials for learning Linux????????????/
l0lh4rd said:
Any good sites or tutorials for learning Linux????????????/
Click to expand...
Click to collapse
http://www.ee.surrey.ac.uk/Teaching/Unix/
sgt. meow said:
If it's okay, I'd like to suggest something.
@lesfauves
For kernel development, you really need to learn C, C+, C++ etc. C is the most important language here. However if you're gonna build vanilla kernels (with no modifications whatsoever), a simple guide should do it. Modifying source code requires knowledge of C (and maybe some other languages) as pulser_g2 has said.
For app development, you need to know the basics of Java. It's a must. Otherwise you'll end up getting nowhere.
For ROMs, you need to have a good understanding of both Java and C (and some other languages).
You can learn these online. I'm learning C myself. It's really easy.
Hope I helped.
sgt. meow
Click to expand...
Click to collapse
I wanted to to help my phone community and my self of course...from where you can learn c online??i know my way with pc i make some roms from my community but i need to start learning to compile from source!!! share your links if you can thanks!!
Lynda.com
pikachukaki said:
I wanted to to help my phone community and my self of course...from where you can learn c online??i know my way with pc i make some roms from my community but i need to start learning to compile from source!!! share your links if you can thanks!!
Click to expand...
Click to collapse
A great site that I use to learn with for web design and development is Lynda.com which has a good amount of C tutorials and learning. It isn't free but a subscription is worth the site. There is a huge amount of information, tutorials, and learning that can be done there.
Go look at my post in this forum section.! May help you
Sent from my PG86100 using xda app-developers app
Thats great but remember that i study pc hardware and i dont have none of programming knowlage at all!!!i once try to learn basic but i get bored cause i dont needed then
pikachukaki said:
Thats great but remember that i study pc hardware and i dont have none of programming knowlage at all!!!i once try to learn basic but i get bored cause i dont needed then
Click to expand...
Click to collapse
Aaaaaah gotcha
Sent from my PG86100 using xda app-developers app
Search for newboston.org in Google it has tutorial + forums for every language + android app development too must see website for me! Enjoy development
Sent from my GT-S5360 using xda premium
Ok lets say i want to learn how to make a device tree for my device cause noone make it...then compile aosp or cm and make it a usable rom for a device...to go to a bookstore to buy a book in my language to remove the possibility of wrong learning...what book to buy??java, c , c++??
This is a great idea, and as i have just started learning C at university (And Java next year woo!) i will be visiting this alot for reference and tutorials. I still find C hard to get grips with but i do have a basic understanding of it. I also like messing around with kernel's and stuff on android and really want to make my own ROM or kernel soon!
So thanks XDA and everyone involved in this !
pikachukaki said:
Ok lets say i want to learn how to make a device tree for my device cause noone make it...then compile aosp or cm and make it a usable rom for a device...to go to a bookstore to buy a book in my language to remove the possibility of wrong learning...what book to buy??java, c , c++??
Click to expand...
Click to collapse
If you want to learn how to make a device tree check outthis guide, then when your ready to try compiling AOSP and Cyanogenmod check out this guide. If you want to learn to compile ROM's and then I would recommend a book on Linux and C for programming kernels such as C All-in-One Desk Reference. On the other hand if you want to program applications a good Java book is important and I would recommend Head First Java. Hope this clears things up, let me know if you still have questions.
shimp208 said:
If you want to learn how to make a device tree check outthis guide, then when your ready to try compiling AOSP and Cyanogenmod check out this guide. If you want to learn to compile ROM's and then I would recommend a book on Linux and C for programming kernels such as C All-in-One Desk Reference. On the other hand if you want to program applications a good Java book is important and I would recommend Head First Java. Hope this clears things up, let me know if you still have questions.
Click to expand...
Click to collapse
My point is basically to learn how to create the device tree and then compile any rom i can and hope that i can use fixes from others and hints from others...im not really interesting of making an application!!
can read my guide here
mithun46 said:
can read my guide here
Click to expand...
Click to collapse
Please stop spamming your link across each thread. And tone down the MASSIVE text in the thread - it just looks unprofessional.
so, where do I start? C or C++?
Sent from my R800i

Lone dev looking for coding help

So i might not have the tag on here but i have done dev work (rootzwiki is where i used to dev.) and i have created a small little guide for the BSOD fix for our nexus 5's. Which is actually what brings me here today. Im looking for someone that has coding knowledge (not android persay but someone that is good with commands and cmd prompt.) im currently working on a project and ive got the base of it down i just am needing a bit of help for auto input. If ANYONE is willing to help please let me know. I dont want to post me code here as this project is a milestone for me as so far ive written it all by myself.
Thanks in advance.
What is BSOD?
Gene Poole said:
What is BSOD?
Click to expand...
Click to collapse
Black Screen of Death. Its an issue i myself had and 1-3 others have had. Its very rare and only happened to me because i acidently flashed hells core (using the app from the playstore) and it flashed the nexus 4 kernel on my nexus 5 causing my device to not show anything on the screen NOR boot to either boot recovery OR the actual os.
wolfirotisha said:
So i might not have the tag on here but i have done dev work (rootzwiki is where i used to dev.) and i have created a small little guide for the BSOD fix for our nexus 5's. Which is actually what brings me here today. Im looking for someone that has coding knowledge (not android persay but someone that is good with commands and cmd prompt.) im currently working on a project and ive got the base of it down i just am needing a bit of help for auto input. If ANYONE is willing to help please let me know. I dont want to post me code here as this project is a milestone for me as so far ive written it all by myself.
Thanks in advance.
Click to expand...
Click to collapse
Well... I know the fundamentals of programming and I have participated in a programming contest (I'm 18) and also I am quite good with automation cause I needed it for my projects.
Below you can see my work on a .bat file I've made to make easier my work on a homebrew PSP game.
https://github.com/Leajian/cspsp-nightly/blob/master/jge/Projects/cspsp/CSPSPdevTools-1.0.bat
The same goes with linux related automation, as you can see below here, I've created an (unfinished and buggy) menu script for android which is modular and unfortunately kinda slow and incompatible with some devices, cause by the time I was writing it I had no particular knowledge about programming. I was self-taught and I had been using goto methods. :silly:
https://github.com/Leajian/xMenu
I don't know what exactly you're looking for, please be more specific. I think I can help, but after 29/5/2015 because at that day my finals end.
EDIT: As long as your device has intact bootloader partition and it boots to it, you can always flash a nexus 5 kernel and/or a recovery image. It is suggested that you flash a factory image afterwards.
wolfirotisha said:
So i might not have the tag on here but i have done dev work (rootzwiki is where i used to dev.) and i have created a small little guide for the BSOD fix for our nexus 5's. Which is actually what brings me here today. Im looking for someone that has coding knowledge (not android persay but someone that is good with commands and cmd prompt.) im currently working on a project and ive got the base of it down i just am needing a bit of help for auto input. If ANYONE is willing to help please let me know. I dont want to post me code here as this project is a milestone for me as so far ive written it all by myself.
Thanks in advance.
Click to expand...
Click to collapse
I can help u out depending on what ur looking for, I have experience in java, c++, c, c#, python, bash, html5 and php, lmk if I can be of assistance

I'm a NOOB and I need some guidance.

I'm just getting into Android development , app development, and Web creations. I am taking courses through Microsoft and learning Android on my own. That's all great however there are things they just dont teach on there. Is there anyone out there that would give me some advice on where I can look to hone my skills and get into hacking some of these platforms and creating more practical apps that people actually need. I am interested in rooting Android devices I've tried a bunch successful a few times but I can't find the software I need to be proficient at it. Any pointers?
Jp2348 said:
I'm just getting into Android development , app development, and Web creations. I am taking courses through Microsoft and learning Android on my own. That's all great however there are things they just dont teach on there. Is there anyone out there that would give me some advice on where I can look to hone my skills and get into hacking some of these platforms and creating more practical apps that people actually need. I am interested in rooting Android devices I've tried a bunch successful a few times but I can't find the software I need to be proficient at it. Any pointers?
Click to expand...
Click to collapse
hello and welcome, first off spend some time researching in here for
Jp2348 said:
I'm just getting into Android development , app development, and Web creations. I am taking courses through Microsoft and learning Android on my own. That's all great however there are things they just dont teach on there. Is there anyone out there that would give me some advice on where I can look to hone my skills and get into hacking some of these platforms and creating more practical apps that people actually need. I am interested in rooting Android devices I've tried a bunch successful a few times but I can't find the software I need to be proficient at it. Any pointers?
Click to expand...
Click to collapse
Welcome aborad,
Try to locate your devices section and be prepared to deep read in order to find the jewels

PROTECT YOUR DIGITAL KNOW HOW (ANTI HACKING CODE PROTECTION)

Hi all,
i am new in this forum, but i know it a long time. i hope i will find here some peole interested in PROTECTING DIGITAL KNOW HOW. I am working on code, that can protect code from riping, modifying, decompiling. Also my code will protect against game cloning.
So, yes, will look more deep into section of this this forum and try to find some maybe developers of games and apps who need to avoid hacking (cracking) of their games/apps. I am developing a protection for ANDROID devices - its based on Virtual Machine, maybe you know VMPR0TECT from windows platform, and i am coding something similar for ANDROID. Maybe in the near future also for iOS (apple devices).
If some could help me with pointing me to the right people, that would be great, thank you.
KNOW_HOW_PROTECTION said:
Hi all,
i am new in this forum, but i know it a long time. i hope i will find here some peole interested in PROTECTING DIGITAL KNOW HOW. I am working on code, that can protect code from riping, modifying, decompiling. Also my code will protect against game cloning.
So, yes, will look more deep into section of this this forum and try to find some maybe developers of games and apps who need to avoid hacking (cracking) of their games/apps. I am developing a protection for ANDROID devices - its based on Virtual Machine, maybe you know VMPR0TECT from windows platform, and i am coding something similar for ANDROID. Maybe in the near future also for iOS (apple devices).
If some could help me with pointing me to the right people, that would be great, thank you.
Click to expand...
Click to collapse
Welcome.to XDA,
This forums are full of knowledge, just read and search and you will find your way.

Categories

Resources