构建kde5等离子桌面失败

时间:2017-03-17 13:29:07

标签: cmake kde

我在Ubuntu 14.04 32bit上构建kde5,但它始终无法使用Cmake配置plasma-desktop。这是错误消息:

 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

其他所有内容都已编译,这是唯一有问题的。

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

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

  1. 我读了at-2500的答案和silajim的回复
  2. 我按照了答案一中的链接-> libxcb-xkb-dev
  3. 在其中找到了我的架构的链接并记住了文件
  4. 我进入此目录,然后输入:ls -l | grep xkb
  5. 原来有2个* .so符号链接缺失
  6. 添加缺少的符号链接:

     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. 成功