Thursday, 18 August 2016

android - no archive symbol table (run ranlib) while building libcryptopp.a through ndk-build

Here i am trying to build libcryptopp.a through ndk-build but i getting error as shown below.



Android.mk




enter image description here



Application.mk



enter image description here



setenv-android.sh its while creating libcryptopp.a and .so by using cryptopp 5.6.3



enter image description here




Error produced in terminal as below




$ /Users/kasbahapple/Documents/AndroidDocs/AndroidADT/adt-bundle-mac-x86_64-20140702/sdk/ndk-bundle/ndk-build



[armeabi] Gdbserver : [arm-linux-androideabi-4.8] libs/armeabi/gdbserver



[armeabi] Gdbsetup : libs/armeabi/gdb.setup




[armeabi-v7a] Gdbserver : [arm-linux-androideabi-4.8] libs/armeabi-v7a/gdbserver



[armeabi-v7a] Gdbsetup : libs/armeabi-v7a/gdb.setup



[x86] Gdbserver : [x86-4.8] libs/x86/gdbserver



[x86] Gdbsetup : libs/x86/gdb.setup



[armeabi] Executable : source_file




/Users/kasbahapple/Documents/AndroidDocs/AndroidADT/adt-bundle-mac-x86_64-20140702/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: jni/nativelib/libcryptopp.a: no archive symbol table (run ranlib)



/Users/kasbahapple/Documents/AndroidDocs/AndroidADT/adt-bundle-mac-x86_64-20140702/sdk/ndk-bundle/platforms/android-8/arch-arm/usr/lib/crtbegin_dynamic.o:crtbrand.c:function _start: error: undefined reference to 'main'



collect2: error: ld returned 1 exit status




I really struggling to build c++ static library through NDK.



I looking for solution. Give me a complete steps if i doing wrong.

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...