Unable to create Graphviz graph inside Doxygen html

I installed Graphviz, Doxygen on Windows 7. Now I have cygwin64 installed, but I donโ€™t care, I just want doxyfiles to have graphs. I use CMD or cygwin tooltip, it does not work on both. everything is installed under Windows7

No matter what I do, I can not get Doxygen to generate documents with graphs embedded in them.

I did this ... How to use doxygen to create UML class diagrams from a C ++ source

No luck, it just doesn't work, so I set DOT_CLEANUP = NO. Not lucky yet.

I run inside c: \ labs. I am doing C: \ Doxygen Doxfile

I get...

finalizing index lists... Running dot... Generating dot graphs using 5 parallel threads... Running dot for graph 1/3 Running dot for graph 2/3 Running dot for graph 3/3 Error: dot: can't open /cygdrive/c/labs/html/classA__coll__graph.dot error: Problems running dot: exit code=2, command='dot', arguments='"/cygdrive/c/labs/html/classA__coll__graph.dot" -Tpng -o "/cygdrive/c/labs/html/classA__coll__graph.png"' Error: dot: can't open /cygdrive/c/labs/latex/classA__coll__graph.dot error: Problems running dot: exit code=2, command='dot', arguments='"/cygdrive/c/labs/latex/classA__coll__graph.dot" -Tpdf -o "/cygdrive/c/labs/latex/classA__coll__graph.pdf"' Error: dot: can't open /cygdrive/c/labs/html/graph_legend.dot error: Problems running dot: exit code=2, command='dot', arguments='"/cygdrive/c/labs/html/graph_legend.dot" -Tpng -o "/cygdrive/c/labs/html/graph_legend.png"' Patching output file 1/2 error: problems opening map file /cygdrive/c/labs/html/classA__coll__graph.map for inclusion in the docs! 

If I run under cygwin, I get the same thing. I also tried using Doxywizard.

Why can't I generate charts?

Thanks for the help,

+5
source share
1 answer

As @Albert suggested, this is caused by an attempt to mix Cygwin doxygen with a Windows dot (graphviz). I ran into the same problem that brought me here. I ran which doxygen and which dot to determine that my doxygen comes from Cygwin, but my point came from installing a Windows graphical object.

The solution for me was to run Cygwin setup and add / install graphviz. After that, the errors disappeared.

0
source

Source: https://habr.com/ru/post/1214101/


All Articles