查找包时出现 Cmake 错误以完成构建
Cmake error at find packages to finish the build
我想构建 easyhttp - https://github.com/sony/easyhttpcpp/wiki/Installing-EasyHttp#build-easyhttp
在 Cmakeing 之后,它没有找到完成构建的包
CMake Error at /usr/local/lib/cmake/Poco/PocoConfig.cmake:29 (find_package):
Could not find a package configuration file provided by "PocoNetSSL" with
any of the following names:
PocoNetSSLConfig.cmake
poconetssl-config.cmake
Add the installation prefix of "PocoNetSSL" to CMAKE_PREFIX_PATH or set
"PocoNetSSL_DIR" to a directory containing one of the above files. If
"PocoNetSSL" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:56 (find_package)
-- Configuring incomplete, errors occurred!
See also "/mnt/d/Linux/easyhttpcpp/_build/CMakeFiles/CMakeOutput.log".
POCO Core 库不包含 PocoNetSSL 组件。所以需要另外安装。
使用 vcpkg 运行 列出可用的不同 poco 组件:
./vcpgk search poco
您应该得到类似这样的输出:
poco 1.11.0 Modern, powerful open source C++ class libraries for building network and ...
poco[mariadb] MariaDB support for POCO
poco[mysql] Mysql support for POCO
poco[netssl] NetSSL support for POCO
poco[pdf] Haru support for POCO
poco[postgresql] PostgreSQL support for POCO
poco[sqlite3] Sqlite3 support for POCO
使用 vcpkg 安装 poco[netssl] 运行:
./vcpgk install poco[netssl] --recurse
使用 vcpkg 时不要忘记集成已安装的库以使其可用:
./vcpkg integrate install
查看 https://vcpkg.readthedocs.io/en/latest/examples/installing-and-using-packages/ 了解有关如何将 vcpkg 与 cmake 结合使用的更多信息。
我想构建 easyhttp - https://github.com/sony/easyhttpcpp/wiki/Installing-EasyHttp#build-easyhttp 在 Cmakeing 之后,它没有找到完成构建的包
CMake Error at /usr/local/lib/cmake/Poco/PocoConfig.cmake:29 (find_package):
Could not find a package configuration file provided by "PocoNetSSL" with
any of the following names:
PocoNetSSLConfig.cmake
poconetssl-config.cmake
Add the installation prefix of "PocoNetSSL" to CMAKE_PREFIX_PATH or set
"PocoNetSSL_DIR" to a directory containing one of the above files. If
"PocoNetSSL" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:56 (find_package)
-- Configuring incomplete, errors occurred!
See also "/mnt/d/Linux/easyhttpcpp/_build/CMakeFiles/CMakeOutput.log".
POCO Core 库不包含 PocoNetSSL 组件。所以需要另外安装。
使用 vcpkg 运行 列出可用的不同 poco 组件:
./vcpgk search poco
您应该得到类似这样的输出:
poco 1.11.0 Modern, powerful open source C++ class libraries for building network and ...
poco[mariadb] MariaDB support for POCO
poco[mysql] Mysql support for POCO
poco[netssl] NetSSL support for POCO
poco[pdf] Haru support for POCO
poco[postgresql] PostgreSQL support for POCO
poco[sqlite3] Sqlite3 support for POCO
使用 vcpkg 安装 poco[netssl] 运行:
./vcpgk install poco[netssl] --recurse
使用 vcpkg 时不要忘记集成已安装的库以使其可用:
./vcpkg integrate install
查看 https://vcpkg.readthedocs.io/en/latest/examples/installing-and-using-packages/ 了解有关如何将 vcpkg 与 cmake 结合使用的更多信息。