| 316 | Download the latest version of libxml2 from [http://xmlsoft.org/downloads.html this page] to the working directory and then unpack it there, e.g.: |
| 317 | |
| 318 | {{{ |
| 319 | $ cd ~/android |
| 320 | $ tar -xvf libxml2-2.7.8.tar.gz |
| 321 | }}} |
| 322 | |
| 323 | Now change directory to the directory that was unpacked, e.g.: |
| 324 | |
| 325 | {{{ |
| 326 | $ cd ~/android/libxml2-2.7.8 |
| 327 | }}} |
| 328 | |
| 329 | Then execute the following command to configure the package for the target device: |
| 330 | |
| 331 | {{{ |
| 332 | $ ./configure --host=$HOSTCONF --build=i686-pc-linux-gnu --prefix=$SYSROOT/usr --without-threads --without-python --enable-shared |
| 333 | }}} |
| 334 | |
| 335 | Now hand-edit the Makefile to remove `runtest$(EXEEXT)` and `testrecurse$(EXEEXT)` from the `noinst_PROGRAMS` variable, e.g. |
| 336 | |
| 337 | {{{ |
| 338 | noinst_PROGRAMS = testSchemas$(EXEEXT) testRelax$(EXEEXT) \ |
| 339 | testSAX$(EXEEXT) testHTML$(EXEEXT) testXPath$(EXEEXT) \ |
| 340 | testURI$(EXEEXT) testThreads$(EXEEXT) testC14N$(EXEEXT) \ |
| 341 | testAutomata$(EXEEXT) testRegexp$(EXEEXT) testReader$(EXEEXT) \ |
| 342 | testapi$(EXEEXT) testModule$(EXEEXT) \ |
| 343 | runsuite$(EXEEXT) testchar$(EXEEXT) testdict$(EXEEXT) \ |
| 344 | runxmlconf$(EXEEXT) |
| 345 | }}} |
| 346 | |
| 347 | Finally, execute the following commands to compile the package: |
| 348 | |
| 349 | {{{ |
| 350 | $ make |
| 351 | $ make install |
| 352 | }}} |
| 353 | |