Compiling Doom with NDK

If you read this book carefully, you'll get the sense that that I don't like the NDK 1.5 when I started in this project the NDK didn't even exist . I think the NDK 1.5 is cumbersome to use, because of the lack of integration with the Eclipse workbench. Plus, version 1.5 has only the bare bones to compile a native library that is, the C runtime, Compression library, and basic C support . Just when this book was being finished up, Google released the NDK 1.6, a nice improvement over 1.5. Here are...

Debugging with strace

For some reason, the native test program for the library runs in version 1.0 R2 of the SDK, but fails to load in 1.5 R2. The output gives a clue the file bionic linker linker.c 1581 fails to load the library. There is a simple Linux tool called strace that can help in this situation. The strace tool runs the specified command until it exits. It intercepts and records the system calls that are called by a process and the signals that are received by a process. The name of each system call, its...