Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

doxygen and graphviz doesn't generate map files

I am trying Graphviz and doxygen on a rather large C++ library to generate UML. It generates the .dot files but then says it can't open the .map files.

I am running doxygen 1.8.3 and 2.30.1 installed via the msi on Windows 7 64bit. I also manually set the path to the Graphviz bin folder.

Errors look like: error: problems opening map file /inherit_graph_11.map for inclusion in the docs!

like image 469
user2632182 Avatar asked Jul 30 '13 00:07

user2632182


2 Answers

I know you found your solution, but for the sake of people like myself coming from Google, I'd like to make this as easy as possible for everyone.

If you're on Windows, and have installed both Doxygen and Graphviz, or if you're on Linux and have used apt-get install doxygen graphviz, the next step is to make sure that you're able to run the dot command from the command prompt/terminal. You can do this by making sure that the Graphviz/bin folder is appended to your PATH file.

Refer to this answer (removed by SO so here is a archive.org link) if you need more details on how to properly set up Doxygen/Graphviz for visualizations

like image 190
TankorSmash Avatar answered Oct 02 '22 22:10

TankorSmash


Because I had simmilar problems and needed a lot of time to fix it, I will summarize the important facts for getting it running:

  • Install doxygen AND graphviz
  • Add the bin directory of graphviz to your windows path variable (e.g. C:\Program Files (x86)\Graphviz2.38\bin)
  • In the Settings.ini located in the graphviz bin directory, also set the path (e.g. binPath=C:\Program Files (x86)\Graphviz2.38\bin)
  • In doxygen, under the tab "Expert" -> Dot check "HAVE_DOT"
  • In doxygen, under the tab "Expert" -> Dot set "DOT_PATH" to your graphviz bin directory like above

These steps did it to make it working for me.

like image 24
der_chirurg Avatar answered Oct 02 '22 22:10

der_chirurg