title: Building .so files with Buildozer
body: <p>I'm trying to build an APK with <code>.so</code> files. When I run <code>buildozer android debug deploy run logcat &gt; logcat.txt</code>, my built app crashes on my phone and I get the following output:</p>
  
  <pre><code>E/linker  (18499): load_library(linker.cpp:757): library "/data/data/org.test.myapp/files/sdk/qi/../libqimessaging.so" not found
  E/linker  (18499): load_library(linker.cpp:757): library "/data/data/org.test.myapp/files/sdk/qi/../libqipython.so" not found
  E/linker  (18499): load_library(linker.cpp:757): library "/data/data/org.test.myapp/files/sdk/qi/../libqipython.so" not found
  I/python  (18499):  Traceback (most recent call last):
  I/python  (18499):    File "/home/dan/kivytest/.buildozer/android/app/main.py", line 7, in &lt;module&gt;
  I/python  (18499):    File "/home/dan/kivytest/.buildozer/android/app/sdk/naoqi.py", line 7, in &lt;module&gt;
  I/python  (18499):    File "/home/dan/kivytest/.buildozer/android/app/sdk/qi/__init__.py", line 72, in &lt;module&gt;
  I/python  (18499):  ImportError: No module named _qi
  </code></pre>
  
  <p>In the file <code>sdk/qi/__init__.py</code> a bunch of <code>.so</code> files gets included. Because the includes fail, the later import fails and the app crashes. </p>
  
  <p>I assume this is due to the <code>.so</code> files are not copied over properly into the <code>/data/data/org.test.myapp/files/sdk</code> folder. And I have no clue how to do that. This is what I tried so far:</p>
  
  <pre><code>android.add_src = /home/dan/kivytest/sdk
  android.add_libs_armeabi = /home/dan/kivytest/sdk/*.so
  android.library_references = /home/dan/kivytest/sdk
  </code></pre>
  
  <p><code>add_libs_armeabi</code> causes the <code>.so</code> files to be copied to the <code>lib/armebi</code> folder in the APK. Other than that, I don't seem to be able to copy files to their right location. What am I missing?</p>