Understanding Cross Compiling and How it Relates to Android
Cross compiling is the process of creating executable code for a platform other than the one actually doing the compiling. There are many reasons why this is of use, but arguably the most relevant is compiling for a platform that doesn’t have the required tools to build for itself.
A great example of cross compiling is building Android from source on your x86 machine. But even those who have built AOSP-based ROMs may not be familiar with the cross compiling process, as there are various tools available to make this incredibly streamlined. This then becomes a bit problematic when one wants to compile an external binary for use on the alternate platform.
Luckily, XDA Recognized Contributor JustArchi created a thorough and well explained guide on cross compiling. The guide itself begins with defining cross compiling and why it’s important. It then continues by showing users how to properly create a build environment. Then, the guide covers how to build a native C application for Android, as well as how to optimize the newly created native binaries.
If you wish to build external apps for Android devices or simply want to learn more about cross compiling on Linux, head over to the guide thread, grab a coffee, and read up.
Want something on the XDA Portal? Send us a tip!
HTC has just released three new blind test adverts comparing app loading speed, audio and selfies. Whilst you are surely astounded that HTC won every time, the tests were incredibly biased and their release shows something concerning about the company and how they are performing in the current market. One of the many reasons companies tend to utilize blind trials is when they feel that their product is comparable or better than its competitors. This leads to the assumption...
Apps are at the front and center of any smartphone experience, and with over a million apps on the Google Play Store and new apps being submitted to our forums every day, staying up to date on the latest apps and games can be a hassle. At XDA we don’t discriminate apps - if it’s interesting, innovative, original or useful, we mention them. The XDA Portal Team loves apps too, and here are our top picks for this week. ...
A few weeks ago, we asked you "How Does Your Location Affect Your Life As A Power User?". In the days that followed, members from all over the world shared their stories and experiences of life across the globe. Allow me to introduce the true story of what it means to be a power user on this pale blue dot. Index Africa & Oceania: Australia, Guam, Indonesia, Libya, Madagascar, New Zealand, Nigeria, South Africa, Americas: Brazil, Chile, Columbia, Costa Rica, Guatemala,...