修改
sio_client_impl.h
增加
#define SIO_TLS 1
下载,安装 openssl-1
安装配置系统环境 cmake
打开终端
'Developer Command Prompt for VS 2019'
进入socketio--client-cpp目录
cmake ./ -DOPENSSL_ROOT_DIR=C:\OpenSSL-Win64 -DOPENSSL_INCLUDE_DIR=C:\OpenSSL-Win64\include -DOPENSSL_CRYPTO_LIBRARY=C:\OpenSSL-Win64\crypto
cmake --build ./
cmake --build ./ --config Release
cmake --install ./ --prefix install_tls
参考资料
Cmake Openssl not found
https://qa.1r1g.com/sf/ask/3522748701/
iOS 編譯socketio靜態庫
https://www.twblogs.net/a/5d669881bd9eee5327febf66
Installation alternatives -> With CMAKE
https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md
sio_client_impl.h
增加
#define SIO_TLS 1
下载,安装 openssl-1
安装配置系统环境 cmake
打开终端
'Developer Command Prompt for VS 2019'
进入socketio--client-cpp目录
cmake ./ -DOPENSSL_ROOT_DIR=C:\OpenSSL-Win64 -DOPENSSL_INCLUDE_DIR=C:\OpenSSL-Win64\include -DOPENSSL_CRYPTO_LIBRARY=C:\OpenSSL-Win64\crypto
cmake --build ./
cmake --build ./ --config Release
cmake --install ./ --prefix install_tls
参考资料
Cmake Openssl not found
https://qa.1r1g.com/sf/ask/3522748701/
iOS 編譯socketio靜態庫
https://www.twblogs.net/a/5d669881bd9eee5327febf66
Installation alternatives -> With CMAKE
https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md
