This is a creation in
Article, where the information may have evolved or changed.
This was a progress report on the Go toolchain improvements during the 1.7 development cycle. All measurements were taken using a Thinkpad x220, Core i5-2520m, running Ubuntu 14.04 Linux.
Faster compilation
Since Go 1.5, when the compiler itself is translated from C to Go, compile times is slower than they used to be. Everyone knows it, nobody is happy about it, and we '
The host environment for this article is Ubuntu6.06-1 Desktop EditionKernel: 2.6.15-26gcc:4.0.3---------------------------------------------------Reprint Please specify: xiaobin_hlj80----Z. Pre-Preparation 1. Set up a virtual machineinstalling with ISO files(1) Installing the live systemSelect the text installation option, "Start or install Ubuntu".(2) Install to LocalAfter entering the live desktop, click "Install" to complete the installation.2. Installing GCCSystem CD InstallationChoose Binut
Just make out, the mood is very excited, from the installation of Ubuntu to run the compilation tool chain really got a week. With the version of UBUNTU14 and Vedon that version is really bad too much, so the problem is endless. Today, I started thinking that the environment variable is not set to, the results of various Baidu according to their settings, but my path root directory clearly has arm-linux-gcc this file, but is showing no such file or directory! On the Internet to find the informat
the standard android.mk file, let's try to use the GCC command line to compile directly, Learn the details of the Android build environment.The Android compilation environment provides the "showcommands" option to display the compile command line, and we can view some compile-time details by opening this option. Of course, before you do this, clean the HelloWorld module in the previous article:
For example, perform such an installation command:
Crossdev-s--ex-gdb--without-headers-t Mipsel-unknown-linux-gnuFirst, modify the/etc/make.conf file, add portdir_overlay=/usr/portage/at the end of the file (otherwise the error is not set
Create a binary tool (
binutils)
Binutils is a collection of binary tools that contain the AS and LD we use.
First, we unzip the binutils source file we downloaded.
$CD $PRJROOT/build-tools$tar-XVJF binutils-2.10.1.tar.bz2
Now we can use the tool chain provided by Android ndk in the form of an independent compiler! This is useful if you already have your own build system.
A typical application scenario is to call a 'configure 'script dependent on the CC environment variable open source library for cross-platform compilation.
This document explains how to do that.1. Select your tool chain:
First, you need to determine whether your independent
Figure Description: Moving, backup after the launch of Android virtual machine appears
Solution to the problem of panic:could not open D:\java2\android\android-sdk-windows\.android\avd\test.ini
A few days ago, I am sorting some files, the previously installed on the Android
Curl is a well-known open source file Transfer Protocol implementation software, including HTTP, HTTPS, FTP and other commonly used not common protocol implementation. The latest version of Curl's official source code already includes the Android compilation file (ANDROID.MK), but there is still work to do to compile it.The Curl version I use is the 7.20.0,android source version is Eclair 2.1.First of all,
kernel)01. $ CD $ Android/ti_android_sgx_sdk
02. $ make
03. $ make install omapes = 3.xCopy the code and your SDK image will be generated.
7. Copy the image to the TF card
TF card requirements: More than MB, ext3 file system.Go to the $ Android/vendor/Sola/omap3/image/i8320board/Android directory, and copy all the files to the TF root directory.
8. Run
Switch i8
TV = new textview (this );
TV. settext (string. valueof (I ));
Setcontentview (TV );
}
Public native int intfromjni ();
Static {
System. loadlibrary ("jniadd ");
}
}
V. Service compilation problems
The toolchain used by Android (that is, the cross-compilation tool chain) can be downloaded from the following URL:
Http://android.kernel.org/pub/android-
){
Super. oncreate (savedinstancestate );
Int I = intfromjni ();
Textview TV = new textview (this );
TV. settext (string. valueof (I ));
Setcontentview (TV );
}
Public native int intfromjni ();
Static {
System. loadlibrary ("jniadd ");
}
}
V. Service compilation problems
The toolchain used by Android (that is, the cross-compilation tool chain) can be downloaded from the following URL:
Http://android.k
type "help" (or ' hmm ') for a list of defined functions which is helpful for interacting with the S Ource.Contents[Hide]
1 Overview
2 Some Details
2.1 What tools is used
2.2 telling the system where the Java toolchain is
2.3 specifying to build
2.4 actually building the system
3 Build tricks
3.1seeing the actual Commands used to build the software
3.2make targets
3.3helpe
@ machine-Name :~ /Android/kernel/common $Export Path = $ path :~/Android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin
2.
Modify the MAKEFILE file in the common directory in the following two actions:
# Arch ? = (Subarch)
# Cross_compile
? =
Arch ? = Arm # The architecture is arm
Cross_compile? = Arm-Eabi-# prefix of the Cross-compiled
fully support POSIX standards, such as C ++ exceptions, wide charOther toolchains cannot be used to compile androidI personally think that the speed of the system is not closely related to glibc. The slowness of Android is caused by the platform rather than glibc,Therefore, it is unwise for Android to replace glibc with Bionic. Therefore, it is better to develop its own compiler
Original: Compile A native C Android applicationTranslation: Zhiwei.liBy searching online, you can find many ways to compile Android native apps. What I would like to say is that different console applications, daemons (daemon), C + + libraries, and so on. These programs are on your own computer.Compile without any problems.In order to compile the program for Android
/archive/Android-2.6.25.Remotes/ORIGIN/archive/Android-2.6.27.Remotes/ORIGIN/archive/Android-2.6.29.Remotes/ORIGIN/archive/Android-2.6.32.Remotes/ORIGIN/archive/android-gldfish-2.6.29Remotes/ORIGIN/archive/Android-goldfsh-2.6.27
S
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.