Changes between Version 122 and Version 123 of AndroidPort


Ignore:
Timestamp:
Jan 16, 2012, 6:59:44 AM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v122 v123  
    210210
    211211=== Installing replacement libraries ===
    212 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 GNU STL runtime. We also have to explicitly enable support for exceptions.
     212The 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 GNU STL runtime. We also have to explicitly enable support for exceptions, and set the `CONFIG2_GLES` flag so the game is compiled for the OpenGL ES API.
    213213
    214214Create a new file called `Application.mk` under the `jni` directory in the project directory, e.g.:
     
    222222APP_PROJECT_PATH := /home/youruser/android/0ad
    223223APP_STL := gnustl_static
    224 APP_CPPFLAGS += -fexceptions
     224APP_CPPFLAGS += -fexceptions -DCONFIG2_GLES
    225225}}}
    226226Then save the file and exit the text editor.