# vtk build issue in windows os

**URL:** https://discourse.vtk.org/t/vtk-build-issue-in-windows-os/1106
**Category:** Support
**Created:** [June 9, 2019, 9:27pm UTC](https://discourse.vtk.org/t/vtk-build-issue-in-windows-os/1106 "2019-06-09T21:27:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![svabhishek29](https://discourse.vtk.org/user_avatar/discourse.vtk.org/svabhishek29/32/479_2.png) [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)
#### Post date: [June 9, 2019, 9:27pm UTC](https://discourse.vtk.org/t/vtk-build-issue-in-windows-os/1106/1 "2019-06-09T21:27:04Z")

</div>

Hi,

i was successfully able to build vtk with python wrappings on mac OS using the suggestion given by Dan Lipsa in [using vtk 8.2.0 with python wrappings with anaconda](https://discourse.vtk.org/t/using-vtk-8-2-0-with-python-wrappings-with-anaconda/1060/5), however when i try to follow the same procedure in windows os i am getting the error

 ![error](https://discourse.vtk.org/uploads/default/original/1X/ba7486aee5a4c34f40ff5960a91d8ae11c3fbf1c.png)

basically there is no WrappingPythonCore -8.90.lib in the path

i have set the python path like in the image below and have selected the wrap python option,

 ![Capture](https://discourse.vtk.org/uploads/default/original/1X/deec4cb029b5812cf59852d63e9de0e9428539c5.png)

even if is set the VTK\_WrappingPythonCore to yes i still get the same error

Can anyone help me with building vtk for windows and anaconda please?

Thanks

---

<div class="post-metadata">

### Author: ![svabhishek29](https://discourse.vtk.org/user_avatar/discourse.vtk.org/svabhishek29/32/479_2.png) [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)
#### Post date: [June 9, 2019, 10:21pm UTC](https://discourse.vtk.org/t/vtk-build-issue-in-windows-os/1106/2 "2019-06-09T22:21:54Z")

</div>

hi, sorry for bothering, i was able to fix the issue by setting the LIBPATH environment variable to the directory containing the python libpath

thanks

---

<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: [June 10, 2019, 1:34pm UTC](https://discourse.vtk.org/t/vtk-build-issue-in-windows-os/1106/3 "2019-06-10T13:34:57Z")

</div>

CMake should be getting the path to the `python36.lib` file and passing it (that first error causes the second error since `vtkWrappingPythonCore` doesn’t get made). Does `python36.lib` show up in `CMakeCache.txt` at all?

---

<div class="post-metadata">

### Author: ![svabhishek29](https://discourse.vtk.org/user_avatar/discourse.vtk.org/svabhishek29/32/479_2.png) [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)
#### Post date: [June 13, 2019, 10:58pm UTC](https://discourse.vtk.org/t/vtk-build-issue-in-windows-os/1106/4 "2019-06-13T22:58:19Z")

</div>

hi,  
yes it does, but i think the permission issue was not letting the file to be read during build

---

<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: [June 14, 2019, 12:16pm UTC](https://discourse.vtk.org/t/vtk-build-issue-in-windows-os/1106/5 "2019-06-14T12:16:31Z")

</div>

`LIBPATH` wouldn’t fix permission errors. I think this is more likely some `#pragma` asking to link `python36.lib` without extra information. Not sure why what CMake is generating with those cache isn’t working here without seeing the link link for `WrappingPythonCore`.
