On 07/09/2013 07:22 AM, Richard Ree wrote:
I'm trying to use the node positions calculated by sfdp_layout in a galry visualization, but am running into the problem of conflicting GTK+ symbols (galry uses GTK+ 2). I'm thinking this could be avoided if the layout functions were not part of gt.draw... but any suggestions for a workaround?
You can disable all functions which depend on GTK by commenting out the last bit in (line 987 onwards): https://projects.skewed.de/graph-tool/browser/src/graph_tool/draw/cairo_draw... By looking at the galry website, it seems they also support Qt. An alternative would be to configure it to use Qt instead, which would not cause any symbol collision. Ideally, the best way would be to detect if GTK+2 is already imported, before trying to import GTK+3, but I'm not sure if it is possible. I'll look into this... Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>