title: building libxml2 from source for android as static library
body: <p>I am writing simple C library for Android</p>
  
  <p>I am trying to build libxml2 from the source code as static library, so I can use it in my code. I am using Eclipse and I want to use libxml2 in NDK, in my C functions.</p>
  
  <p>I imported the source code to new folder called libxml into a project, and in Android.mk I put this:</p>
  
  <pre><code>include $(CLEAR_VARS)
  LOCAL_MODULE    := libmyxml2
  LOCAL_SRC_FILES := \
      ...  all c files from libxml .. \
      ...
  include $(BUILD_STATIC_LIBRARY)
  </code></pre>
  
  <p>In my shared library part:  <code>LOCAL_MODULE := myxml2</code></p>
  
  <p>In project Properties -> Paths and Symbols -> Includes .. I have the directory to the include files under GNU C for libxml</p>
  
  <p>When I start build, compilator tels me error: No such file or directory
  It can't find the includes.</p>
  
  <p>I am on windows system. </p>
  
  <p>Is there any tutorial or some advice how can I use libxml2 in my C code in NDK in simple understanding way?</p>
  
  <p>How to build libxml2 by miself for the android and start to using it under Eclipse?</p>
  
  <p>Thank you</p>