[Kde-extra-gear] Correctly handling subgraphs when using the graphviz library

Kleag kleag at free.fr
Wed Sep 2 00:25:55 CEST 2009


Hi Christoph, and extragear,

I have graphviz-devel-2.22.2, so maybe the problem comes from that. In my 
case, aghead is defined in types.h, included from gvc.h and ifdefined with 
WITH_CGRAPH (it then includes cgraph.h).

But I don't know how to modify the cmake files to check the version without 
breaking everything. I'm really not used to cmake scripts and a look at the 
internet did not give a good help.

Could someone help here ?

Regards,

Gaël
Le mardi 1 septembre 2009 23:00:52, vous avez écrit :
> Hi Gael,
>
> after http://websvn.kde.org/?view=rev&revision=1017547 I get the following
> compilation errors:
>
> kgraphviewer/src/part/graphsubgraph.cpp:131: error: 'aghead' was not
> declared in this scope
> kgraphviewer/src/part/dotgraph.cpp:424: error: 'aghead' was not declared in
> this scope
>
> I have graphviz-devel-2.20.2 installed, and adding an #include
> <graphviz/cgraph.h> (where aghead is declared), resulted in even more
> compilations errors.
>
> Could you look into the issue? If a newer graphviz is required, maybe add a
> version check in the CMake files.
>
> Thanks,
> Christoph Feck

-- 
KsirK - a world domination strategy game 
http://techbase.kde.org/Projects/Games/Tactic_and_Strategy/KsirK

KGraphViewer - a GraphViz dot graphs viewer
http://extragear.kde.org/apps/kgraphviewer


More information about the Kde-extra-gear mailing list