Game Development Reference
In-Depth Information
Listing 1-1. Script to Fetch Device Libraries from /system/lib into the Local File System
#!/bin/bash
# Device libraries for Emulator 1.5+
# These are located in/system/lib
libs="browsertestplugin.so libEGL.so libFFTEm.so
libGLESv1_CM.so libaes.so libagl.so libandroid_runtime.so
libandroid_servers.so libaudioflinger.so libc.so libc_debug.so
libcameraservice.so libcorecg.so libcrypto.so
libctest.so libcutils.so libdl.so libdrm1.so
libdrm1_jni.so libdvm.so libemoji.so
libexif.so libexpat.so libhardware.so libhardware_legacy.so
libicudata.so libicui18n.so libicuuc.so libjni_latinime.so
libjni_pinyinime.so liblog.so libm.so libmedia.so libmedia_jni.so
libmediaplayerservice.so libnativehelper.so libnetutils.so
libopencoreauthor.so libopencorecommon.so libopencoredownload.so
libopencoredownloadreg.so libopencoremp4.so libopencoremp4reg.so
libopencorenet_support.so libopencoreplayer.so libopencorertsp.so
libopencorertspreg.so libpagemap.so libpixelflinger.so
libpvasf.so libpvasfreg.so libreference-ril.so libril.so libsgl.so
libskiagl.so libsonivox.so libsoundpool.so libsqlite.so
libsrec_jni.so libssl.so libstdc++.so libsurfaceflinger.so
libsystem_server.so libthread_db.so libui.so
libutils.so libvorbisidec.so libwbxml.so libwbxml_jni.so
libwebcore.so libwpa_client.so libxml2wbxml.so libz.so"
# Loop thru lib names
for lib in $libs
do
# Pull the library into the local file system
adb pull /system/lib/$lib ./
done
Installing the GNU Toolchain for ARM Processors
So far, so good. You have the Android source and the libraries for the device. The final software you need
is a C compiler. This tool provides the C library, binary utilities, preprocessor, compiler, debugger,
profiler, and linker required to build software for the ARM hardware used by the Android device. You will
use the toolchain provided by the Sourcery G++ Lite Edition for ARM ( http://www.codesourcery.com/
sgpp/lite/arm/portal/subscription?@template=lite ).
You have two choices:
Download the easy installer (see Figure 1-2).
Get the tool in tar format and simply unzip it in your system. (I prefer to do it this
way, as it is much faster).
If you choose to install from the tarball, you can unzip the archive on your desktop using the
following command:
Search WWH ::




Custom Search