构建 kde5 等离子桌面失败

build kde5 plasma-desktop fails

我正在 Ubuntu 14.04 32 位上构建 kde5,但它总是无法使用 Cmake 配置等离子桌面。这是错误消息:

 CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_Xkbfile_LIB (ADVANCED)
    linked by target "kcm_keyboard" in directory /Projects/kde5/kdesrc/plasma-desktop/kcms/keyboard
    linked by target "kded_keyboard" in directory /Projects/kde5/kdesrc/plasma-desktop/kcms/keyboard
    linked by target "xkb_rules_test" in directory /Projects/kde5/kdesrc/plasma-desktop/kcms/keyboard/tests
    linked by target "iso_codes_test" in directory /Projects/kde5/kdesrc/plasma-desktop/kcms/keyboard/tests
    linked by target "geometry_parser_test" in directory /Projects/kde5/kdesrc/plasma-desktop/kcms/keyboard/tests
    linked by target "flags_test" in directory /Projects/kde5/kdesrc/plasma-desktop/kcms/keyboard/tests
    linked by target "keyboard_daemon_test" in directory /Projects/kde5/kdesrc/plasma-desktop/kcms/keyboard/tests

其他都编译好了,只有这个有问题。

该错误告诉您cmake 文件找不到所需的库。名称 X11_Xkbfile_LIB 表示它应该是为 X11 ("xkb") 提供 C 绑定的库之一。也许安装 libxcb-xkb-dev 有帮助?

成功:嗨,我 运行 遇到了完全相同的问题。我不知道,但这是解决方案:

  1. 我阅读了 at-2500 的答复和 silajim 的回复
  2. 我按照答案一中的 link -> libxcb-xkb-dev
  3. 跟着我的架构 link 并记住了文件
  4. 我进入我的这个目录并且:ls -l | grep xkb
  5. 发现缺少 2 个 *.so symlinks
  6. 添加缺失的符号links:

     sudo ln -s libxkbfile.so.1.0.2 libxkbfile.so
     sudo ln -s libxkbcommon-x11.so.0.0.0 libxkbcommon-x11.so
    
  7. 运行 qtcreator 中的cmake

  8. 成功