May 2017
Beginner to intermediate
470 pages
10h 49m
English
After you clone the preceding Git repository for test applications, you can build and test them. Let's test the command-line application first. It is a very simple "hello world" application to print just one line message to standard output as follows:
#include <stdio.h> void main() { printf("This is built using NDK r12.n"); }
You can build it and test it in the emulator as follows:
$ cd ch05/test1$ ./build.sh [armeabi-v7a] Install : ch05_test => libs/armeabi-v7a/ch05_test$ file libs/armeabi-v7a/ch05_testlibs/armeabi-v7a/ch05_test: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=b3cf0ae12c0d5b192053dc40c31f665196145039, stripped$ adb push ...
Read now
Unlock full access