尝试通过 yay 安装 cura 时出现 Cmake 错误

Cmake error when trying to install cura through yay

提问人:bagel 提问时间:11/9/2023 最后编辑:bagel 更新时间:11/9/2023 访问量:82

问:

在 archlinux 上使用时出现此错误yay -S cura

CMake Error at CMakeLists.txt:4 (find_package):
  By not providing "Findstandardprojectsettings.cmake" in CMAKE_MODULE_PATH
  this project has asked CMake to find a package configuration file provided
  by "standardprojectsettings", but CMake did not find one.

  Could not find a package configuration file provided by
  "standardprojectsettings" with any of the following names:

    standardprojectsettingsConfig.cmake
    standardprojectsettings-config.cmake

  Add the installation prefix of "standardprojectsettings" to
  CMAKE_PREFIX_PATH or set "standardprojectsettings_DIR" to a directory
  containing one of the above files.  If "standardprojectsettings" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: libarcus-git-exit status 4
==> Making package: cura 5.3.0-1 (Wed 08 Nov 2023 12:12:33 PM CST)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> uranium
  -> curaengine
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
 -> error making: cura-exit status 8
 -> Failed to install the following packages. Manual intervention is required:
curaengine - exit status 8
libarcus-git - exit status 4
cura - exit status 8
uranium - exit status 8

我似乎能够使用 yay 安装其他软件包,没有任何问题。

我花了很多时间在谷歌上搜索诸如此类的短语,但我找不到任何有用的东西。CMake Error at CMakeLists.txt:4:

我的系统是最新的,我昨天更新了镜像列表并运行没有问题。sudo pacman -Syu

我已经尝试过运行没有问题,但仍然没有帮助。yay -Syu

我对CMake了解不多,也不知道该怎么办,有人可以帮忙吗? 如果需要,我很乐意提供任何额外的信息。

cmake archlinux

评论

0赞 KamilCuk 11/9/2023
嗨,这不是论坛。在reddit上提问。所以错误是关于它无法找到“standardprojectsettings”软件。我在 aur.archlinux.org/packages/cura 上什么也没看到.在源代码中只有 github.com/Ultimaker/libArcus/blame/main/CMakeLists.txt#L4,我不知道什么是“standardprojectsettings”。请确保按照 github.com/Ultimaker/libArcus/tree/main#linux 中列出的所有要求进行安装。对于什么是值得的,我得到了同样的错误,不知道。您也可以使用 conan 而不是 cmake 从源代码 github.com/Ultimaker/Cura 编译。
0赞 Tsyvarev 11/9/2023
在 Stack Overflow 上,我们不会将解决方案放入问题帖子中,也不会在标题中写“已解决”。您可以写下自己的答案并在其中提供解决方案:stackoverflow.com/help/self-answer。一旦答案被接受,问题将获得绿色标记。
0赞 bagel 11/9/2023
@Tsyvarev 非常感谢你让我知道,我已经修好了。

答:

0赞 bagel 11/9/2023 #1

我能够使用代替yay -S cura-binyay -S cura