1

我目前正在 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也被设计为在所有依赖项上运行?

我怎样才能让它为我的图书馆工作?

4

1 回答 1

5

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

于 2013-10-06T17:04:31.963 回答