-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt c++ error: curl/curl.h: No such file or directory #4
Comments
Hi, Let me know! Giuseppe Persico
|
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 |
Yes, it should be the main libcur library. Have tou tried to install it? Giuseppe Persico
|
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. |
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! |
@tunage
(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:
(Obviously you need to subsitute the directories with your own. $$PWD is the root of my project and I'm using |
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 <curl/curl.h>
.pro file contains:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = RESTtest
TEMPLATE = app
SOURCES += 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.cpp
HEADERS += 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.h
FORMS += mainwindow.ui
INCLUDEPATH += "../../../../../Users/Brad2/Documents/GitHub/curlcpp/include"
INCLUDEPATH += "../../../../../Users/Brad2/Documents/GitHub/curlcpp/src"
The text was updated successfully, but these errors were encountered: