我在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
其他所有内容都已编译,这是唯一有问题的。
答案 0 :(得分:0)
该错误告诉您cmake文件找不到所需的库。名称X11_Xkbfile_LIB
表示它应该是为X11提供C绑定的库之一(" xkb")。也许安装libxcb-xkb-dev
会有帮助吗?
答案 1 :(得分:0)
成功:嗨,我遇到了完全相同的问题。我不知道,但是解决方法是这里:
添加缺少的符号链接:
sudo ln -s libxkbfile.so.1.0.2 libxkbfile.so
sudo ln -s libxkbcommon-x11.so.0.0.0 libxkbcommon-x11.so
在qtcreator中运行了cmake