![构建成功但在运行时缺少符号](https://linux22.com/image/1359350/%E6%9E%84%E5%BB%BA%E6%88%90%E5%8A%9F%E4%BD%86%E5%9C%A8%E8%BF%90%E8%A1%8C%E6%97%B6%E7%BC%BA%E5%B0%91%E7%AC%A6%E5%8F%B7.png)
构建 kmscon 后,我尝试运行它,但收到错误消息:
% ./kmscon
/home/janus/kmscon/.libs/lt-kmscon: symbol lookup error: /home/janus/kmscon/.libs/libuterm.so.1: undefined symbol: xkb_state_get_keymap
完整终端日志在此: https://gist.github.com/ysangkok/5363162
答案1
我解决了
- 更改
#include <xkbcommon/xkbcommon.h>
为#include "xkbcommon/xkbcommon.h"
- 配置
PKG_CONFIG_PATH="$HOME/libxkbcommon/" ./configure
ln -s ~/libxkbcommon/xkbcommon ~/kmscon/xkbcommon
。