15:58:08: 为项目CTK执行步骤 ... 15:58:08: Persisting CMake state... 15:58:19: 正在启动 "D:\BaiduNetdiskDownload\cmake-3.16.0-win64-x64\bin\cmake.exe" --build . --target all Scanning dependencies of target Log4Qt [ 4%] Creating directories for 'Log4Qt' [ 8%] Performing download step (git clone) for 'Log4Qt' Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': OpenSSL SSL_read: Connection was reset, errno 10054 Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': OpenSSL SSL_read: Connection was reset, errno 10054 Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': Failed to connect to github.com port 443: Timed out -- Had to git clone more than once: 3 times. CMake Error at Log4Qt-cmake/tmp/Log4Qt-gitclone.cmake:31 (message): Failed to clone repository: 'https://github.com/MEONMedical/Log4Qt.git' NMAKE : fatal error U1077: “D:\BaiduNetdiskDownload\cmake-3.16.0-win64-x64\bin\cmake.exe”: 返回代码“0x1” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2” Stop. 15:59:23: 进程"D:\BaiduNetdiskDownload\cmake-3.16.0-win64-x64\bin\cmake.exe"退出,退出代码 2 。 Error while building/deploying project CTK (kit: cmake-3.16.0) The kit cmake-3.16.0 has configuration issues which might be the root cause for this problem. When executing step "CMake Build"
时间: 2024-04-22 07:25:17 浏览: 259
根据提供的日志信息,你的CMake构建过程中遇到了与克隆 'Log4Qt' 项目相关的问题。错误提示表明无法访问 'https://github.com/MEONMedical/Log4Qt.git/',并且出现了连接复位、连接超时等错误。
这个问题可能是由于以下原因导致的:
1. 网络问题:你的网络连接可能存在问题,***
相关问题
Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': OpenSSL SSL_read: Connection was reset, errno 10054 Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': OpenSSL SSL_read: Connection was reset, errno 10054 Cloning into 'Log4Qt'... fatal: unable to access 'https://github.com/MEONMedical/Log4Qt.git/': Failed to connect to github.com port 443: Timed out -- Had to git clone more than once: 3 times. CMake Error at Log4Qt-cmake/tmp/Log4Qt-gitclone.cmake:31 (message): Failed to clone repository: 'https://github.com/MEONMedical/Log4Qt.git' NMAKE : fatal error U1077: “D:\BaiduNetdiskDownload\cmake-3.16.0-win64-x64\bin\cmake.exe”: 返回代码“0x1” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2” Stop. 15:59:23: 进程"D:\BaiduNetdiskDownload\cmake-3.16.0-win64-x64\bin\cmake.exe"退出,退出代码 2 。 Error while building/deploying project CTK (kit: cmake-3.16.0) The kit cmake-3.16.0 has configuration issues which might be the root cause for this problem. When executing step "CMake Build"
根据你提供的日志信息,看起来你在尝试克隆 'Log4Qt' 项目时遇到了问题。错误提示表明无法访问 'https://github.com/MEONMedical/Log4Qt.git/',并且出现了连接复位、连接超时等错误。
这个问题可能由以下原因引起:
1. 网络问题:你的网络连接可能存在问题,***
if(NOT EXISTS ${CTK_BINARY_DIR}/CTK-build/bin) file(MAKE_DIRECTORY ${CTK_BINARY_DIR}/CTK-build/bin) endif() #----------------------------------------------------------------------------- set(proj CTK) set(ep_cxx_standard_arg) if(CMAKE_CXX_STANDARD) set(ep_cxx_standard_arg "-DCMAKE_CXX_STANDARD:STRING=${CMAKE_CXX_STANDARD}") endif() # ADD INSTALL_COMMAND if(WIN32) set(_INSTALL_CMD nmake install) else() set(_INSTALL_CMD make install) endif() # Set install location set(_INSTALL_DIR ${CTK_BINARY_DIR}/../CTKInstall) ExternalProject_Add(${proj} ${${proj}_EP_ARGS} DOWNLOAD_COMMAND "" CMAKE_CACHE_ARGS -DCTK_SUPERBUILD:BOOL=OFF -DCTK_SUPERBUILD_BINARY_DIR:PATH=${CTK_BINARY_DIR} -DCMAKE_C_COMPILER:FILEPATH=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER} -DCMAKE_CXX_FLAGS_INIT:STRING=${CMAKE_CXX_FLAGS_INIT} -DCMAKE_C_FLAGS_INIT:STRING=${CMAKE_C_FLAGS_INIT} -DCMAKE_INSTALL_PREFIX:PATH=${_INSTALL_DIR} -DCMAKE_MACOSX_RPATH:BOOL=${CMAKE_MACOSX_RPATH} ${ep_cxx_standard_arg} SOURCE_DIR ${CTK_SOURCE_DIR} BINARY_DIR ${CTK_BINARY_DIR}/CTK-build INSTALL_COMMAND ${_INSTALL_CMD} DEPENDS ${CTK_DEPENDENCIES}
这段代码看起来是一个CMake脚本,用于构建和安装CTK(Common Toolkit)项目。CTK是一个开源的C++工具包,用于开发医学图像处理和可视化应用。
这段代码的主要作用是使用ExternalProject_Add函数来添加CTK项目,并设置构建和安装选项。以下是对代码中各部分的解释:
1. 创建目录:首先,通过`if(NOT EXISTS ${CTK_BINARY_DIR}/CTK-build/bin)`判断`${CTK_BINARY_DIR}/CTK-build/bin`目录是否存在,如果不存在,则使用`file(MAKE_DIRECTORY ${CTK_BINARY_DIR}/CTK-build/bin)`创建该目录。这个目录可能用于存放编译后的可执行文件。
2. 设置项目名称:通过`set(proj CTK)`设置项目名称为CTK。
3. 设置C++标准:根据`${CMAKE_CXX_STANDARD}`的值,通过`set(ep_cxx_standard_arg "-DCMAKE_CXX_STANDARD:STRING=${CMAKE_CXX_STANDARD}")`设置CMake的C++标准选项。
4. 设置安装命令:根据当前操作系统的类型,通过`if(WIN32)`判断,如果是Windows系统,则设置`_INSTALL_CMD`为`nmake install`,否则设置为`make install`。这个命令将在构建完成后执行安装操作。
5. 设置安装目录:通过`set(_INSTALL_DIR ${CTK_BINARY_DIR}/../CTKInstall)`设置安装目录为`${CTK_BINARY_DIR}/../CTKInstall`。这个目录将用于安装CTK项目。
6. 添加CTK项目:通过`ExternalProject_Add`函数添加CTK项目,并设置相关的CMake选项和参数。其中,`SOURCE_DIR`指定CTK源码目录,`BINARY_DIR`指定CTK构建目录,`INSTALL_COMMAND`指定安装命令,`DEPENDS`指定CTK项目的依赖项。
以上就是这段代码的主要内容和作用。通过执行这段脚本,可以构建和安装CTK项目,并将结果安装到指定的目录中。
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231044736.png)
![-](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)