I've installed cairo-1.4.14 using make install, but after trying to compile my code:
fatal error: cairo.h: No such file or directory
#include <cairo.h>
^
I compile using this:
g++ screenshot.cpp
I installed 3 packages from this output, but still the same problem:
apt-file search --regex /cairo.h$
libcairo2-dev: /usr/include/cairo/cairo.h
r-cran-rgtk2: /usr/lib/R/site-library/RGtk2/include/RGtk2/cairo.h
thunderbird-dev: /usr/include/thunderbird/cairo/cairo.h
Info about system:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
Output of pkg-config --libs --cflags cairo :
-I/usr/local/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -L/usr/local/lib -lcairo