Results 1 to 3 of 3

Thread: Crypto++ on Android: library linkage issue

  1. #1
    Join Date
    Apr 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Crypto++ on Android: library linkage issue

    Hi,

    I'm trying to build a Qt application for Android that makes use of Crypto++.
    Following the instructions written here I managed to get a libcryptopp.a and a libcryptopp.so. I've used mingw32-make on Windows 10 to build.
    I've added the library in the .pro file like

    Qt Code:
    1. contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
    2. ANDROID_EXTRA_LIBS = \
    3. $$PWD/../../../../cryptopp565/libcryptopp.so
    4. }
    To copy to clipboard, switch view to plain text mode 

    ...but I get a lot of errors like

    error: undefined reference to 'CryptoPP::RandomNumberGenerator::GenerateBlock(un signed char*, unsigned int)'

    I'm assuming that's because the library is not properly linked. Any idea how to make it work?

    Thanks!

  2. #2
    Join Date
    Apr 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Crypto++ on Android: library linkage issue

    I ended up using libsodium. It was easier to make it work and also it's a more high-level crypto library, so even better.

  3. #3
    Join Date
    Dec 2017
    Posts
    3
    Qt products
    PyQt3 PyQt4
    Platforms
    Windows Android

    Default Re: Crypto++ on Android: library linkage issue

    Making an online library about crypto on android is making it way easy to stay in touch with so often renewing cryptomarket. But still, there no such thing as enough information, especially when it comes to make money with it. You could take a look at ICOs with Ethereum-based tokens to get to know some fresh projects.

Similar Threads

  1. Qt, use FFTW library on android
    By Alerr in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 21st August 2015, 15:38
  2. Do I need JNI for my C++ library when deploying to Android?
    By ColGeorgeTaylor in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 23rd May 2015, 15:11
  3. Qt for android, how to debug own shared library.
    By overearth in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 12th April 2014, 09:28
  4. QtQML and a C library on Android.
    By Scorp2us in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th February 2014, 12:43
  5. Static linkage of the library
    By Sergei Smirnov in forum Qt Programming
    Replies: 0
    Last Post: 22nd June 2010, 19:17

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.