当您尝试编译Qt时遇到错误:“ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread && features.xkbcommon && libs.xcb' failed”,这通常意味着您的系统中缺少一些必要的库文件,特别是与X Window系统相关的开发库。 要解决这个问题,您可以尝试以下步骤:
CMake Warning at ports/qt5-base/portfile.cmake:20 (message): qt5-base for qt5-x11extras requires the following libraries from the system package manager: libxkbcommon-x11-dev Even though libxkbcommon-x11-dev is installed. 👍1 ranjeethmahankali commentedon Mar 2, 2021 ...
在下载源码文件是,Qt官方分了两个包,一个是.xz,一个是zip包,在linux环境下需要使用xz包才可以进行正常编译,因为linux环境下的换行符和windows下的换行符不一样,所以在windows下编译Qt,需要选择zip文件包。 文件下载地址: https://download.qt.io/archive/qt/5.12/5.12.12/single/qt-everywhere-src-5.12.12.ta...