Problem in use libssh (application crashed)
-
wrote on 8 Sept 2017, 20:03 last edited by MrErfan 9 Sept 2017, 11:25
Hello friends ,
I want to use libssh library. I first downloaded version 0.7.2 of the library
And I opened a new project in Qt, And is included in .proQT += core gui network greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = untitled TEMPLATE = app DEFINES += QT_DEPRECATED_WARNINGS # Libssh: LIBS += -L$$PWD'/libssh/lib/' -lssh INCLUDEPATH += $$PWD'/libssh/include/' SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui
And finally, I used a simple example ...
But the program is crashed .
where is the problem?
tnx :x -
Hi,
Might be unrelated but why do you have the MinGW version of that library highlighted while you are building for Visual Studio 2015 ?
In any case, where are the .dlls located ?
-
wrote on 9 Sept 2017, 09:18 last edited by
@SGaist said in Problem in use libssh (application crashed):
Hi,
Might be unrelated but why do you have the MinGW version of that library highlighted while you are building for Visual Studio 2015 ?
In any case, where are the .dlls located ?
thanks for your response ,
Because of the absence of WebEngine in the MinGW compiler, I use the msvc compiler.Dll,Lib Libssh Locate :
-
Hi
Unless you downloaded some other packets named
-msvc in the end, you are mixing compilers. -
wrote on 9 Sept 2017, 11:23 last edited by
No, I downloaded the msvc version
-
@MrErfan
Super. And that VS compiled DLL are compatible with
vs 2015 ? -
@MrErfan
Ok. i also tried to look at site but its not clear what VS was used.
It looks like a c api so not sure how compatible the dlls are.
When c++ Api, its very sensitive.If you have cmake installed, then maybe just build it your self to be
sure ?Did you single step the application?
Do you know if it crashes before main or first when you
use it in main ?
(the my_ssh_session stuff) -
Then you have to go to the "Run" part of the Project panel. Once there, modify the PATH environment variable and prepend the folder where the ssh.dll file can be found. Do NOT do it system wide.
Other solution is to copy the ssh.dll in the build folder of your application.
-
wrote on 9 Sept 2017, 19:57 last edited by
Thank you, the problem has been resolved.
7/10