Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. CryptoPP in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

CryptoPP in Qt Creator

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
7 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EaccB
    wrote on last edited by
    #1

    Can anyone provide step-by-step instructions on how to build the latest version of CryptoPP with mingw64 and integrate the resulting library files and headers into Qt Creator? Nothing I've tried so far has worked and I'm starting to feel helpless...

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      For the building part, you should contact the authors. Note that MinGW is not listed under the supported compilers list.

      As for Qt, you can use the same technique as any other library you want to integrate to your project.

      Qt Creator provides a dialog to help you with that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • E Offline
        E Offline
        EaccB
        wrote on last edited by
        #3

        Thanks, didn't realize it wasn't supported. I've compiled with MSVS 2018 and setup my .pro file as follows:

        win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../Downloads/cryptopp-master/cryptopp-master/x64/Output/release/ -lcryptlib
        else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../Downloads/cryptopp-master/cryptopp-master/x64/Output/debug/ -lcryptlib

        INCLUDEPATH += $$PWD/../../Downloads/cryptopp-master/cryptopp-master
        DEPENDPATH += $$PWD/../../Downloads/cryptopp-master/cryptopp-master

        However, when I run in Qt Creator, I get "mismatch detected for 'RuntimeLibrary'" errors. Do you know what's causing this?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Does it link against the static runtime ?
          Visual Studio 2018 ? AFAIK there's only 2017 and 2019.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • E Offline
            E Offline
            EaccB
            wrote on last edited by
            #5

            Sorry, 2017 - typo...
            Not sure what you mean. In Qt Creator I used "Add Library" and selected Dynamic for Linkage.

            1 Reply Last reply
            0
            • E Offline
              E Offline
              EaccB
              wrote on last edited by
              #6

              Looks like I was able to get it to work by changing the Runtime Library to MDd in VS2017 and recompiling. Any idea why this worked?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Was it MT before ?

                If so, you can't mix libraries built with the static and dynamic runtime.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved