Skip to content
QtWS25 Last Chance
  • Sending curl command to command prompt using QProcess

    Unsolved General and Desktop c++ qprocess curl api
    20
    0 Votes
    20 Posts
    3k Views
    A
    I am really thankful to everyone who replied to me and corrected my mistakes. Your help will help me finish my work quicker. Thanks @Christian-Ehrlicher , @Bonnie @JonB
  • 0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, Did you just clone the curl sources ? If so the you have to build it before you can use it.
  • 0 Votes
    3 Posts
    1k Views
    S
    @sirop Vielen Dank für den Tipp. Ich habe jetzt herausgefunden das DLLs gefehlt haben. Dies habe ich herausgefunden als ich selbst die Anwendung ohne IDE gestartet habe. Da kamen entsprechende Fehlermeldungen. Nach einfügen dieser fehlenden DLLs funktioniert es nun. Vielen Dank für die Hilfe und an alle ein schönes Wochenende und einen guten Start in die neue Woche. Grüße Sven
  • Troubles setting up Curl

    Qt Creator and other tools curl qt 5.4.2 linking
    12
    0 Votes
    12 Posts
    7k Views
    R
    Hello' Again, I've decided to try it over MinGW compiler and a static build, apparently it got better but still have some errors. Here is my .pro file: QT += core gui widgets TARGET = Launcher TEMPLATE = app SOURCES += main.cpp mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui DEFINES += CURL_STATICLIB LIBS += -L"C:/Users/Banzai/Desktop/C++/QtPgrm/Mingw Real/includes/curl" -lcurl LIBS += "C:/Users/Banzai/Desktop/C++/QtPgrm/Mingw Real/includes/curl/libcurl.a" LIBS += "C:/Users/Banzai/Desktop/C++/QtPgrm/Mingw Real/includes/curl/libcurldll.a" INCLUDEPATH += "C:/Users/Banzai/Desktop/C++/QtPgrm/Mingw Real/includes" Also '#define CURL_STATICLIB' is declared in the header before the include of cURL. Here is the error I got: error: undefined reference to `curl_easy_init'. Not too sure what it could be. (I am using the 64 bits version while the compiler is 32 bits). When I've been using the 32 bits version, here is what I got: undefined reference to {WSAStartup@8,WSACleanup@0} <path>/curl/libcurl.a(easy.o): bad reloc address 0x0 in section `.data'. Apparently I've ready somewhere that I had to include something with -lwsock32, which I did this way: LIBS += -lwsock32 Unfortunately it did not seem to change anything. Thank you for your help.