Changes between Version 91 and Version 92 of AndroidPort


Ignore:
Timestamp:
Jan 10, 2012, 12:33:14 AM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v91 v92  
    189189
    190190== Installing replacement libraries ==
    191 The 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.
    192 
    193 Create a new file called `Application.mk` under `jni` in the project directory, e.g.:
     191The 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.
     192
     193Create a new file called `Application.mk` under `jni` in the project directory, e.g.:
    194194
    195195{{{
    196196$ nano -w ~/android/0ad/jni/Application.mk
    197197}}}
    198 Insert these two lines in the file, substituting the part after the `:=` on the first line with the full path of your project directory:{{{
     198Insert these two lines in the file, substituting the part after the `:=` on the first line with the full path of your project directory:
     199
     200{{{
    199201APP_PROJECT_PATH := /home/youruser/android/0ad
    200202APP_STL := stlport_static
    201203}}}
     204
     205
    202206Then save the file and exit the text editor.
    203 
    204 
    205207
    206208== Building the application ==