# VTK build fails: cannot open input file '..\\..\\lib\\Release\\vtkWrappingTools-8.90.lib'

**URL:** https://discourse.vtk.org/t/vtk-build-fails-cannot-open-input-file-lib-release-vtkwrappingtools-8-90-lib/2074
**Category:** Support
**Created:** [November 8, 2019, 2:26pm UTC](https://discourse.vtk.org/t/vtk-build-fails-cannot-open-input-file-lib-release-vtkwrappingtools-8-90-lib/2074 "2019-11-08T14:26:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [November 8, 2019, 2:26pm UTC](https://discourse.vtk.org/t/vtk-build-fails-cannot-open-input-file-lib-release-vtkwrappingtools-8-90-lib/2074/1 "2019-11-08T14:26:45Z")

</div>

I’m trying to build 3D Slicer with latest VTK master.

1. I have hard time figuring out what how to translate previously used CMake options (VTK\_Group\_Qt, VTK\_ENABLE\_KITS, VTK\_USE\_PARALLEL, …) to the new build system. Is there a migration guide?

2. Where is the documentation of the new build system? For example, I would need explanation of the unconventional YES/NO/MAYBE/WANT/… flags, groups and modules, how to configure Qt and Python wrapping. The closest I’ve found was this poorly formatted [old announcement page](http://vtk.1045678.n5.nabble.com/ANNOUNCE-New-module-system-landing-td5749556.html).

3. I’ve tried to guess what build options I should use and after a couple of trials I’m stuck on getting this error `15>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingTools-8.90.lib'`

> **Command for configuring the project**
>
> > %CMAKE\_EXE% -G %CMAKE\_GENERATOR\_X64% %SRC\_DIR% -DVTK\_BUILD\_TESTING:STRING=OFF -DVTK\_LEGACY\_REMOVE:BOOL=ON -DVTK\_WRAP\_PYTHON:BOOL=ON -DVTK\_PYTHON\_VERSION:STRING=3 -DVTK\_USE\_TK:BOOL=OFF -DPYTHON\_EXECUTABLE:PATH=D:/D/S4R/python-install/bin/SlicerPython.exe   
> > -DPython3\_INCLUDE\_DIR:PATH=D:/D/S4R/python-install/include -DPython3\_LIBRARY\_DEBUG:FILEPATH=D:/D/S4R/python-install/libs/python36.lib -DPython3\_LIBRARY\_RELEASE:FILEPATH=D:/D/S4R/python-install/libs/python36.lib -DPython3\_RUNTIME\_LIBRARY\_RELEASE:FILEPATH=d:/D/S4R/python-install/bin/python36.dll -DVTK\_MODULE\_ENABLE\_VTK\_SplineDrivenImageFilter:STRING=YES   
> > -DVTK\_GROUP\_ENABLE\_Qt:STRING=YES -DVTK\_MODULE\_ENABLE\_VTK\_GUISupportQt:STRING=YES -DVTK\_MODULE\_ENABLE\_VTK\_GUISupportQtOpenGL:STRING=YES -DVTK\_QT\_VERSION:STRING=5 -DQt5\_DIR:FILEPATH=%QT5\_DIR\_X64%
> 
> > %CTEST\_EXE% -D Experimental -C Release

> **Build log**
>
> ```auto
> 1>------ Build started: Project: vtksys, Configuration: Release x64 ------
> 2>------ Build started: Project: loguru, Configuration: Release x64 ------
> 3>------ Build started: Project: WrappingTools, Configuration: Release x64 ------
> 4>------ Build started: Project: lz4, Configuration: Release x64 ------
> 5>------ Build started: Project: doubleconversion, Configuration: Release x64 ------
> 6>------ Build started: Project: lzma, Configuration: Release x64 ------
> 7>------ Build started: Project: zlib, Configuration: Release x64 ------
> 8>------ Build started: Project: expat, Configuration: Release x64 ------
> 9>------ Build started: Project: jpeg, Configuration: Release x64 ------
> 10>------ Build started: Project: pugixml, Configuration: Release x64 ------
> 11>------ Build started: Project: H5detect, Configuration: Release x64 ------
> 12>------ Build started: Project: H5make_libsettings, Configuration: Release x64 ------
> 4>lz4.vcxproj -> C:\D\VTK-bin\bin\Release\vtklz4-8.90.dll
> 1>vtksys.vcxproj -> C:\D\VTK-bin\bin\Release\vtksys-8.90.dll
> 3>WrappingTools.vcxproj -> C:\D\VTK-bin\bin\Release\vtkWrappingTools-8.90.dll
> 13>------ Build started: Project: glew, Configuration: Release x64 ------
> 14>------ Build started: Project: DICOMParser, Configuration: Release x64 ------
> 15>------ Build started: Project: WrapHierarchy, Configuration: Release x64 ------
> 8>expat.vcxproj -> C:\D\VTK-bin\bin\Release\vtkexpat-8.90.dll
> 16>------ Build started: Project: jsoncpp, Configuration: Release x64 ------
> 5>doubleconversion.vcxproj -> C:\D\VTK-bin\bin\Release\vtkdoubleconversion-8.90.dll
> 17>------ Build started: Project: ogg, Configuration: Release x64 ------
> 2>loguru.vcxproj -> C:\D\VTK-bin\bin\Release\vtkloguru-8.90.dll
> 18>------ Build started: Project: CommonCore, Configuration: Release x64 ------
> 16>jsoncpp.vcxproj -> C:\D\VTK-bin\bin\Release\vtkjsoncpp-8.90.dll
> 19>------ Build started: Project: libproj, Configuration: Release x64 ------
> 17>ogg.vcxproj -> C:\D\VTK-bin\bin\Release\vtkogg-8.90.dll
> 7>zlib.vcxproj -> C:\D\VTK-bin\bin\Release\vtkzlib-8.90.dll
> 20>------ Build started: Project: metaio, Configuration: Release x64 ------
> 21>------ Build started: Project: png, Configuration: Release x64 ------
> 10>pugixml.vcxproj -> C:\D\VTK-bin\bin\Release\vtkpugixml-8.90.dll
> 13>glew.vcxproj -> C:\D\VTK-bin\bin\Release\vtkglew-8.90.dll
> 14>DICOMParser.vcxproj -> C:\D\VTK-bin\bin\Release\vtkDICOMParser-8.90.dll
> 22>------ Build started: Project: freetype, Configuration: Release x64 ------
> 23>------ Build started: Project: libxml2, Configuration: Release x64 ------
> 9>jpeg.vcxproj -> C:\D\VTK-bin\bin\Release\vtkjpeg-8.90.dll
> 24>------ Build started: Project: sqlite, Configuration: Release x64 ------
> 25>------ Build started: Project: tiff, Configuration: Release x64 ------
> 6>lzma.vcxproj -> C:\D\VTK-bin\bin\Release\vtklzma-8.90.dll
> 26>------ Build started: Project: theora, Configuration: Release x64 ------
> 21>png.vcxproj -> C:\D\VTK-bin\bin\Release\vtkpng-8.90.dll
> 22>freetype.vcxproj -> C:\D\VTK-bin\bin\Release\vtkfreetype-8.90.dll
> 20>metaio.vcxproj -> C:\D\VTK-bin\bin\Release\vtkmetaio-8.90.dll
> 11>H5detect.vcxproj -> C:\D\VTK-bin\bin\Release\vtkH5detect.exe
> 24>sqlite.vcxproj -> C:\D\VTK-bin\bin\Release\vtksqlite-8.90.dll
> 23>libxml2.vcxproj -> C:\D\VTK-bin\bin\Release\vtklibxml2-8.90.dll
> 27>------ Build started: Project: verdict, Configuration: Release x64 ------
> 28>------ Build started: Project: WrapPython, Configuration: Release x64 ------
> 29>------ Build started: Project: WrapPythonInit, Configuration: Release x64 ------
> 19>libproj.vcxproj -> C:\D\VTK-bin\bin\Release\vtklibproj-8.90.dll
> 18>CommonCore.vcxproj -> C:\D\VTK-bin\bin\Release\vtkCommonCore-8.90.dll
> 26>theora.vcxproj -> C:\D\VTK-bin\bin\Release\vtktheora-8.90.dll
> 30>------ Build started: Project: WrapJava, Configuration: Release x64 ------
> 31>------ Build started: Project: ParseJava, Configuration: Release x64 ------
> 12>H5make_libsettings.vcxproj -> C:\D\VTK-bin\bin\Release\vtkH5make_libsettings.exe
> 32>------ Build started: Project: CommonMath, Configuration: Release x64 ------
> 33>------ Build started: Project: CommonSystem, Configuration: Release x64 ------
> 34>------ Build started: Project: gl2ps, Configuration: Release x64 ------
> 35>------ Build started: Project: libharu, Configuration: Release x64 ------
> 25>tiff.vcxproj -> C:\D\VTK-bin\bin\Release\vtktiff-8.90.dll
> 27>verdict.vcxproj -> C:\D\VTK-bin\bin\Release\vtkverdict-8.90.dll
> 36>------ Build started: Project: vtkhdf5_src, Configuration: Release x64 ------
> 29>WrapPythonInit.vcxproj -> C:\D\VTK-bin\bin\Release\vtkWrapPythonInit-8.90.exe
> 15>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingTools-8.90.lib'
> 15>Done building project "WrapHierarchy.vcxproj" -- FAILED.
> 37>------ Build started: Project: WrappingPythonCore, Configuration: Release x64 ------
> 28>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingTools-8.90.lib'
> 28>Done building project "WrapPython.vcxproj" -- FAILED.
> 38>------ Build started: Project: gen_hdf5, Configuration: Release x64 ------
> 39>------ Build started: Project: vtkTestOpenGLVersion, Configuration: Release x64 ------
> 40>------ Build started: Project: vtkCommonCore-hierarchy, Configuration: Release x64 ------
> 41>------ Build started: Project: vtk_python_copy, Configuration: Release x64 ------
> 34>gl2ps.vcxproj -> C:\D\VTK-bin\bin\Release\vtkgl2ps-8.90.dll
> 32>CommonMath.vcxproj -> C:\D\VTK-bin\bin\Release\vtkCommonMath-8.90.dll
> 35>libharu.vcxproj -> C:\D\VTK-bin\bin\Release\vtklibharu-8.90.dll
> 30>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingTools-8.90.lib'
> 30>Done building project "WrapJava.vcxproj" -- FAILED.
> 33>CommonSystem.vcxproj -> C:\D\VTK-bin\bin\Release\vtkCommonSystem-8.90.dll
> 39>vtkTestOpenGLVersion.vcxproj -> C:\D\VTK-bin\bin\Release\vtkTestOpenGLVersion-8.90.exe
> 31>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingTools-8.90.lib'
> 31>Done building project "ParseJava.vcxproj" -- FAILED.
> 37>WrappingPythonCore.vcxproj -> C:\D\VTK-bin\bin\Release\vtkWrappingPythonCore-8.90.dll
> 42>------ Build started: Project: CommonMisc, Configuration: Release x64 ------
> 43>------ Build started: Project: CommonTransforms, Configuration: Release x64 ------
> 40>Generating the wrap hierarchy for VTK::CommonCore
> 40>'..\..\bin\Release\vtkWrapHierarchy-8.90.exe' is not recognized as an internal or external command,
> 40>operable program or batch file.
> 40>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 9009.
> 40>Done building project "vtkCommonCore-hierarchy.vcxproj" -- FAILED.
> 44>------ Build started: Project: vtkCommonMath-hierarchy, Configuration: Release x64 ------
> 45>------ Build started: Project: vtkCommonSystem-hierarchy, Configuration: Release x64 ------
> 46>------ Build started: Project: vtkParallelCore-hierarchy, Configuration: Release x64 ------
> 47>------ Build started: Project: vtkCommonCorePython, Configuration: Release x64 ------
> 42>CommonMisc.vcxproj -> C:\D\VTK-bin\bin\Release\vtkCommonMisc-8.90.dll
> 36>H5Tinit.c
> 48>------ Build started: Project: PythonInterpreter, Configuration: Release x64 ------
> 43>CommonTransforms.vcxproj -> C:\D\VTK-bin\bin\Release\vtkCommonTransforms-8.90.dll
> 49>------ Build started: Project: CommonDataModel, Configuration: Release x64 ------
> 46>Generating the wrap hierarchy for VTK::ParallelCore
> 45>Generating the wrap hierarchy for VTK::CommonSystem
> 44>Generating the wrap hierarchy for VTK::CommonMath
> 44>'..\..\bin\Release\vtkWrapHierarchy-8.90.exe' is not recognized as an internal or external command,
> 44>operable program or batch file.
> 45>'..\..\bin\Release\vtkWrapHierarchy-8.90.exe' is not recognized as an internal or external command,
> 45>operable program or batch file.
> 
> ```

---

<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: [November 8, 2019, 2:59pm UTC](https://discourse.vtk.org/t/vtk-build-fails-cannot-open-input-file-lib-release-vtkwrappingtools-8-90-lib/2074/2 "2019-11-08T14:59:57Z")

</div>

Documentation for the settings can be found in [this MR](https://gitlab.kitware.com/vtk/vtk/merge_requests/6121). It will be in the Doxygen docs once it is merged. Feel free to review what’s there. Eh, this is actually lower level than your looking for. The ParaView docs linked below are more in line what you’re looking for.

Most of the flags like `VTK_ENABLE_KITS` are the same. It’s just the module and group ones that have changed. I need to write [this page](https://gitlab.kitware.com/paraview/paraview/blob/master/Documentation/dev/build.md) for VTK.

As for that linker error, I think WrappingTools is not exporting symbols. @dgobbi

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [November 8, 2019, 3:59pm UTC](https://discourse.vtk.org/t/vtk-build-fails-cannot-open-input-file-lib-release-vtkwrappingtools-8-90-lib/2074/3 "2019-11-08T15:59:07Z")

</div>

That link error was due to a commit I merged yesterday. I’ve already merged a fix.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [November 8, 2019, 4:09pm UTC](https://discourse.vtk.org/t/vtk-build-fails-cannot-open-input-file-lib-release-vtkwrappingtools-8-90-lib/2074/4 "2019-11-08T16:09:13Z")

</div>

Thanks for the quick responses.

@ben.boeckel I’ll read these documentations. The low level module system description is interesting and Paraview build system description is a good example, but good user-level build options documentation for VTK and migration guide from VTK-8.2 would be needed.

@dgobbi I update to latest master and retry.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [November 8, 2019, 4:31pm UTC](https://discourse.vtk.org/t/vtk-build-fails-cannot-open-input-file-lib-release-vtkwrappingtools-8-90-lib/2074/5 "2019-11-08T16:31:09Z")

</div>

The build issue has been fixed by switching to latest VTK master.
