Rust crate自定义构建命令在CMake降级警告时失败



在编译crate expat-sys v2.1.6时,自定义构建命令失败,状态为101,--- stderr下的状态如下:

CMake Deprecation Warning at CMakeLists.txt:6 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

打印的配置如下:

CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None
CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None
HOST_CMAKE_TOOLCHAIN_FILE = None
CMAKE_TOOLCHAIN_FILE = None
CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None
CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None
HOST_CMAKE_GENERATOR = None
CMAKE_GENERATOR = None
CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None
CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None
HOST_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_x86_64-unknown-linux-gnu = None
CMAKE_x86_64_unknown_linux_gnu = None
HOST_CMAKE = None
CMAKE = None

我当前的cmake版本是3.25.1,我的rustc版本是1.66.0,我的操作系统是Fedora 37

cmake最近安装没有任何配置

当我尝试使用本教程学习如何使用WGPU时,编译依赖项时构建失败。我不熟悉CMake,所以我不知道如何很好地阅读它的错误。

在进一步挖掘之后(向ChatGPT寻求帮助),我尝试安装expat-devel,它编译了。

相关内容

  • 没有找到相关文章

最新更新