Changes between Version 122 and Version 123 of AndroidPort
- Timestamp:
- Jan 16, 2012, 6:59:44 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v122 v123 210 210 211 211 === 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 .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, and set the `CONFIG2_GLES` flag so the game is compiled for the OpenGL ES API. 213 213 214 214 Create a new file called `Application.mk` under the `jni` directory in the project directory, e.g.: … … 222 222 APP_PROJECT_PATH := /home/youruser/android/0ad 223 223 APP_STL := gnustl_static 224 APP_CPPFLAGS += -fexceptions 224 APP_CPPFLAGS += -fexceptions -DCONFIG2_GLES 225 225 }}} 226 226 Then save the file and exit the text editor.