# VtkLibrary : Porting to 9.1 from 5.8

**URL:** <https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386>\
**Category:** Development\
**Created:** [December 10, 2021, 2:00pm UTC](https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386 "2021-12-10T14:00:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taimour](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Post date:** [December 10, 2021, 2:00pm UTC](https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386/1 "2021-12-10T14:00:28Z")

</div>

I am working on a project which was previously working with vtk5.8 . I have replaced header files and libraries in my project. Build is successful but when I try to switch to 3D mode I get following error. Please guide me about this error.

ERROR: In C:\VTK\VTK-9.1.0.rc2\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 668  
vtkCompositeDataPipeline (19F77C08): Input port 0 of algorithm vtkDataSetMapper(04786590) has 0 connections but is not optional.

Any help will be appreciated!!

---

<div class="post-metadata">

**Author:** ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Post date:** [December 12, 2021, 5:54am UTC](https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386/2 "2021-12-12T05:54:31Z")

</div>

Some of the examples using `vtkDataSetMapper` may be of use to you, as a start, look [here](https://kitware.github.io/vtk-examples/site/Cxx/Coverage/CxxVTKClassesUsed/).

---

<div class="post-metadata">

**Author:** ![Taimour](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Post date:** [December 13, 2021, 6:18am UTC](https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386/3 "2021-12-13T06:18:20Z")

</div>

I also wanted to ask that was vtkmdiview.cpp part of vtk libraries before?

---

<div class="post-metadata">

**Author:** ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Post date:** [December 13, 2021, 7:40am UTC](https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386/4 "2021-12-13T07:40:37Z")

</div>

Never used it, but I think it has been around for a long time \> 9 years. I would doubt if it has been maintained since then.

---

<div class="post-metadata">

**Author:** ![Taimour](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Post date:** [December 13, 2021, 7:59am UTC](https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386/5 "2021-12-13T07:59:45Z")

</div>

thanks for the help!
