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
QtWS25 Last Chance

Include cpr library

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
7 Posts 4 Posters 1.2k 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.
  • Y Offline
    Y Offline
    YoussofAttallah
    wrote on 17 Apr 2021, 12:35 last edited by
    #1

    How can I Include the cpr library into qt?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Apr 2021, 13:09 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 17 Apr 2021, 22:07 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 18 Apr 2021, 07:07 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 19 Apr 2021, 13:31 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

            J 1 Reply Last reply 19 Apr 2021, 13:35
            0
            • Y YoussofAttallah
              19 Apr 2021, 13:31

              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

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 19 Apr 2021, 13:35 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
              • K Offline
                K Offline
                kkoehne
                Moderators
                wrote on 19 Apr 2021, 15:31 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

                1/7

                17 Apr 2021, 12:35

                • Login

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