尝试 运行 安装 Socket.IO C++ 客户端的第 3 步时收到有关 OpenSSL 的错误
Receiving error about OpenSSL when trying to run step 3 of installing Socket.IO C++ Client
我想从 https://github.com/socketio/socket.io-client-cpp, but I have some difficulties following the steps from https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md 安装 Socket.IO C++ 客户端。
我已经成功安装了 Boost 版本 1_73_0(第 1 步)和 运行 第 2 步。Boost 安装在 /Users/Home/Documents/boost_1_73_0
。
socket.io C++ 客户端位于 /Users/Home/Documents/socket.io-client-cpp
当我使用此代码 运行 第 3 步时:
(base) MacBook-Pro-7:socket.io-client-cpp Home$ cmake -DBOOST_ROOT:STRING=/Users/Home/Documents/boost_1_73_0 -DBOOST_VER:STRING=1_73_0 ./
我收到以下错误:
-- not define build type, set to release
CMake Error at CMakeLists.txt:23 (find_package):
find_package called with invalid argument "1_73_0"
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
-- Configuring incomplete, errors occurred!
See also "/Users/Home/Documents/GitHub/socket.io-client-cpp/CMakeFiles/CMakeOutput.log".
我也尝试在目录中使用 brew install openssl
安装 openssl,但我仍然收到相同的错误。如果您能说明我应该怎么做,我将不胜感激。
cmake
命令行中BOOST_VER
缓存变量的内容作为参数提供给CMake的find_package
命令:
1_73_0
但是,根据 find_package
文档,格式必须使用 句点 来分隔版本组件:
The [version]
argument requests a version with which the package found should be compatible (format is major[.minor[.patch[.tweak]]]
)
只需更改cmake
命令行,使其符合要求的版本格式:
cmake -DBOOST_ROOT:STRING=/Users/Home/Documents/boost_1_73_0 -DBOOST_VER:STRING=1.73.0 ./
我想从 https://github.com/socketio/socket.io-client-cpp, but I have some difficulties following the steps from https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md 安装 Socket.IO C++ 客户端。
我已经成功安装了 Boost 版本 1_73_0(第 1 步)和 运行 第 2 步。Boost 安装在 /Users/Home/Documents/boost_1_73_0
。
socket.io C++ 客户端位于 /Users/Home/Documents/socket.io-client-cpp
当我使用此代码 运行 第 3 步时:
(base) MacBook-Pro-7:socket.io-client-cpp Home$ cmake -DBOOST_ROOT:STRING=/Users/Home/Documents/boost_1_73_0 -DBOOST_VER:STRING=1_73_0 ./
我收到以下错误:
-- not define build type, set to release
CMake Error at CMakeLists.txt:23 (find_package):
find_package called with invalid argument "1_73_0"
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
-- Configuring incomplete, errors occurred!
See also "/Users/Home/Documents/GitHub/socket.io-client-cpp/CMakeFiles/CMakeOutput.log".
我也尝试在目录中使用 brew install openssl
安装 openssl,但我仍然收到相同的错误。如果您能说明我应该怎么做,我将不胜感激。
cmake
命令行中BOOST_VER
缓存变量的内容作为参数提供给CMake的find_package
命令:
1_73_0
但是,根据 find_package
文档,格式必须使用 句点 来分隔版本组件:
The
[version]
argument requests a version with which the package found should be compatible (format ismajor[.minor[.patch[.tweak]]]
)
只需更改cmake
命令行,使其符合要求的版本格式:
cmake -DBOOST_ROOT:STRING=/Users/Home/Documents/boost_1_73_0 -DBOOST_VER:STRING=1.73.0 ./