title: Android NDK build doesn't install shared libraries to libs
body: <p>My app has a native part that calls native Opencv's Camera libraries.</p>
  
  <p>My only problem is that the NDK-build doesn't automatically copy the necessary libnative_camera*<em>*</em>.so into <code>libs</code> folder.</p>
  
  <p>I have to manually copy them each time I make a change in JNI's code (which happens to be about 3 time each minute), which is fine but annoying.</p>
  
  <p>And this happens only with the native_camera libraries, <code>opencv_java</code> is automatically copied.</p>
  
  <p>Here's my Android.mk:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  OPENCV_INSTALL_MODULES:=on
  OPENCV_CAMERA_MODULES:=on
  OPENCV_LIB_TYPE:=SHARED
  
  
  OPENCV_PATH := /home/tran/signs/OpenCV-2.4.5-android-sdk/sdk/native
  
  include $(OPENCV_PATH)/jni/OpenCV.mk
  LOCAL_SRC_FILES  := cameramodule.cpp
  LOCAL_C_INCLUDES += $(LOCAL_PATH)
  LOCAL_LDLIBS     += -lGLESv1_CM -ldl -llog
  LOCAL_MODULE     := cameramodule
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>How can I change it to tell the NDK-build to do the copy and paste for me?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I compile my app using Eclipse.
  Here's the structure of the project:</p>
  
  <pre><code>PROJECT
     |
     |
     |---src
     |---gen
     |---res
     |---jni
     |---libs
     |---lib (Someone suggest this folder but I can see it has no use)
     |... files and temporary folders
  </code></pre>
  
  <p>** UPDATE **</p>
  
  <p><code>ndk-build</code> log:</p>
  
  <pre><code>rm -f project/libs/armeabi/lib*.so project/libs/armeabi-v7a/lib*.so project/libs/mips/lib*.so project/libs/x86/lib*.so
  rm -f project/libs/armeabi/gdbserver project/libs/armeabi-v7a/gdbserver project/libs/mips/gdbserver project/libs/x86/gdbserver
  rm -f project/libs/armeabi/gdb.setup project/libs/armeabi-v7a/gdb.setup project/libs/mips/gdb.setup project/libs/x86/gdb.setup
  
  Install        : libcameramoduleged.so =&gt; libs/armeabi-v7a/libcameramodule.so
  install -p project/obj/local/armeabi-v7a/libcameramodule.so project/libs/armeabi-v7a/libcameramodule.so
  ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-strip --strip-unneeded  project/libs/armeabi-v7a/libcameramodule.so
  Install        : libopencv_java.so =&gt; libs/armeabi-v7a/libopencv_java.so
  install -p project/obj/local/armeabi-v7a/libopencv_java.so project/libs/armeabi-v7a/libopencv_java.so
  ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-strip --strip-unneeded  project/libs/armeabi-v7a/libopencv_java.so
  </code></pre>