Qt Creator and cURL - curl.h file not found
-
Hi!
In this new project I am starting to make I need use the curl library.
In order to have Qt Creator build and compile with this library I followed this guide:
http://www.cplusplus.com/forum/general/89488/
or tried this other method:
https://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
by adding curl library as external static library (curl.a file).
Unluckly none of the 2 methods is working and at the moment I am stuck.
Is there anyone who could please help me to solve this problem or who had this same problem at their time and could help me out?
Thank you in advance!
-
When you want to use a library you have to add the include path to INCLUDEPATH and add the library you want to link to to LIBS
-
Thank you for the answer @Christian-Ehrlicher!
Yes I did what you explained, here it is:
.pro file
(includer in the INCLUDEPATH is not a typo, i changed the name of the folder otherwise "include" would have highlighted as keyword)
.cpp file
but as you can see the error is still there
-
Since there are spaces in the path you will have to quote them with " or better - move them to a good location without spaces.
And putting a library under 'Start Menu' is for sure not very sensible... -
Oh snap, you are right!!
I was trying to link it with the wrong path..Thank you very much @Christian-Ehrlicher!!