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
On Friday, December 13, 2013 8:25:00 AM UTC-6, Nikos wrote:
Hi all,
I successfully compiled grpah-tool in my Mavericks OSX using homebrew for the dependencies optional or not (i.e. expat, boost, cairo,...)
the configuration was
./configure LDFLAGS="-L/usr/local/Cellar" PYTHON_EXTRA_LDFLAGS="-L/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Python" CPPFLAGS="-I/usr/local/include/sparsehash" PYTHON_VERSION="2.7.6" --with-numpy=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy --with-scipy=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy --enable-cgal-valgrind --disable-cairo
make and make install works fine here !!
No we I am coming into the problems... I need to be able also to draw my graphs, and so I need to install it again with cairo
I had installed cairo, cairomm, py2cairo (for python2.7) before with homebrew, as you can see
$ pkg-config cairomm-1.0 --libs -L/usr/local/Cellar/cairomm/1.10.0/lib -L/usr/local/Cellar/cairo/1.12.16/lib -L/usr/local/Cellar/libsigc++/2.3.1/lib -lcairomm-1.0 -lcairo -lsigc-2.0
$ pkg-config pycairo --libs -L/usr/local/Cellar/cairo/1.12.16/lib -lcairo
$ pkg-config cairo --libs -L/usr/local/Cellar/cairo/1.12.16/lib -lcairo
Now I am trying to configure the installation as:
./configure LDFLAGS="-L/usr/local/Cellar" PYTHON_EXTRA_LDFLAGS="-L/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Python" CPPFLAGS="-I/usr/local/include/sparsehash" PYTHON_VERSION="2.7.6" CAIROMM_LIBS="-L/usr/local/Cellar/cairomm/1.10.0/lib -L/usr/local/Cellar/cairo/1.12.16/lib -L/usr/local/Cellar/libsigc++/2.3.1/lib" CAIROMM_CFLAGS="-O3 -lcairomm-1.0 -lcairo -lsigc-2.0" --with-numpy=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy --with-scipy=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy --enable-cgal-valgrind >> my_conf.log.txt
and as you can see in the file my_conf.log.txt I take an error message: ....... 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
The whole files my_conf.log.txt as well as the config.log are attached here.
Does anyone have the same problem or know how to solve it?
Thanks in advance,
Nikos