On Tuesday, December 8, 2015 at 5:57:55 AM UTC-5, Jeeva S K wrote:
>
> I successfully compiled and executed Cryptopp in IOS but i really
> struggling to make work it in android.
>
> Here i am using *Cryptopp 5.6.3, NDK r10e and android studio 1.5 *, I can
> successfully build *libcryptopp.so* through *ndk-build *but it throughs
> number of errors like *undefined reference to **'vtable for
> CryptoPP::AutoSeededX917RNG<CryptoPP::Rijndeal>'* when i make rebuild
> through android studio.
>
>
Well, we kind of need to know what's in the libcryptopp.so you built. Can
you verify the symbol is missing?
Below is from a command line build using NDK r10e, armeabi, android-21 and
GNU STL library (I believe they match your setup). The symbol is present.
My guess is you have a path problem, or "$(TARGET_ARCH_ABI)/libcryptopp.so"
is not present or its the wrong architecture. But its only a guess. You
might want to try:
LOCAL_MODULE := cryptopp
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libcryptopp.so
LOCAL_SHARED_LIBRARIES := cryptopp
...
You might also want to look at
https://www.cryptopp.com/wiki/Android_(Command_Line) and
https://github.com/weidai11/cryptopp/pull/3 .
Jeff
**********
$ arm-linux-androideabi-nm -D --demangle libcryptopp.so | grep
AutoSeededX917RNG | sed 's|CryptoPP::||g'
00181ec4 W AutoSeededX917RNG<Rijndael>::IncorporateEntropy(unsigned char
const*, unsigned int)
0017d728 W
AutoSeededX917RNG<Rijndael>::GenerateIntoBufferedTransformation(BufferedTransformation&,
std::string const&, unsigned long long)
00181c18 W AutoSeededX917RNG<Rijndael>::Reseed(unsigned char const*,
unsigned int, unsigned char const*, unsigned char const*)
00181ddc W AutoSeededX917RNG<Rijndael>::Reseed(bool, unsigned char const*,
unsigned int)
00181e80 W AutoSeededX917RNG<Rijndael>::AutoSeededX917RNG(bool, bool)
00181e80 W AutoSeededX917RNG<Rijndael>::AutoSeededX917RNG(bool, bool)
00169d90 W AutoSeededX917RNG<Rijndael>::~AutoSeededX917RNG()
00169d6c W AutoSeededX917RNG<Rijndael>::~AutoSeededX917RNG()
00169d6c W AutoSeededX917RNG<Rijndael>::~AutoSeededX917RNG()
0017d724 W AutoSeededX917RNG<Rijndael>::CanIncorporateEntropy() const
0023336c D typeinfo for AutoSeededX917RNG<Rijndael>
001fe0bc R typeinfo name for AutoSeededX917RNG<Rijndael>
00232308 V vtable for AutoSeededX917RNG<Rijndael>
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.