What do you mean by
i cannot add the libssh2.h
You add
#include "libssh2.h"
#include "libssh2.h"
To copy to clipboard, switch view to plain text mode
to the cpp file that accesses libssh2 functions and data types. Make sure that you have set the include path in your qmake file, s.th. like
INCLUDEPATH += "path to libssh2 include directory"
INCLUDEPATH += "path to libssh2 include directory"
To copy to clipboard, switch view to plain text mode
For linking you also have to specify the library:
LIBS += -Labsolute_path_to_directory_containing_libssh2_library -lname_of_the_libssh2_library
LIBS += -Labsolute_path_to_directory_containing_libssh2_library -lname_of_the_libssh2_library
To copy to clipboard, switch view to plain text mode
After these modifications, rerun qmake to update your Makefile(s).
Sorry, I'm not an expert with qmake as I'm using plain makefiles. For more details see e.g. http://doc.qt.io/qt-4.8/qmake-variable-reference.html.
Best regards
ars
Bookmarks