Game Development Reference
In-Depth Information
libz (Zlib compression) headers
liblog (Android logging) header
Headers for C++ support
The NDK also includes cross-toolchains to generate native ARM binaries, documentation, and samples.
Unfortunately, Google claims that the NDK can be used only on devices running the Android 1.5 platform
version or later, due to toolchain changes that make the native libraries incompatible with SDK versions
1.0 and 1.1. This makes the NDK hard to use for the goal of this topic, which is to support all versions of
the platform. However, the appendix will show you how to compile the examples in Chapters 6 and 7 with
the NDK.
You Have Taken the First Step
Congratulations! You have taken the first step toward your mastery of Android game development. In
this chapter, you learned how to set up your Linux system to compile hybrid games, which included the
following tasks:
Obtaining the Android source
Extracting device system libraries for compilation
Setting up the CodeSourcery G++ toolchain
Writing custom compilation scripts
Setting up your Eclipse IDE
This chapter provided the foundation to compile the 3D shooter games, Doom and Wolfenstein 3D, as
well as the pure Java games. In the next chapter, you will learn how to write and compile a basic native
program—a simple shared library—and call the shared library within a Java application.
Search WWH ::




Custom Search