actually he is looking fot the the pycairo.h in the directory
/usr/local/include/pycairo,
while in my systems it seems to be installed in
/usr/local/Cellar/py2cairo/1.10.0/include/pycairo
How I can pass mine pycairo.h directory to the configuration ?
Hi Tiago,
thanks for your response, but unfortunately it still does not work.
Actually, both directories
/usr/local/Cellar/py2cairo/1.10.0/include/pycairo/ and
/usr/local/include/pycairo contain a file pycairo.h.
So, I tried to pass each of these two directories to the CPPFLAGS, but I
am getting the same configuration error, ie.
......................
checking pkg-config is at least version 0.9.0... yes
checking for CAIROMM... yes
checking python module: cairo... yes
checking pycairo/pycairo.h usability... no
checking pycairo/pycairo.h presence... no
checking for pycairo/pycairo.h... no
configure: error: pycairo headers not found
Then I have reinstall pycairo with brew uninstall py2cairo & brew install
py2cairo
The problem is almost certainly that your are not passing the correct
non-default include paths you are using via the CPPFLAGS variable; you
just need to find the correct ones. Search in the config.log file for
errors such as "fatal error: 'cairo.h' file not found", and include the
directory where such include files are to be found.
Just be careful to set the include paths which are compatible with the
libraries that you are linking to.
It seems you are still not including all the paths properly. Find where
the file cairoconfig.h is installed on or your system, and pass that
directory as the argument of the "-I" option in your CPPFLAGS variable.
I'm not sure if you had gotten it to work by now or not - I had the same
problem, but was able to fix it by changing /usr/include/pycairo/py3cairo.h
to /usr/include/pycairo/pycairo.h