Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed build on MSYS (Windows) 64-bit #22
@kvanberendonck, thank you for that request and sorry for the long delay with merging this.
Currently I'm trying to follow your blog post and build this with msys2.
At first, I had to
After that I'm still getting the wrong definition of
foreign import ccall safe "Network\\SSH\\Client\\LibSSH2\\Foreign.chs.h libssh2_session_handshake" handshake_'_ :: ((Ptr ()) -> (CInt -> (IO CInt)))
(but it should say
I think that it's due to
I can fix that errors with some additional defines (such as
I'm obviously doing something wrong, but what exactly? Could we easily fix that?
(If I could build that, we'd merge your request and I'd prepare new build instructions for those brave souls willing to use libssh2 on Windows.)
Did you patch in the last snippet from #21 ?
The blog post assumes you perform some manual patching of libssh2-hs, and I had assumed that these would eventually get merged but they never did. Blog post was a very long time ago, may no longer be relevant.