我正在尝试使用GraphViz工具生成一些依赖图,但我没有运气获得点来导出图像。 SVG工作正常,但其他任何东西(jpeg,gif,png)都会导致点崩溃。
这是我的图表:
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
我错过了一些明显的东西吗?
谢谢,
(注意这是使用2.24 graphviz包在WinXP 32位上)。
答案 0 :(得分:1)
没什么明显的 - 那些对我来说“只是工作”,但是你可能会错过一些图像格式的辅助库吗?
答案 1 :(得分:1)
在这里正常工作(Debian测试,graphviz 2.20.2-3 + b4):
$ dot test.dot -Tjpeg -o test.jpeg
$ file test.jpeg
test.jpeg: JPEG image data, JFIF standard 1.01, comment: "CREATOR: gd-jpeg v1.0 (using IJ"
$ dot test.dot -Tpng -o test.png
$ file test.png
test.png: PNG image, 480 x 347, 8-bit/color RGBA, non-interlace
你的系统是什么?
答案 2 :(得分:1)
好的误报,看起来安装程序由于某种原因错过了一些文件。执行卸载/重新安装修复它。
感谢您的理智检查!