Incorrect path for cairommconfig.h in RHEL 6.4
The cairommconfig.h include path in graph_cairo_draw.cc is incorrect for RHEL 6.4's cairomm-1.0 package. I've included a simple fix at the bottom of the post if the developers choose to use it. I've also included the package versions for gcc and cairomm for developer reference. Packages: cairomm-1.8.0-2.1.el6.x86_64 cairomm-devel-1.8.0-2.1.el6.x86_64 gcc-4.4.7-3.el6.x86_64 gcc-c++-4.4.7-3.el6.x86_64 --- --- graph-tool-2.2.26-ORIGINAL/src/graph/draw/graph_cairo_draw.cc 2013-10-20 05:15:51.000000000 -0700 +++ graph-tool-2.2.26/src/graph/draw/graph_cairo_draw.cc 2013-11-08 08:27:55.379892995 -0800 @@ -32,7 +32,7 @@ #include "tr1_include.hh" #include TR1_HEADER(unordered_map) -#include <cairommconfig.h> +#include <cairomm/cairommconfig.h> #include <cairomm/context.h> #include <cairomm/surface.h> #include <pycairo/pycairo.h>
On 11/08/2013 05:48 PM, nhusted@gmail.com wrote:
The cairommconfig.h include path in graph_cairo_draw.cc is incorrect for RHEL 6.4's cairomm-1.0 package. I've included a simple fix at the bottom of the post if the developers choose to use it. I've also included the package versions for gcc and cairomm for developer reference.
Unfortunately the patch you sent will break compilation in other distributions with newer versions of cairomm (the newest is 1.10.0). I think the best way to deal with the older cairomm version in RHEL 6.4 is to run the configure script with ./configure CPPFLAGS="-I/usr/include/cairomm-1.0/cairomm/" which should take care of the problem, as described in http://graph-tool.skewed.de/ticket/145 Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
nhusted@gmail.com -
Tiago de Paula Peixoto