GNOME Bugzilla – Bug 661032
out-of-tree builds result in broken gtk-doc documentation
Last modified: 2011-10-21 20:28:27 UTC
When building gtk+ with srcdir!=builddir and using --enable-gtk-doc, the resulting files are broken/not complete. E.g. the index files are incomplete. See the attached "Index of all symbols" as an example. I've also attached the complete build log. There are lots of warnings about missing declarations: DOC Rebuilding template files ./gtk-sections.txt:7: warning: No declaration found for: GtkAboutDialog ./gtk-sections.txt:8: warning: No declaration found for: gtk_about_dialog_new ... It also doesn't seem to find xml files: DOC Building HTML warning: failed to load external entity "../xml/api-index-2.2.xml" warning: failed to load external entity "../xml/api-index-2.4.xml" warning: failed to load external entity "../xml/api-index-2.6.xml" warning: failed to load external entity "../xml/api-index-2.8.xml" warning: failed to load external entity "../xml/api-index-2.10.xml" warning: failed to load external entity "../xml/api-index-2.12.xml" warning: failed to load external entity "../xml/api-index-2.14.xml" warning: failed to load external entity "../xml/api-index-2.16.xml" warning: failed to load external entity "../xml/api-index-2.18.xml" warning: failed to load external entity "../xml/api-index-2.20.xml" warning: failed to load external entity "../xml/api-index-2.22.xml" warning: failed to load external entity "../xml/api-index-2.24.xml" warning: failed to load external entity "../xml/annotation-glossary.xml"
Created attachment 198384 [details] "Index of all symbols" html file
Created attachment 198385 [details] build log
-> gtk-doc ?
(In reply to comment #3) > -> gtk-doc ? Dunno really if this is a bug in gtk-doc or the way gtk+ uses gtkdoc.
Created attachment 199649 [details] [review] proposed patch
The following fix has been pushed: 958fc69 Fix document generation in out of tree builds
Created attachment 199699 [details] [review] Fix document generation in out of tree builds