makefile - Android NDK - Where to put the .so file which specified in LOCAL_SHARED_LIBRARIES? -


i have build libcurl android shared library, both armeabi-v7a , x86, , 1 of project depends on it. have set "local_shared_libraries := libcurl", problem should put libcurl.so files?

i tried putting them under (project)/jni/lib/(platform)/libcurl.so, , ndk-build gives me whole load of linking error. (project)/lib/(platform)/libcurl.so not work because ndk-build clear directory before build.

so tried again, building 1 platform @ time, still have no idea put it. jni/libcurl.so not work.

simple, follow this, download curl source http://curl.haxx.se/

  - prepare toolchain of android ndk standalone use; can     done invoking script:      ./build/tools/make-standalone-toolchain.sh     creates usual cross-compile toolchain. lets assume put     toolchain below /opt invoke configure like:      export path=/opt/arm-linux-androideabi-4.4.3/bin:$path      ./configure --host=arm-linux-androideabi [more configure options]      make 

done.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -