Ubuntu编译android常见问题(转载)

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://hi.baidu.com/ever__love/blog/item/3abfcbd9d4a4846ad0164eb9.html

原文地址:https://www.cnblogs.com/xfdarm/p/1938893.html