Qt 解析网络数据出现ssl错误
最近写了点小东西,哈哈,
网络部分是同学帮我搞的
在编译的时候,出现了一下错误
qt.network.ssl: QSslSocket: cannot call unresolved function TLSv1_1_client_method qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
和同学请教以后,发现是Qt少了两个库文件
libeay32.dll 和 ssleay32.dll 文件
首先下载openssl
http://www.openssl.org/
然后安装
注意,在安装到最后一步是,软件会让你选择将库文件放在那里,这里要自己决定放到系统,还是软件的目录下
然后将libeay32.dll 和 ssleay32.dll 文件拷贝到你的Qt目录下就ok了
附上openssl
http://download.csdn.net/detail/z609932088/9470085