[vtk-developers] OpenVR compile error with new module system

Ben Boeckel ben.boeckel at kitware.com
Wed Jan 9 16:47:15 EST 2019


On Wed, Jan 09, 2019 at 16:11:54 -0500, Aron Helser wrote:
> I found a typo in the OpenVR cmake:
> 
> diff --git a/Rendering/OpenVR/CMakeLists.txt
> b/Rendering/OpenVR/CMakeLists.txt
> index a091afc3ce..810b062005 100644
> --- a/Rendering/OpenVR/CMakeLists.txt
> +++ b/Rendering/OpenVR/CMakeLists.txt
> @@ -49,8 +49,8 @@ foreach (geometry_file IN LISTS geometry_files)
>      SOURCE_OUTPUT source
>      BINARY
>      NUL_TERMINATE)
> -  list(APPEND sources "${source}")
> -  list(APPEND headers "${source}")
> +  list(APPEND geometry_sources "${source}")
> +  list(APPEND geometry_headers "${header}")
>  endforeach ()

Oops, indeed.

> After this fix, I still get a related error:
> 
> ninja: error:
> 'C:/akit/vtk/src/Rendering/OpenVR/vtkAvatarHead.h', needed by
> 'lib/vtk/hierarchy/VTK/vtkRenderingOpenVR-hierarchy.txt', missing and no
> known rule to make it
> 
> I'm not sure about this .txt file or what to do next?

It means that a header named `vtkAvatarHead.h` is expected to be in the
build tree…it isn't. I suspect the `vtkAvatar*` listings in `classes`
should just be removed.

Please feel free to open an MR; I don't have OpenVR here at the moment
to test against.

--Ben


More information about the vtk-developers mailing list