NDK_TOOLCHAIN=arm-linux-androideabi-4.8 : overrides the default GNU* gcc 4.6 and uses gcc 4.8. APP_ABI=armeabi-v7a : configures compilation for the ARM* target. $ ndk-build APP_ABI=armeabi-v7a V=1 NDK_TOOLCHAIN=arm-linux-androideabi-4.8 Use the command below to build the application binary for ARM architecture: If this parameter is omitted only the armeabi target will be cleaned. APP_ABI=all : forces cleanup of intermediate files for all targets. V=1 : prints all the commands as they are being executed. Use the following command to clean the whole workspace including libraries for all ISA architectures. target android-19: corresponds to to Android 4.4 (KITKAT) release. $ android update project -target android-19 -name HelloJni -path. Run the following command from the " hello-jni" directory to generate a build.xml file that will be used to build the sample later. Note: All the tools noted in above section should be accessible from this window. This section provides the instructions on how to create the APK package to support Android devices with ARM* and x86 architectures from a command line build environment.įirst open a command window or terminal window on Linux* go to the Android NDK sample " hello-jni" directory \samples\hello-jni and follow the steps below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |