我正在尝试使用 GraphViz 工具来生成一些依赖关系图,但我在导出图像时获得点的运气为零。SVG 工作正常,但其他任何东西(jpeg、gif、png)都会导致 dot 崩溃。
这是我的图表:
digraph test {
main -> parse -> execute;
main -> init;
main -> cleanup;
execute -> make_string;
execute -> printf
init -> make_string;
main -> printf;
execute -> compare;
}
这是有效的命令行(对于 svg):
dot test.dot -Tsvg -o test.svg
以下是导致崩溃的命令行:
dot test.dot -Tjpg -o test.jpg
dot test.dot -Tjpeg -o test.jpeg
dot test.dot -Tpng -o test.png
我错过了一些明显的东西吗?
谢谢,
(注意这是在 WinXP 32 位上使用 2.24 graphviz 包)。