Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doxygen 1.8.7 / GraphViz 2.38 compatabilty issue

I recently upgraded from Doxygen 1.8.4 and GraphViz 2.36 where I had no problems generating graphs to Doxygen 1.8.7 and GraphViz 2.38 and cannot now get graphs.

During the build I get large numbers of errors of the form

error: Problems running dot: exit code=-1, command='dot' arguements="myfile.dot" -Tpng -O "myfile.png"

I have downgraded to GraphViz 2.36 and the problem has disappeared. NOTE - I have tried to run 2.36 with DOT_PATH empty and GraphViz added to path but this doesn't work either.

Only working solution at present is 2.36 with DOT_PATH defined.

Can you please check the compatibily issue and advise.

like image 739
LarryB Avatar asked May 01 '14 10:05

LarryB


2 Answers

Another solution, that does not require to edit your $path is to set the DOT_PATH variable at the configuration file, to wherever you install the dot library (default path is Program Files (x86)/Graphviz2.38/bin). You can do this with 2 ways:

  • With the Doxywizard tool.
    • At the expert tab, go to the dot at the topics and set the DOT_PATH (see the screenshot of doxywizard)
  • Editing manually the Doxygene config file, so your doxygene configFile must have a line like this:

    DOT_PATH = "../Program Files (x86)/Graphviz2.38/bin"

like image 88

I had exactly the same problem using Doxygen 1.8.6 and dot 2.38 (20140413.2041). Only a slight version difference compared to OP but the same error messages - and no graphs. dot was (and is still) set in the PATH variable but this was not enough.

It was solved though after I explicitly set DOT_PATH to the appropriate directory which is "C:/Program Files (x86)/Graphviz2.38/bin" in my case.

like image 28
TobiMcNamobi Avatar answered Sep 22 '22 12:09

TobiMcNamobi