Changes between Version 148 and Version 149 of AndroidPort
- Timestamp:
- Jan 23, 2012, 5:19:48 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v148 v149 182 182 $ sudo apt-get install ia32-libs 183 183 }}} 184 === Setting up an Android project ===185 All data that is to be compiled and packaged into the Android application must be assembled in an Android ''project''.186 187 We'll use the template provided by SDL. Download the development snapshot for SDL 1.3 from [http://www.libsdl.org/hg.php this page] to the working directory and then unpack it there, e.g.:188 189 {{{190 $ cd ~/android191 $ tar -xvf SDL-1.3.tar.gz192 }}}193 Then move the project template to a fitting name under the working directory, e.g.:194 195 {{{196 $ mv SDL-1.3.0-6172/android-project/ ~/android/0ad197 }}}198 This is your ''project directory''.199 184 200 185 === Installing replacement libraries === … … 209 194 $ export CXX=${CROSS_COMPILE}-g++ 210 195 }}} 196 197 Download the development snapshot for SDL 1.3 from [http://www.libsdl.org/hg.php this page] to the working directory and then unpack it there, e.g.: 198 199 {{{ 200 $ cd ~/android 201 $ tar -xvf SDL-1.3.tar.gz 202 }}} 203 204 Now change directory to the directory that was unpacked, e.g.: 205 206 {{ 207 $ cd ~/android/SDL-1.3.0-6235 208 }} 209 210 Then execute the following commands to compile the package for the target device: 211 212 {{ 213 $ ./configure --host=$HOSTCONF 214 $ make 215 $ make install 216 }} 211 217 212 218 === Building the application === … … 234 240 235 241 Fix the build system. 242 243 === Setting up an Android project === 244 All data that is to be compiled and packaged into the Android application must be assembled in an Android ''project''. 245 246 We'll use the template provided by SDL. Move the project template to a fitting name under the working directory, e.g.: 247 248 {{{ 249 $ mv SDL-1.3.0-6172/android-project/ ~/android/0ad 250 }}} 251 This is your ''project directory''.