# VTK generate document failed

**URL:** https://discourse.vtk.org/t/vtk-generate-document-failed/8898
**Category:** Support
**Created:** [July 7, 2022, 10:17am UTC](https://discourse.vtk.org/t/vtk-generate-document-failed/8898 "2022-07-07T10:17:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zhang-qiang-github](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhang-qiang-github/32/2519_2.png) [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)
#### Post date: [July 7, 2022, 10:17am UTC](https://discourse.vtk.org/t/vtk-generate-document-failed/8898/1 "2022-07-07T10:17:18Z")

</div>

I want to generate document for VTK, and I turn `VTK_BUILD_DOCUMENTATION` `ON`.

The building is OK, but bug is reported when I want to install it:

```auto
107>CMake Error at Utilities/Doxygen/cmake_install.cmake:70 (file):
107> file INSTALL cannot find "D:/Program
107> Files/VTK/bin/Utilities/Doxygen/doc/html": No such file or directory.
107>Call Stack (most recent call first):
107> cmake_install.cmake:1113 (include)
107>
107>

```

`D:/Program Files/VTK/bin` is the build directory.

How to fix this bug? Any suggestion is appreciated~~~

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [July 7, 2022, 2:35pm UTC](https://discourse.vtk.org/t/vtk-generate-document-failed/8898/2 "2022-07-07T14:35:13Z")

</div>

Documentation is not built by default. You need to explicitly build the `DoxygenDoc` target manually.
