Activating cairo-dependent features of graph_tool

2019-05-26 22:55发布

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条回答
三岁会撩人
2楼-- · 2019-05-26 23:29

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

查看更多
登录 后发表回答