# Ubutnu openssl库 **Repository Path**: dengzhimao/openssllib ## Basic Information - **Project Name**: Ubutnu openssl库 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-07 - **Last Updated**: 2021-06-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Ubutnu openssl库 #### 介绍 在Ubuntu16里使用Qt 5.12.9会出现“qt.network.ssl: QSslSocket: cannot resolve OPENSSL_init_ssl”,原因是Ubuntu16里的版本的openssl问题(某个版本去除安全之类的),所以需要重新编译openssl,编译参考如下。Ubuntu18无此类问题。 ``` git clone https://github.com/openssl/openssl.git cd openssl/ git checkout -b OpenSSL_1_1_1-stable remotes/origin/OpenSSL_1_1_1-stable ./config enable-shared make depend make -j 16 ``` 编译完成将libcrypto.so* libssl.so*拷贝到Qt的安装目录下。 `sudo cp libcrypto.so* libssl.so* /opt/Qt5.12.9/5.12.9/gcc_64/lib/` 为了方便,正点原子减少用户编译的时间,已经编译出libcrypto.so* libssl.so*库上传到gitee里,大家可以下载使用! #### 使用说明 使用git指令克隆本项目后,将libcrypto.so* libssl.so*拷贝到Qt的安装目录下。 `sudo cp libcrypto.so* libssl.so* /opt/Qt5.12.9/5.12.9/gcc_64/lib/`