1、在ubuntu中,如果在编译时出现如下错误:
错误:X11/Xlib.h:没有那个文件或目录
错误:X11/Xutil.h:没有那个文件或目录
错误:X11/Xos.h:没有那个文件或目录
错误:X11/Xatom.h:没有那个文件或目录
错误:X11/keysym.h:没有那个文件或目录
修正的方法:
$ sudo apt-get install libx11-dev
错误: X11/xpm.h:没有该文件或目录
修正的方法:
$ sudo apt-get install libxpm-dev
然后再从新编译即可
/usr/bin/ld: cannot find -lXtst
修正的方法:
$ sudo apt-get install libxtst-dev
阅读(963) | 评论(0) | 转发(0) |