Comments (6)
Hi,
with the "main one" do you mean the libcurl library? If so, you have to install it.
curl/curl.h is the header file of libcurl library.
Let me know!
Giuseppe Persico
Software developer
University of Naples "Parthenope"
[email protected]
Il giorno 28/mag/2014, alle ore 16:03, tunage [email protected] ha scritto:
I downloaded the libcURL source code and imported the headers and source into my .pro file and it seems to find all the libraries except for the main one.
dies on:
#include
.pro file contains:QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = RESTtest
TEMPLATE = appSOURCES += main.cpp
mainwindow.cpp
../../../../../Users/Brad2/Documents/GitHub/curlcpp/src/CurlMulti.cpp
../../../../../Users/Brad2/Documents/GitHub/curlcpp/src/CurlHeader.cpp
../../../../../Users/Brad2/Documents/GitHub/curlcpp/src/CurlVersion.cpp
../../../../../Users/Brad2/Documents/GitHub/curlcpp/src/CurlEasy.cpp
../../../../../Users/Brad2/Documents/GitHub/curlcpp/src/CurlShare.cpp
../../../../../Users/Brad2/Documents/GitHub/curlcpp/src/CurlMessage.cpp
../../../../../Users/Brad2/Documents/GitHub/curlcpp/src/CurlHttpPost.cppHEADERS += mainwindow.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlEasy.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlInterface.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlMulti.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlPair.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlVersion.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlHttpPost.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlHeader.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlShare.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlMessage.h
../../../../../Users/Brad2/Documents/GitHub/curlcpp/include/CurlError.hFORMS += mainwindow.ui
INCLUDEPATH += "../../../../../Users/Brad2/Documents/GitHub/curlcpp/include"
INCLUDEPATH += "../../../../../Users/Brad2/Documents/GitHub/curlcpp/src"—
Reply to this email directly or view it on GitHub.
from curlcpp.
The issue appears a lot deeper than that. http://stackoverflow.com/questions/23922917/wild-errors-after-loading-curl-libraries-into-qt5?noredirect=1#comment36843436_23922917
This is a post I have running. getting the curl core to work with Qt does not appear to be that easy I am afraid. :(
from curlcpp.
Yes, it should be the main libcur library. Have tou tried to install it?
Giuseppe Persico
Software developer
University of Naples "Parthenope"
[email protected]
Il giorno 29/mag/2014, alle ore 03:22, tunage [email protected] ha scritto:
The issue appears a lot deeper than that. http://stackoverflow.com/questions/23922917/wild-errors-after-loading-curl-libraries-into-qt5?noredirect=1#comment36843436_23922917
This is a post I have running. getting the curl core to work with Qt does not appear to be that easy I am afraid. :(—
Reply to this email directly or view it on GitHub.
from curlcpp.
I include the source and headers in the .pro can can find the libraries just fine, but because it appears I am not compiled with std::thread support, I blow errors everywhere.
I am trying to figure out how to do that now.
from curlcpp.
If you have problems with std::thread, make sure that you are compiling the sources with the option -std=c++11 (or -std=c++0x, I don't remember), because std::thread is a new feature of C++! I will close this issue. Thank you!
from curlcpp.
@tunage
Because you are using qmake to build your project you need the equivalent of the cli option -std=c++11
which are the two following lines:
QMAKE_CXXFLAGS = -std=c++11
QMAKE_LFLAGS = -std=c++11
(I don't know if their placement in your .pro file is important, but I have mine at the top before everything else.)
Additionally, instead of specifying each header and cpp file; you can simplify your .pro file by using:
INCLUDEPATH += "$$PWD/thirdparty/curlcpp/include/"
LIBS += -L"$$PWD/thirdparty/curlcpp/build/src/" \
-lcurlcpp \
-lcurl
(Obviously you need to subsitute the directories with your own. $$PWD is the root of my project and I'm using curlcpp
as a git-submodule int a folder called thirdparty)
from curlcpp.
Related Issues (20)
- warnings when building
- NOEXCEPT
- Release:1.2 Cmake fails. HOT 15
- compile warning: invalid use of incomplete type HOT 2
- curl_easy_exception doesn't set any message into std::exception HOT 1
- Build of 1.4 fail with mingw32 in win10 and curl 7.74.0 HOT 12
- Can't link on windows HOT 3
- Singleton initializer issue HOT 1
- replece curlcpp-master/include to curlcpp-master/include/curlcpp
- Can't link with a project with Dynamic CRT (VS2019)
- initialising order warnings HOT 1
- Is a new tag/release coming soon? HOT 1
- build fail with curl 7.83.0 HOT 2
- Static build? HOT 6
- Deprecation warnings with latest curl version
- How to get response content string when using curl_multi HOT 1
- Version inside CMake looks out of date HOT 1
- suggestion libev
- Titles in README.md mismatch
- BUILD_SHARED_LIBS non-standard usage.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curlcpp.