Cmake 找不到“XCB”

发布于 2025-01-17 11:42:15 字数 1497 浏览 2 评论 0原文

我试图在Linux Mint机器上安装Vulkan SDK,但我在构建它方面有问题。
当我键入cmake .. -wno -dev 我获得了此输出,

-- Using cmake find_program to look for glslangValidator
CMake Error at CMakeLists.txt:60 (find_package):
  By not providing "FindXCB.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "XCB", but
  CMake did not find one.

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

    XCBConfig.cmake
    xcb-config.cmake

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


-- Configuring incomplete, errors occurred!
See also "/home/heimchen/Downloads/1.3.204.1/source/Vulkan-Tools/cube/build/CmakeFiles/CmakeOutput.log"
  • 我已经尝试删除libxcb1-dev并重新安装了它。\ \
  • 我已经尝试删除libxcb-randr0-dev 并重新安装了它。
  • 我已经尝试删除libwayland-dev并重新安装了它。

编辑:

它以1.3.204.1/source/vulkan-tools进行编译,但是我仍然有一些错误的包裹。 cmake错误at/usr/share/cmake-3.16/modules/findpkgconfig.cmake:463(消息):找不到所需的软件包呼叫堆栈(最新电话):/usr/share/cmake-3.16/模块/findpkgconfig.cmake:643(_pkg_check_modules_internal)cmake/findwaywaylandprotocols.cmakes.cmake:9(pkg_check_modules)cube/cube/cmakelists.txt.txt:70(find_package

) 两天后尝试了一下,它起作用了。不知道为什么。

I am trying to install the Vulkan SDK on my Linux Mint Machine, but I have problems with building it.
When I type cmake .. -Wno-dev
I get this output

-- Using cmake find_program to look for glslangValidator
CMake Error at CMakeLists.txt:60 (find_package):
  By not providing "FindXCB.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "XCB", but
  CMake did not find one.

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

    XCBConfig.cmake
    xcb-config.cmake

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


-- Configuring incomplete, errors occurred!
See also "/home/heimchen/Downloads/1.3.204.1/source/Vulkan-Tools/cube/build/CmakeFiles/CmakeOutput.log"
  • I already tried to remove libxcb1-dev and reinstalled it.\
  • I already tried to removelibxcb-randr0-dev and reinstalled it.
  • I already tried to remove libwayland-dev and reinstalled it.

Edit:

It compiles at 1.3.204.1/source/Vulkan-Tools, but I still have some ERRORs with missing packages. CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal) cmake/FindWaylandProtocols.cmake:9 (pkg_check_modules) cube/CMakeLists.txt:70 (find_package)\

Edit:
Tried it two days later and it worked. Don't know why.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谎言 2025-01-24 11:42:15

这为我解决了问题:

$ sudo apt install libxcb-xfixes0-dev

This resolved the problem for me:

$ sudo apt install libxcb-xfixes0-dev
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文