解决方法: sudo apt-get install xorg-dev 如果makefile中没有-lXtst选项,则修改makefile 中 LIBS 选项: 添加 -lXtst选项。 转自:https://blog.csdn.net/ldl22847/article/details/18862795