如何使用valadoc?

时间:2013-10-06 16:34:09

标签: documentation-generation vala

我目前正在Vala写一个图书馆。

我已经谈到了我希望从我的来源生成一些文档。

valadoc似乎是正确的工具,但没有太多关于如何使用它的信息,手册页很短。

我尝试使用valadoc -o doc src/*.{vala,vapi}运行它,这给了我这些错误消息:

unixodbc.vala:21.7-21.9: error: The namespace name `Gee' could not be found
unixodbc.vala:40.9-40.27: error: The type name `Map' could not be found
unixodbc.vala:42.30-42.48: error: The type name `Map' could not be found
unixodbc.vala:40.9-40.27: error: The type name `Map' could not be found
unixodbc.vala:40.9-40.27: error: The type name `Map' could not be found
unixodbc.vala:40.9-40.27: error: The type name `Map' could not be found
unixodbc.vala:80.63-80.81: error: The type name `Map' could not be found
unixodbc.vala:98.9-98.25: error: The type name `ArrayList' could not be found
unixodbc.vala:99.3-99.19: error: The type name `ArrayList' could not be found
unixodbc.vala:110.4-110.22: error: The type name `Map' could not be found
unixodbc.vala:178.9-178.24: error: The type name `ArrayList' could not be found
unixodbc.vala:180.17-180.32: error: The type name `ArrayList' could not be found
unixodbc.vala:187.10-187.25: error: The type name `ArrayList' could not be found
Failed: 13 error(s), 0 warning(s)

看起来valadoc的设计也适用于所有依赖项?

如何让我的图书馆工作?

1 个答案:

答案 0 :(得分:5)

您需要传递--pkg gee-0.10(或您正在使用的任何版本),就像valac一样。有关选项及其说明的列表,请参阅valadoc --help和手册页。您需要的许多选项与传递给valac的选项相同。