Discussion:
compiled version of libssh2 for windowns 32bit
Toan Pham via libssh2-devel
2017-05-07 22:28:42 UTC
Permalink
Hi,

I am using an unknown version of libssh2 on windows 32bit.
libssh2_version(0) does not return anything so I do not know the exact
version, the windows shared library was given to me by a friend.....I guess
it is about 3 years old.

The problem that I am experiencing is that when I use libssh2 in qt timer
loop, often time, I would get error -41 while reading data from an active
channel. If I were to put the nonblock function call
(libssh2_channel_read) in a event loop, not qtimer, everything would work
OK. I am not sure if libssh2 is thread safe. One post I read from
https://hackage.haskell.org/package/libssh2, says that libssh2 for windows
must be compiled with the -threaded option to make it useable in windows.
I've been pulling my hair over this issue because I really do not know if I
got a foobar version of libssh.dll.

Unfortunately, I do not have visual studio and do not want to go through
the process of compiling the library w/ mingw for windows. I would like to
know if anyone here can send me the latest pre-compiled version of
libssh2.dll for win-32bit. Or if you know why I got the -41 in windows,
please share. BTW, the same application compiled for Linux-amd64 worked
fine.

thanks,

Toan
Toan Pham via libssh2-devel
2017-05-07 22:59:16 UTC
Permalink
Well, I found out the version of libssh2.dll I am using: it is.

LIbssh2 version: 1.2.9-20110813


obviously, it is 5 years old. Please let me know if you know of any bugfix
for error -41, since that version.

thanks,

TP
Post by Toan Pham via libssh2-devel
Hi,
I am using an unknown version of libssh2 on windows 32bit.
libssh2_version(0) does not return anything so I do not know the exact
version, the windows shared library was given to me by a friend.....I guess
it is about 3 years old.
The problem that I am experiencing is that when I use libssh2 in qt timer
loop, often time, I would get error -41 while reading data from an active
channel. If I were to put the nonblock function call
(libssh2_channel_read) in a event loop, not qtimer, everything would work
OK. I am not sure if libssh2 is thread safe. One post I read from
https://hackage.haskell.org/package/libssh2, says that libssh2 for
windows must be compiled with the -threaded option to make it useable in
windows. I've been pulling my hair over this issue because I really do not
know if I got a foobar version of libssh.dll.
Unfortunately, I do not have visual studio and do not want to go through
the process of compiling the library w/ mingw for windows. I would like to
know if anyone here can send me the latest pre-compiled version of
libssh2.dll for win-32bit. Or if you know why I got the -41 in windows,
please share. BTW, the same application compiled for Linux-amd64 worked
fine.
thanks,
Toan
Jan Ehrhardt
2017-05-08 07:39:13 UTC
Permalink
Toan Pham via libssh2-devel in gmane.network.ssh.libssh2.devel (Sun, 7
Post by Toan Pham via libssh2-devel
Well, I found out the version of libssh2.dll I am using: it is.
LIbssh2 version: 1.2.9-20110813
obviously, it is 5 years old. Please let me know if you know of any bugfix
for error -41, since that version.
You could try your luck with a more recent VC9 version:
http://windows.php.net/downloads/php-sdk/deps/archives/vc9/x86/
--
Jan

_______________________________________________
libssh2-devel https://
Loading...