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. Include cpr library
Forum Updated to NodeBB v4.3 + New Features

Include cpr library

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
7 Posts 4 Posters 1.6k 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.
  • Y Offline
    Y Offline
    YoussofAttallah
    wrote on last edited by
    #1

    How can I Include the cpr library into qt?

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

      Hi and welcome to devnet,

      If you are using cmake, you can follow cpr's documentation.

      Just in case, you can also use the QNetworkAccessManager class from Qt for network requests.

      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
      • Y Offline
        Y Offline
        YoussofAttallah
        wrote on last edited by
        #3

        Hi,
        I tried the documentation using vcpkg and it is working on visual studio normally, I just want a way to be able to link the the library to qt creator

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

          What exactly did you try ?
          What build system are you using ?
          What compiler are you using with Qt ?

          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
          • Y Offline
            Y Offline
            YoussofAttallah
            wrote on last edited by
            #5

            I used the cpr documentation and have the library installed by vcpkg, and the library works normally on visual studio, but for some reason whenever I QT Creator it is not able to find the library

            jsulmJ 1 Reply Last reply
            0
            • Y YoussofAttallah

              I used the cpr documentation and have the library installed by vcpkg, and the library works normally on visual studio, but for some reason whenever I QT Creator it is not able to find the library

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @YoussofAttallah What exact Qt version do you use in QtCreator? With C++ libraries you have to use same compiler for the library and you app. For example you can't mix binaries built using VisualC++ and MinGW compiler.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • kkoehneK Offline
                kkoehneK Offline
                kkoehne
                Moderators
                wrote on last edited by
                #7

                Also note that Qt Creator gains some direct support for vcpkg only in the next upcoming release: https://www.qt.io/blog/qt-creator-cmake-package-manager-auto-setup

                Director R&D, The Qt Company

                1 Reply Last reply
                0

                • Login

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