title: android ndk prebuild shared library in 64 bit
body: <p>I am working on link a pre-build shared library. I found my .so file is 64 bits and file information is shown below</p>
  
  <pre><code>li@cleanerSaddy:/usr/local/lib$ file libspd.so.3.0.0 
  libspd.so.3.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=0x1148c741ed5bf3568abd82ec33187b9cf9117cf5, not stripped
  </code></pre>
  
  <p>when I run ndk-build, it gave me "incomabpatible target". shown below</p>
  
  <pre><code>li@cleanerSaddy:~/Projects/spd-viewer-on-android$ ndk-build
  [x86] Install        : libspdio.so =&gt; libs/x86/libspdio.so
  [x86] SharedLibrary  : libhello-jni.so
  /home/li/Android/adt-bundle-linux-x86_64-20131030/android-ndk-r9b/toolchains/x86-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.6/../../../../i686-linux-android/bin/ld: error: ./obj/local/x86/libspdio.so: incompatible target
  collect2: ld returned 1 exit status
  make: *** [obj/local/x86/libhello-jni.so] Error 1
  </code></pre>
  
  <p>Here is my ABI <code>APP_ABI := x86</code>. </p>
  
  <p>So, how do I solve this problem in order to compile that third party library successfully?</p>