Doxygen Graph Generation Issue “Error: dot: can’t open {dot file}”
Running Doxygen (1.7.4, Ubuntu 11.10) over one of the larger PHP applications we use at PANmedia, I ran into this error:
Error: dot: can't open /var/workspace/app/documentation/html/class_a_d_o_d_b___data_dict_a4ad217393b4e364e233cc70336d93ae8_cgraph.dot
Experimentation led to the following solution: switch DOT_CLEAN off, either via the Doxygen GUI (pictured) or directly in the Doxygen configuration file.
DOT_CLEANUP = NO
What does this do?
DOT_CLEANUP
If the DOT_CLEANUP tag is set to YES (the default) Doxygen will remove the intermediate dot files that are used to generate the various graphs.
I recall running into this error over a year ago (last time I used Doxygen), and it wasn’t until I stumbled onto the solution that I remembered solving it in the same way last time.
Documenting the solution here means that next time I use Doxygen after a long time away, I won’t have to repeat the process.


Doxygen Graph Generation Issue “Error: dot: can’t open {dot file}” http://t.co/oNzuv1sj
Can you also mention which version of doxygen you are using? and for which platform (OS+distro/version)?
What you see is a bug that doxygen apparently already removed a certain .dot file while it was still needed later on. Setting DOT_CLEANUP to NO is a workaround, but I would like to make a real fix. So far I have not been able to reproduce this problem myself however…
Hi There,
I’ve updated the post I’m using Doxygen 1.7.4 on Ubuntu 11.10.
Thank you for commenting and providing more information on the issue – if I come across any further information I’ll let you know.
Also, thank you for providing such an excellent tool!
To reproduce this problem: try to doxygen a large project, with DOT enable. For example, I met this problem when doxyging the NS2 project.
Good point – I encountered this problem with a rather large PHP project.
thank you !