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
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 ?
On Friday, December 13, 2013 3:25:00 PM UTC+1, Nikos Kouvaris 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
On 12/13/2013 04:17 PM, Nikos Kouvaris wrote:
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 ?
The following should probably work:
CPPFLAGS="-I/usr/local/Cellar/py2cairo/1.10.0/include/"
Cheers, Tiago
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
and I tried again, but unsuccessfully,
Any other ideas? Thanks, Nikos
On Monday, December 16, 2013 10:06:03 AM UTC+1, Tiago Peixoto wrote:
On 12/13/2013 04:17 PM, Nikos Kouvaris wrote:
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 ?
The following should probably work:
CPPFLAGS="-I/usr/local/Cellar/py2cairo/1.10.0/include/"
Cheers, Tiago
-- Tiago de Paula Peixoto <ti...@skewed.de javascript:>
On 12/16/2013 11:09 AM, Nikos wrote:
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
and I tried again, but unsuccessfully,
Any other ideas?
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.
Cheers, Tiago
Hi, I manage to run configure correctly by giving the needed paths
./configure LDFLAGS=-L/usr/local/Cellar PYTHON_EXTRA_LDFLAGS=-L/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Python --enable-cgal-valgrind CPPFLAGS=-I/usr/local/include/sparsehash -I/usr/local/Cellar/py2cairo/1.10.0/include/pycairo -I/usr/local/Cellar/cairo/1.12.16/include/cairo 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/cairo/1.12.16/include/cairo CAIROMM_CFLAGS=-O3 -lcairomm-1.0 -lcairo -lsigc-2.0
However I take now a fatal error when I run make
..... Making all in draw CXX graph_cairo_draw.lo clang: warning: -lcairomm-1.0: 'linker' input unused clang: warning: -lcairo: 'linker' input unused clang: warning: -lsigc-2.0: 'linker' input unused warning: unknown warning option '-Wno-unused-local-typedefs' [-Wunknown-warning-option] graph_cairo_draw.cc:34:10: fatal error: 'cairommconfig.h' file not found #include <cairommconfig.h> ^ 1 warning and 1 error generated. make[4]: *** [graph_cairo_draw.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
On Monday, December 16, 2013 5:25:43 PM UTC+1, Tiago Peixoto wrote:
On 12/16/2013 11:09 AM, Nikos wrote:
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
and I tried again, but unsuccessfully,
Any other ideas?
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.
Cheers, Tiago
-- Tiago de Paula Peixoto <ti...@skewed.de javascript:>
On 01/03/2014 10:26 AM, Nikos wrote:
Hi, I manage to run configure correctly by giving the needed paths
./configure LDFLAGS=-L/usr/local/Cellar PYTHON_EXTRA_LDFLAGS=-L/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Python --enable-cgal-valgrind CPPFLAGS=-I/usr/local/include/sparsehash -I/usr/local/Cellar/py2cairo/1.10.0/include/pycairo -I/usr/local/Cellar/cairo/1.12.16/include/cairo 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/cairo/1.12.16/include/cairo CAIROMM_CFLAGS=-O3 -lcairomm-1.0 -lcairo -lsigc-2.0
However I take now a fatal error when I run make
..... Making all in draw CXX graph_cairo_draw.lo clang: warning: -lcairomm-1.0: 'linker' input unused clang: warning: -lcairo: 'linker' input unused clang: warning: -lsigc-2.0: 'linker' input unused warning: unknown warning option '-Wno-unused-local-typedefs' [-Wunknown-warning-option] graph_cairo_draw.cc:34:10: fatal error: 'cairommconfig.h' file not found #include <cairommconfig.h> ^ 1 warning and 1 error generated. make[4]: *** [graph_cairo_draw.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
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.
Best, Tiago
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