现在的位置: 首页 > 综合 > 正文

libssh2的windows下编译

2013年12月07日 ⁄ 综合 ⁄ 共 247字 ⁄ 字号 评论关闭

下载libssh2 1.4.3版本source

在http://slproweb.com/products/Win32OpenSSL.html 下载windows下的openssl可用版本,选择完整版本,这样有include

修改libssh下的win32目录下config.mk

OPENSSLINC=C:\OpenSSL\include
OPENSSLLIB=C:\OpenSSL\lib

此处目录为openssl安装目录

把zlib相关选项关闭掉

在source根目录下nmake /f NMakefile

ok

抱歉!评论已关闭.