当前位置: 首页 > news >正文

CMake Error at fc_base/gflags-src/CMakeLists.txt:73

完整日志:

CMake Warning (dev) at /root/miniconda3/share/cmake-4.1/Modules/FetchContent.cmake:1373 (message):The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 isnot set.  The policy's OLD behavior will be used.  When using a URLdownload, the timestamps of extracted files should preferably be that ofthe time of extraction, otherwise code that depends on the extractedcontents might not be rebuilt if the URL changes.  The OLD behaviorpreserves the timestamps from the archive instead, but this is usually notwhat you want.  Update your project to the NEW behavior or specify theDOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid thisrobustness issue.
Call Stack (most recent call first):cmake/gflags.cmake:1 (FetchContent_Declare)cmake/openfst.cmake:2 (include)CMakeLists.txt:44 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.-- Populating gflags
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /root/autodl-tmp/wenet/runtime/libtorch/fc_base/gflags-subbuild
[100%] Built target gflags-populate
CMake Error at fc_base/gflags-src/CMakeLists.txt:73 (cmake_minimum_required):Compatibility with CMake < 3.5 has been removed from CMake.Update the VERSION argument <min> value.  Or, use the <min>...<max> syntaxto tell CMake that the project requires at least <min> but has been updatedto work with policies introduced by <max> or earlier.Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.-- Configuring incomplete, errors occurred!

在构建 wenet runtime 时报错,如上。

构建命令为:

mkdir build && cd build && cmake .. && cmake --build .

构建命令指定版本即可解决:

cmake -version
# cmake version 4.1.2
mkdir build && cd build && cmake -DCMAKE_POLICY_VERSION_MINIMUM=4.1.2 .. && cmake --build .

需要将原本的 build 目录删了

...
[ 91%] Linking CXX executable label_checker_main
[ 91%] Built target label_checker_main
[ 93%] Building CXX object bin/CMakeFiles/api_main.dir/api_main.cc.o
[ 94%] Linking CXX executable api_main
[ 94%] Built target api_main
[ 95%] Building CXX object bin/CMakeFiles/websocket_client_main.dir/websocket_client_main.cc.o
[ 97%] Linking CXX executable websocket_client_main
[ 97%] Built target websocket_client_main
[ 98%] Building CXX object bin/CMakeFiles/websocket_server_main.dir/websocket_server_main.cc.o
[100%] Linking CXX executable websocket_server_main
[100%] Built target websocket_server_main
http://www.dtcms.com/a/606282.html

相关文章:

  • 做一个网站需要多少人发布网站建设需求的经验
  • 网站开发多少工资做网站编辑好还是美工好
  • 上海网站建设公司四叶互联邗江区建设局网站
  • pytorch-张量转换
  • 推广型网站建设机构甘肃业聚质网络科技有限公司
  • 怎么让同一个局域网上的计算机看到我做的网站以公司名称为后缀的邮箱
  • Java接口与抽象类深度指南:从原理到实战
  • 人工智能备考——2.1.4题解
  • 做淘宝网站需要什么邵阳市城市建设网站
  • 告别闭门造车:用竞品ASO分析驱动应用下载转化
  • 【LeetCode】108. 将有序数组转换为二叉搜索树
  • 12.vector—string(下)
  • 具身智能数据采集全方案:动作捕捉技术驱动机器人拟人化进阶
  • 公司网站地图怎么做长沙网站托管优化
  • 网站免费创建雅虎搜索
  • 多通道手腕压力脉搏波信号
  • 眉县网站建设wordpress首页flash
  • 贪心算法实验2
  • C语言在线编译器开发 | 提高编译效率与用户体验的创新技术
  • MD5 校验脚本
  • 重生归来,我要成功 Python 高手--day35 深度学习 Pytorch
  • 马云有没有学过做网站百度收录时间
  • 企业网站的规划与建设ppt建设一个打鱼游戏网站
  • 在 Linux Ubuntu 24.04 安装 IntelliJ IDEA
  • 自适应网站建设方案建设网站 请示 报告
  • 有哪些做网站的品牌ios开发app
  • C语言编译器电脑版 | 提供高效编译体验,轻松学习与开发
  • 容器访问某个链接中断后面又正常,socket
  • 构建现代应用的9个Python GUI库
  • 做网站业务的怎么寻找客户做网站公司哪家强