Changes between Version 148 and Version 149 of AndroidPort


Ignore:
Timestamp:
Jan 23, 2012, 5:19:48 PM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v148 v149  
    182182$ sudo apt-get install ia32-libs
    183183}}}
    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 ~/android
    191 $ tar -xvf SDL-1.3.tar.gz
    192 }}}
    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/0ad
    197 }}}
    198 This is your ''project directory''.
    199184
    200185=== Installing replacement libraries ===
     
    209194$ export CXX=${CROSS_COMPILE}-g++
    210195}}}
     196
     197Download 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
     204Now change directory to the directory that was unpacked, e.g.:
     205
     206{{
     207$ cd ~/android/SDL-1.3.0-6235
     208}}
     209
     210Then execute the following commands to compile the package for the target device:
     211
     212{{
     213$ ./configure --host=$HOSTCONF
     214$ make
     215$ make install
     216}}
    211217
    212218=== Building the application ===
     
    234240
    235241Fix the build system.
     242
     243=== Setting up an Android project ===
     244All data that is to be compiled and packaged into the Android application must be assembled in an Android ''project''.
     245
     246We'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}}}
     251This is your ''project directory''.