NDK Development Environment installation, CDT installation, Cygwin installation, ndkcygwin
1. Added c and c ++ development plug-ins for eclipse
Install new software in Help
Select Helios-http://download.eclipse.org/release/helios
Wait for expansion, select Programinglanguage
Select c/c ++ development tools
Next.
Agree to licenses
If the installation is successful, you will be prompted if you want to restart eclipse. The installation will be completed after the restart.
2, install cygwin (: http://cygwin.com/install.html)
Ndk needs to run in linux, and cygwin is a tool used to simulate linux in windows.
Cygwin is a program that supports many plug-ins.
Double-click Installation
I have downloaded the required items. You can directly select install from local directory.
Download and installation from the internet usually takes one day! Local installation will be much faster
After the installation is complete, a shortcut icon appears on the desktop.
Open cygwin now
First, the program will initialize
Run the command
Make-v
The GNU Make version is displayed, indicating that the linux compiling environment simulated by cygwin has been successfully simulated.
Next we will install androidndk. We will use the r4 version.
Go to the google website to download
After the download, decompress the package to a directory. I decompress the package to the android-ndk-cpp directory of the E drive.
Configure cygwin environment variables of NDK
To facilitate the direct use of ndk-build in the command line
Add the ndk directory to cygwin's environment variable.
Directory/etc/profile/