Changes between Version 91 and Version 92 of AndroidPort
- Timestamp:
- Jan 10, 2012, 12:33:14 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v91 v92 189 189 190 190 == 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.: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.: 194 194 195 195 {{{ 196 196 $ nano -w ~/android/0ad/jni/Application.mk 197 197 }}} 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:{{{ 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: 199 200 {{{ 199 201 APP_PROJECT_PATH := /home/youruser/android/0ad 200 202 APP_STL := stlport_static 201 203 }}} 204 205 202 206 Then save the file and exit the text editor. 203 204 205 207 206 208 == Building the application ==