| 271 | |
| 272 | Download the latest version of libpng from [http://www.libpng.org/pub/png/libpng.html this page] to the working directory and then unpack it there, e.g.: |
| 273 | |
| 274 | {{{ |
| 275 | $ cd ~/android |
| 276 | $ tar -xvf libpng-1.5.7.tar.xz |
| 277 | }}} |
| 278 | |
| 279 | Now change directory to the directory that was unpacked, e.g.: |
| 280 | |
| 281 | {{{ |
| 282 | $ cd ~/android/libpng-1.5.7 |
| 283 | }}} |
| 284 | |
| 285 | Then execute the following commands to compile the package for the target device: |
| 286 | |
| 287 | {{{ |
| 288 | $ ./configure --host=$HOSTCONF --build=i686-pc-linux-gnu --with-sysroot=$SYSROOT --prefix=$SYSROOT/usr |
| 289 | $ make |
| 290 | $ make install |
| 291 | }}} |