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. Adding github web URL of libraries to Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Adding github web URL of libraries to Qt Creator

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
curllibrariesinclude pathgithubcurlpp
2 Posts 2 Posters 1.1k 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.
  • J Offline
    J Offline
    JCSB
    wrote on last edited by
    #1

    Hi,
    I have been trying to use cURLpp with Qt, but I cannot even find a way to add the library to my project.

    I need to add curl and curlpp. I tried adding an external library to my Qt project, but they are not downloaded as a .lib file, so Qt seems unable to import them. They are made of headers and source files, so I want to know how to easily incorporate them.

    I added the web urls for both these libraries in my sourcetree repository. I have the library folders outside of the qt project this way, but I dont think there is any other option in this case.

    b31e5a03-db0f-494c-8cd7-1890a3ece5ee-image.png

    Then, I tried setting up my .pro file and filepaths, but I have been unsuccessful after hours of work. This is what I have.

    CONFIG += c++11
    
    INCLUDEPATH += curlpp \
    curl \
    curl/include/curl \
    curl/src/curl
    
    DEFINES += QT_DEPRECATED_WARNINGS
    
    SOURCES += \
        main.cpp \
        mainwindow.cpp
    
    HEADERS += \ 
        mainwindow.h
    
    FORMS += \
        mainwindow.ui
    

    Since curlpp is a C++ wrapper for curl, it has some dependencies and tries to include curl at some point. I get an error (no matter what I try) when curlpp tries to include the curl header, in the cURLpp.hpp header.

    22192aa6-ef31-4968-a6b6-dd41b5073c68-image.png

    Is there a more simple way to include libraries, or is there something I can correct to let the 2 libs talk to eachother?
    thanks!

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

      Hi,

      Did you just clone the curl sources ? If so the you have to build it before you can use it.

      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

      • Login

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