-->

Activating cairo-dependent features of graph_tool

2019-05-26 23:26发布

问题:

I have been using the graph-tool library for a while now, thus far I hadn't really been using most of its drawing features. Today when trying to use graph_tool.draw.graph_draw I realised that I had configured graph-tool initially without cairo,

./configure --disable-cairo

and this is exactly the graphics library that graph_draw uses. If I install cairo now, is there a way to activate the features of graph_tool that rely on cairo without having to remove and reinstall the whole graph_tool module? This would spare a few hours of re-installation. (the make process takes about 3 hours on my machine).

回答1:

You have to recompile the library, since the cairo-based drawing is implemented in C++.