-b03, Mixed mode)Two. Download the Eclispe SDK1. Extract the Adb-bundle-linux version directly to http://developer.android.com/sdk/index.html to download the corresponding number of digits, including Eclipse + ADT +SDK in this package. I am a 64-bit version of the adt-bundle-linux-x86_64-20140321 that corresponds to the download.2. Into the adt-bundle-linux-x86_6
Resources:1, the copyright notice: reproduced in the form of hyperlinks to the original source of the article and the author's information and this statementHttp://eshock.blogbus.com/logs/61459223.html2, http://www.cnblogs.com/anyanran/archive/2010/11/22/ndk1.html1. Platform and Software informationView by uname-a :3.13. 0--generic #:$ i686 i686 i686 Gnu/linuxTo verify that the environment variables are configured correctly, you can:java-version View:" 1.7.0_67 " 1.7. 0_67-24.65-b04, Mixed mod
First, the use of the environment1, WINDOWS64-bit operating system2, ADT for adt-bundle-windows-x86_64-201309173. NDK for android-ndk-r9bSecond, configure the build header file. h⒈ First, click External Tools configurations ...⒉ Then, click⒊ Next, look at the diagram operationFinally click Apply, then we create a new class file in an Android projectConfiguration build N
Android NDK programming-Android. mk
Android. mk
Android. mk is a GUN Makefile clip that describes the NDK project to the Android NDK build system. It is a required component of every NDK project. The build system wants it to appear in the jni subdirectory. The following is the content of the Android. mk file in the hel
Android NDK development Introduction and androidndk Development1. Introduction to JNIJNI is the Java Native Interface. It defines a way for managed code (written in the Java programming language) to interact with native code (written in C/C ++ ).JNI (Java Local interface): defines a method for Java code to interact with C code or Dynamic Shared Libraries (Dynamic Shared library.Call method:C code generates a. so dynamic shared library through compilat
1. Background
The Android NDK can be used to compile the native method of Android, and C and C + + code can be compiled into the. so file, allowing the Android program to run.
2.NDK installation (Linux environment)
(1) Download the corresponding NDK version, enter the following command in the shell
Gedit ~/.BASHRC
In Android development, the program crash in three scenarios: Uncaught exception, ANR (application not responding), and flashback (Ndk throws an error). an uncaught exception in which the stack information printed according to Logcat is easy to locate the error. ANR Error Check, Android rules, when the app interacts with the user, if the user does not respond to the action within 5 seconds, a ANR error is raised, and a system prompt pops up to let the
Installing CygwinDecompression Android-ndk-r5c-windows.zipDecompression Cygwin Package.rarCygwin installation StepsRun Setup.exe, select the third item to install from the local CygwinSet Cygwin to install thereSpecify the location of the installation programSelect the installed content, just choose Devel.Cygwin and NDK integrationYou must open the. profile file with EditPlus and never open it with NotepadH
validity when using it.
When a JNI reference is created, in addition to the objects in the JVM to which it points, the reference itself consumes a certain amount of memory. As a JNI programmer, you should be very careful about the number of references used by the program in a given period of time. Creating a large number of references that are not immediately recycled in a short period of time will cause memory overflow.
6. dll related to so
Ndk:
My environment:OS: ubuntu 12.10Android-ndk-r7 ffmpeg: 0.8
The compilation steps are as follows:Step 1:Install and configure ndkRun ndk-build. If the following information is displayed, the installation is successful.Specify the project directory by setting the macro NDK_PROJECT_PATHExport NDK_PROJECT_PATH =/home/robin/Desktop/wshare/jni
Step 2: Download ffmpeg s
Cocos2d-x Display Chinese garbled the most commonly used solution is to read XML files, using the Iconv library. Because in the use of Iconv library there are a lot of problems, here to make a summary, to Yimeimei less go some detours.I use the Cocos2d-x 3.4 version, I also refer to the online tutorial, but there may be some details of the tutorial is not mentioned, here is detailed list.1. Create a new ChineseString.h file on the cocos2d-x sideThe code is as follows:#ifndef __ChineseString_H__#
Android NDK Development1. Introduction to JNI is the Java Native Interface. it defines a way for managed code (written in the Java programming language) to interact with native code (written in C/C ++ ).JNI (Java Local interface): defines a method for Java code to interact with C code or Dynamic Shared Libraries (Dynamic Shared library.Call method:C code generates a. so dynamic shared library through compilation for java code calls.2. Introduction to
A simple write file operation was written in the NDK today:FILE *FP = fopen ("/sdcard/test.txt","W");if(fp = =NULL) {LOGD ("OPEN TEST. TXT is FAILED")} Uchar dest[3] = {'1','2','3'};fwrite (dest,3,1, FP);The code on the Linux GCC platform individual module tests can produce the correct results, but after being called in the ndk of Android,have been unable to write files, Google a bit, I wiped, turned out to
Running the run configuration in the NDK development tool runs in playbook emulator with the following error:
"Downloading and starting the application ..." has encountered a problem.
Unable to determine returned PID from launch.
One possible cause:
NDK 2.0 When creating a project, the default target is Device-debug. Build out binary code is arm, not x86, naturally can not run on the x86 CPU playboo
Eclipse+cdt+gdb Debugging Android NDK ProgramFirst introduce the development environment, in this environment, the UP master guarantee is no problem.
Ubuntu 11.10
Eclipse 3.7 (Indego) for Java
JDK 6
Android SDK 2.2
Andrid NDK R7
Of course, in the Windows environment through the Cygwin and other tools can also be implemented GDB debugging, I have indeed implemented. But the perf
Original
Android NDK installation Full record
1.
http://www.cygwin.com/Download the latest version of the Setup.exe tool, select the nearest server, I selected is 163 of the mirror site, download all packages, to the local not installed, and then select, select All, full installation, local installation, you can;
2.
After performing the cygwin.bat batch in the
The Android NDK is an abbreviation for the native development Kit running on the Android platform. Android app developers can invoke C or C + + native code through the NDK.The role of the NDK:
Code protection, because the Java layer Code of the APK is easy to decompile, and the C + + library counter-sink is more difficult.
Call third-party C/S libraries in the
264 source code. Here, we download version October 2013 from July 0.14. Decompress the compressed package to the ffmpeg-android/264 directory,
(2) Compile a script file:
Export NDK = $ NDK_HOMEExport PREBUILT = $ NDK/toolchains/arm-linux-androideabi-4.6/prebuiltExport PLATFORM = $ NDK/platforms/android-19/arch-armExpo
In this article, we will talk about how to use NDK to generate the SO library, use the SO library for JNI calls, create files in Android sdcard, and write data.
Tools:
NDK1.5 R1, android SDK1.5 R1, SDCARD, Eclipse, ADT 0.9, Eclipse Galileo for C/C ++, Cygwin 1.5.
There are many tools. I operate on Windows XP. If I operate on Ubuntu or other Linux systems, go to step 2. See the steps below:
1. Install Cygwin
About Cygwin installation please Baidu or go
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.