使用Doxygen为php文件生成调用图



我正在尝试使用doxygen为一个简单的php文件生成一个调用图。我的设置是:

OS X 10.8.5
Doxygen 1.8.5
graphviz 2.34.0 

dot在我的路径中,我的doxygen配置文件看起来像这个

当我用配置文件运行doxygen时,它会生成html和latex文件夹,但我不会得到任何图形图像。有没有迹象表明我在这里可能做错了什么?

我已经检查了您提供的文件,因为有两个变量可以提供成功运行DOT所需的信息。需要的第一个更改是

# The tag DOT_PATH can be used to specify the path where the dot tool can be 
# found. If left blank, it is assumed the dot tool can be found in the path.
DOT_PATH               = 

将其更改为点路径位置,就像我对窗口所做的那样:

DOT_PATH               = "C:/Program Files/Graphviz2.30/bin"

这将有助于Doxygen为图形运行DOT,第二个选项是

# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is 
# allowed to run in parallel. When set to 0 (the default) doxygen will 
# base this on the number of processors available in the system. You can set it 
# explicitly to a value larger than 0 to get control over the balance 
# between CPU load and processing speed.
DOT_NUM_THREADS        = 0

将0更改为任何数字都可以生成图形。0表示没有用于创建图形的线程。我已将其更改为:

DOT_NUM_THREADS        = 25

在改变这两件事之后,你将有成功的图形可用于你的项目。

最新更新