Changes between Version 93 and Version 94 of AndroidPort


Ignore:
Timestamp:
Jan 10, 2012, 6:10:27 PM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v93 v94  
    191191The Android platform provides only a very minimal C++ runtime support library (/system/lib/libstdc++) and corresponding headers for it in the NDK. To compile the game with the Standard C++ Library, we have to explicitly instruct `ndk-build` to compile against the STL runtime.
    192192
    193 Create a new file called `Application.mk` under the `jni` directory in the project directory, e.g.:
     193Create a new file called `Application.mk` under the `jni` directory in the project directory, e.g.:
    194194
    195195{{{
     
    204204Then save the file and exit the text editor.
    205205
     206Download the following libraries to the working directory and then unpack them there:
     207
     208 * [http://www.boost.org/users/download/#live Boost] (latest version)
     209 * [https://developer.mozilla.org/en/SpiderMonkey/1.8.5 SpiderMonkey] (1.8.5)
     210
     211Move the source code directory of each library into a new directory called `jni/lib` under the project directory, e.g.:{{{
     212$ cd ~/android
     213$ mkdir 0ad/jni/lib
     214$ mv boost/boost ~/android/0ad/jni/lib/boost
     215$ mv js-1.8.5/js/src ~/android/0ad/jni/lib/js
     216}}}
     217
     218
    206219== Building the application ==
    207220The native library (i.e. the actual game) is built by running the `ndk-build` command in the project directory, e.g.: