# use vtk8.2.0 for the project which was developed based on VTK5.8 before

**URL:** https://discourse.vtk.org/t/use-vtk8-2-0-for-the-project-which-was-developed-based-on-vtk5-8-before/1983
**Category:** Support
**Created:** [October 26, 2019, 9:17am UTC](https://discourse.vtk.org/t/use-vtk8-2-0-for-the-project-which-was-developed-based-on-vtk5-8-before/1983 "2019-10-26T09:17:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Yixun\_Liu](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yixun_liu/32/1011_2.png) [@Yixun\_Liu](https://discourse.vtk.org/u/Yixun_Liu)
#### Post date: [October 26, 2019, 9:17am UTC](https://discourse.vtk.org/t/use-vtk8-2-0-for-the-project-which-was-developed-based-on-vtk5-8-before/1983/1 "2019-10-26T09:17:17Z")

</div>

Hi All,  
I used VTK5.8 in my project before and want to replace it with VTK8.2. How to build VTK8.2 to make it back compatible, so I do not need to make many codes change.

Thanks a lot.

YL

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [October 27, 2019, 2:45pm UTC](https://discourse.vtk.org/t/use-vtk8-2-0-for-the-project-which-was-developed-based-on-vtk5-8-before/1983/2 "2019-10-27T14:45:44Z")

</div>

Maybe the easiest would be to port your code incrementally, to each version of VTK from 5.8. This way can see and fix deprecated API. Otherwise when jumping over that many versions you’ll just see missing API.

git tag will show you all versions.

You can upgrade your code in the following loop:

while next version is less than 8.2

- git checkout next version

- fix all deprecation for that version and eventually test your code.

Dan

---

<div class="post-metadata">

### Author: ![Yixun\_Liu](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yixun_liu/32/1011_2.png) [@Yixun\_Liu](https://discourse.vtk.org/u/Yixun_Liu)
#### Post date: [October 29, 2019, 1:19am UTC](https://discourse.vtk.org/t/use-vtk8-2-0-for-the-project-which-was-developed-based-on-vtk5-8-before/1983/3 "2019-10-29T01:19:33Z")

</div>

Thanks a lot, Dan.
