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. CURL (Ubuntu 20.04, QT 7.0.1)
Forum Updated to NodeBB v4.3 + New Features

CURL (Ubuntu 20.04, QT 7.0.1)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 365 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.
  • O Offline
    O Offline
    Oddball
    wrote on last edited by
    #1

    Hi,
    I installed curl with
    sudo apt install libcurl4-openssl-dev
    (curl-config --libs return -lcurl)

    and added to project
    LIBS+= -lcurl
    DEFINES += CURL_STATICLIB
    but trying to build it i receive error 'undefined reference to curl_easy_setopt' function. Can someone help with that?

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

      Hi and welcome to devnet,

      How are you including curl in your project ?

      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
      • O Oddball

        Hi,
        I installed curl with
        sudo apt install libcurl4-openssl-dev
        (curl-config --libs return -lcurl)

        and added to project
        LIBS+= -lcurl
        DEFINES += CURL_STATICLIB
        but trying to build it i receive error 'undefined reference to curl_easy_setopt' function. Can someone help with that?

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

        @Oddball said in CURL (Ubuntu 20.04, QT 7.0.1):

        DEFINES += CURL_STATICLIB

        Are you sure you have static Curl lib installed? It rather looks like you only have the shared lib.

        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