X11/Xxx.h:没有那个文件或目录

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
  然后再从新编译即可


摘自: http://www.cnblogs.com/urbetter/archive/2011/01/19.html

猜你喜欢

转载自wtz123.iteye.com/blog/1300809
今日推荐