gpt4 book ai didi

c++ - 为 C++ 构建 NetSieben 的 SSH Lib

转载 作者:行者123 更新时间:2023-11-28 08:25:25 26 4
gpt4 key购买 nike

我尝试构建这个库已经有一段时间了,但我有点困惑。我发现它在 Stack Overflow (http://www.netsieben.com/products/ssh/index.phtml) 上被推荐,但它只出现在源包中。它还需要 Botan 库来编译它,但我很茫然。

我已经使用 Windows Installer 安装了 Botan,并下载了源代码。当我尝试使用 CMAKE GUI 构建它时,出现以下错误。我不确定应该将 Botan 源放在哪里,以便它可以访问它。

Check for working CXX compiler using: Visual Studio 9 2008
Check for working CXX compiler using: Visual Studio 9 2008 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Looking for C++ include botan/botan.h
Looking for C++ include botan/botan.h - not found
CMake Warning (dev) at CMakeLists.txt:9 (add_subdirectory):
The source directory

C:/ne7ssh-1.3.2/src

does not contain a CMakeLists.txt file.

CMake does not support this case but it used to work accidentally and is
being allowed for compatibility.

Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run
"cmake --help-policy CMP0014" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:69 (install):
install Library TARGETS given no DESTINATION!


Configuring incomplete, errors occurred!

最佳答案

在谷歌上搜索消息“install Library TARGETS given no DESTINATION”表明删除 CMakeLists.txt 第 69 行的 Library 命令可能有效。

http://www.cmake.org/pipermail/cmake/2008-September/023876.html

关于c++ - 为 C++ 构建 NetSieben 的 SSH Lib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4235651/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com