Cmake 找不到“XCB”
我试图在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 remove
libxcb-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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这为我解决了问题:
This resolved the problem for me: