How can I include libssh in windows ?
-
I installed libssh on my computer. But I can not include header files. In linux I typed
@#include <libssh/libssh.h>@
but in windows I get
@C:\Users\asd\Desktop\Multimedia\Multimedia\mainwindow.h:7: error: C1083: Cannot open include file: 'libssh.h': No such file or directory@
How can I include libssh to my Qt project in windows? -
Hi,
You are probably missing an INCLUDEPATH statement for Windows that points to your libssh installation folder.
Something like:
@
win32 {
INCLUDEPATH += C:/Path_to/libssh/
}@Hope it helps
-
Thank you. I can add libssh to my Project. But now I type @ssh_new();@ to create new ssh session and Qt applicaton crashed while opening ?
-
I'd say that your application can't find the libssh dlls.
Go to the Run part of the Project Panel and update the PATH environment variable by adding the path to the libssh dlls