我正在尝试使用 doxygen 为简单的 php 文件生成调用图。我的设置是:
OS X 10.8.5
Doxygen 1.8.5
graphviz 2.34.0
点在我的路径中,我的 doxygen 配置文件看起来像这样
当我使用我的配置文件运行 doxygen 时,它会生成 html 和 latex 文件夹,但我没有得到任何图形图像。关于我在这里可能做错了什么的任何迹象?
我正在尝试使用 doxygen 为简单的 php 文件生成调用图。我的设置是:
OS X 10.8.5
Doxygen 1.8.5
graphviz 2.34.0
点在我的路径中,我的 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 =
将其更改为点路径位置,就像我对 windows 所做的那样:
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
更改这两项后,您将获得可用于项目的成功图表。