[size=medium]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
然后再从新编译即可[/size]
摘自:[url]http://www.cnblogs.com/urbetter/archive/2011/01/19.html[/url]
错误: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
然后再从新编译即可[/size]
摘自:[url]http://www.cnblogs.com/urbetter/archive/2011/01/19.html[/url]