56

I am using ubuntu 10.10, and when i compile chromium, it said remoting/host/event_executor_linux.cc:9: fatal error: X11/extensions/XTest.h: No such file or directory

But i have already installed libx11-dev:

$ sudo apt-get install  libx11-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libx11-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Please tell me how can I fix my problem.

Thank you.

michael
  • 106,540
  • 116
  • 246
  • 346
  • 1
    libX11 is the core X protocol library - anything under X11/extensions is generally one of the extension libraries. – alanc Feb 22 '11 at 02:27

2 Answers2

93

Install libxtst-dev package and you'll be able to compile Chromium sources.

kenorb
  • 155,785
  • 88
  • 678
  • 743
Dr. Snoopy
  • 55,122
  • 7
  • 121
  • 140
47

To find to which package your include file (X11/extensions/XTest.h) belong to, install apt-file and search for it, example:

$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file search "X11/extensions/XTest.h"
libxtst-dev: /usr/include/X11/extensions/XTest.h

Once you've the package name, install via:

sudo apt-get install libxtst-dev

This method is especially useful when there are more similar dependencies like that, so you don't have to guess.

kenorb
  • 155,785
  • 88
  • 678
  • 743