Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How add a Crypto++ Library version 8.6 in Qt 6
QtWS25 Last Chance

How add a Crypto++ Library version 8.6 in Qt 6

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.1k Views
  • 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.
  • A Offline
    A Offline
    Alby
    wrote on last edited by
    #1

    Hi, for my project i need **Crypto++ Library**, but i don't understand how install it and connect it to Qt project.

    Other informations:

    • Qt version: 6.1.2
    • Language: C++
    • Library: Crypto++ Library version 8.6
    • Compilator: (use it in Qt) MinGW 64-Bit
    D artwawA 3 Replies Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      you link it to your Qt app. Do you use qmake or cmake to build your app?
      How and where do you install Crypto++?

      1 Reply Last reply
      0
      • A Alby

        Hi, for my project i need **Crypto++ Library**, but i don't understand how install it and connect it to Qt project.

        Other informations:

        • Qt version: 6.1.2
        • Language: C++
        • Library: Crypto++ Library version 8.6
        • Compilator: (use it in Qt) MinGW 64-Bit
        D Offline
        D Offline
        DerReisende
        wrote on last edited by
        #3

        @Alby If it is a new project I would recommend to create a CMake project. Then you can use vcpkg to install crypto++. vcpkg search cryptowill help to find the proper package (it is called cryptopp).
        After vcpkg install cryptopp it is installed on your machine and if you have followed the vcpkg setup guide it will be available to your cmake project after you have placed everything necessary in the CMake file.

        1 Reply Last reply
        1
        • A Alby

          Hi, for my project i need **Crypto++ Library**, but i don't understand how install it and connect it to Qt project.

          Other informations:

          • Qt version: 6.1.2
          • Language: C++
          • Library: Crypto++ Library version 8.6
          • Compilator: (use it in Qt) MinGW 64-Bit
          D Offline
          D Offline
          DerReisende
          wrote on last edited by
          #4

          @Alby You need to set CMAKE_TOOLCHAIN_FILE to the location where you have installed vcpkg and the support script. This can be done in Qt Creator via Projects/Build Settings. I added the following there for my app:
          -DCMAKE_TOOLCHAIN_FILE=<vcpkg_install_dir>\scripts\buildsystems\vcpkg.cmake
          This needs to be done for every build type.

          In your CMakeLists.txt you then need to add the following (at the correct places of course):
          find_package(cryptopp CONFIG REQUIRED)
          target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE cryptopp-static)

          That´s it.

          1 Reply Last reply
          1
          • A Alby

            Hi, for my project i need **Crypto++ Library**, but i don't understand how install it and connect it to Qt project.

            Other informations:

            • Qt version: 6.1.2
            • Language: C++
            • Library: Crypto++ Library version 8.6
            • Compilator: (use it in Qt) MinGW 64-Bit
            artwawA Offline
            artwawA Offline
            artwaw
            wrote on last edited by
            #5

            @Alby Download binary and headers. In your .pro file add INCLUDEPATH, DEPENPATH and LIBS manually or as described in the manual.
            After that you can #include headers in your sources. If you do #include but QtCreator complains that file can't be found - you did the above wrong.

            For more information please re-read.

            Kind Regards,
            Artur

            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