build/Core/Main. mk. This file mainly controls the generation of system. IMG, ramdisk. IMG, userdata. IMG, and recorveryImage, SDK, etc.Main. mk:For example, find all android. mk files in the top directory.Config. mk: defines the toolchain required to compile the target program.And compile parameters.Base_rules.mk: regularization of some makefile Variables
Binary. mk: controls how a target file is generate
First, the environment Ubuntu 15.10, install the necessary packages:sudo Install Unzip Zip gawk gperf cmakeSecond, configure the Android environment:After configuring the latest Java environment,Export JAVA-HOME=/8 . 0_51export classpath=.: $java-home/lib: $java-home/jre/libexport Path= $path: $java-home/bin:$ Java-home/jre/binInstall the latest ANDROID-NDK, currently the latest version of R10E,Configuring
~/adt/android-eclipse/file compression, then install from Eclipse, and of course there are other ways10. Compiling the Linux kernel imageA) Prepare the cross-compilation tool chainThere is a prebuilt project in the Android code tree that contains the cross-compilation tools we need to compile the kernel.b) Setting environment variables$ emacs ~/.BASHRCAdd the following two lines:Export path= $PATH: ~/
can provide a simpler path to transplant applications, especially when the amount of C/C ++ code is so large that it is not practical to convert all of it into Java. This is the main reason why Google decided to release the NDK publicly, which makes it easier to transplant OpenGL games to Android. Due to these advantages, NDK has become the main method for applications that require fast graphics speed on Android
Android. mk file. These ndk build systems are automatically calculated and processed for you.
This also means that when you update to the new version of ndk, you should benefit from the support of the new toolchain/platform without modifying your android. mk file.
Note: These syntaxes are very similar to the Android.
Android SDK Android NDK android Studio officialIf the download speed is too slow, please use thunder, Baidu cloud offline and other methods to download.For Linux systems, if you cannot upgrade online, see belowsudo vi/etc/hostsAdd to74.125.206.93 dl-ssl.google.comHere are the various.
2014.7ADT BundleHttp://dl.google.com/
Nodejs cross-platform compilation (to android) and nodejsandroid
Nodejs Binary packages can be installed in two ways: node-gyp and node-pre-gyp.
These two commands are written into the installation script of the package.
Node-gyp is to use the gyp tool to compile the source code, so you must specify the Cross Compiler (see http://n8.io/cross-compiling-nodejs-v0.8)
Node-pre-gyp first considers downloading the binary package from the remote address defi
Nodejs binary packages are available in two mounting modes Node-gyp and NODE-PRE-GYPThese two commands are written to the installation script for the package.NODE-GYP is compiling the source code using the Gyp tool, so you must specify a cross-compiler (see http://n8.io/cross-compiling-nodejs-v0.8/)NODE-PRE-GYP first consider downloading the binary package from the remote address defined by the Package.json, and if none, it will still be given to NODE-GYP compilationNode-pre-gyp the parameters f
(Switch) Android system comes with Activity style (@ android: style/), android @ android
Configure in the activity of the AndroidManifest. xml file
1. android: theme = "@ android: style/Theme"
The default status is theme.
2.
/common$ git branch android-2.6.36
3. The above is the main line of the kernel source code, now we need to apply to the simulator for the kernel, so we need to checkout goldfish version:
user-name@machine-name:~/android/kernel/common$ git branch-a
* android-2.6.36
remotes/origin/head-> origin/android-2.6
) '
slib_install_links= ' $ (slibname) '
6, compile FFmpeg
Create the file build_android.sh in the ffmpeg-2.5.3 directory.
Note that the first three lines are configured correctly in their own path.
#!/bin/bash
ndk=/usr/local/android-ndk-r10d
sysroot= $NDK/platforms/android-15/arch-arm/
TOOLCHAIN= $NDK/toolchains/arm-linux-androideabi-4.9/prebu
This article from: http://www.cnblogs.com/yaotong/archive/2011/01/25/1943615.htmlIf the download is slow or cannot be downloaded, there are three ways to fix it1. Patience.2. Use P2SP download tools, such as Thunder, Baidu Cloud offline.3. You know.Cannot upgrade online please see belowsudo vi/etc/hostsAdd to74.125.206.93 dl-ssl.google.com2014.7ADT BundleHttp://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zipHttp://dl.google.com/
Reprint Address: http://mrfu.me/android/2015/07/17/New_Android_Gradle_Build_Tools/
Translator Address: "Turn" list of new Android Gradle build tools: New DSL structure and Gradle 2.5
Original: First look at new Android Gradle Build tools:the new DSL structure and Gradle 2.5
Bilingual address: "Turn-bilingual" list new
First, understand the Android operating system
Android was first founded by Andy Robin (Andy Rubin) and was acquired by Google in 2007, and Google has achieved great success with its Android operating system on smartphones.
1, the characteristics of the Android operating system
The
correct in key functions .)
$ ~ /Mydroid/Android 1.6_ R2/Prebuilt/Linux-x86/Toolchain/Arm-eabi-4.4.0/Bin/Arm-Eabi-GDB ~ /Mydroid/Android 1.6_ R2/Out/Target/Product/Generic/Symbols/System/Bin/Helloworld
After startup, the following information is displayed:Gnu gdb 6.6
Copyright (c) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU Gen
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.