# After building vtk8.2.0 and building vtkmaster, there are different errors after make install

**URL:** https://discourse.vtk.org/t/after-building-vtk8-2-0-and-building-vtkmaster-there-are-different-errors-after-make-install/525
**Category:** Support
**Created:** [March 19, 2019, 7:57am UTC](https://discourse.vtk.org/t/after-building-vtk8-2-0-and-building-vtkmaster-there-are-different-errors-after-make-install/525 "2019-03-19T07:57:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![QIANKE](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/q/f19dbf/32.png) [@QIANKE](https://discourse.vtk.org/u/QIANKE)
#### Post date: [March 19, 2019, 7:57am UTC](https://discourse.vtk.org/t/after-building-vtk8-2-0-and-building-vtkmaster-there-are-different-errors-after-make-install/525/1 "2019-03-19T07:57:51Z")

</div>

Configuration: Mac mini 2018 (macOS Mojava)  
Processor ：3.6GHz intel Core i3  
Memory ：8GB 2667 MHz DDR4  
Graphics card：intel UHD Graphics 630 1536 MB

This is the error that caused the startup app to build VTK8.2.0, but I see vtkCommonCorePython in vtkmodules.

 ![2](https://discourse.vtk.org/uploads/default/original/1X/204d77c835eecd7cb344ce064ce0aa87e0fee132.png) `

This is the error that caused the startup app to build VTKmaster, but I see vtkCommonCorePython in vtkmodules.

 ![9](https://discourse.vtk.org/uploads/default/original/1X/45ba6a6594dcc86399da5e2ba369d12405142b68.png)

I found that after I built the VTK, typing import vtk in python3 would report this error:

 ![25](https://discourse.vtk.org/uploads/default/original/1X/5d383a09bd049cc07036fd55c468adf74dce57f3.png)

---

<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: [March 19, 2019, 2:39pm UTC](https://discourse.vtk.org/t/after-building-vtk8-2-0-and-building-vtkmaster-there-are-different-errors-after-make-install/525/2 "2019-03-19T14:39:06Z")

</div>

The last error is because Qt expects to be used with an rpath, but nothing adds the `LC_RPATH` entry to the library. I don’t know what the best solution here is, but I’d like to see a fix to it from CMake. The middle error looks like a Python version mismatch:

`…/BioMind.app/Contents/Resources/lib/python36.zip/…/Versions/3.7/Python`

---

<div class="post-metadata">

### Author: ![QIANKE](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/q/f19dbf/32.png) [@QIANKE](https://discourse.vtk.org/u/QIANKE)
#### Post date: [March 20, 2019, 1:18am UTC](https://discourse.vtk.org/t/after-building-vtk8-2-0-and-building-vtkmaster-there-are-different-errors-after-make-install/525/3 "2019-03-20T01:18:55Z")

</div>

The python version does not match, how do I need to solve it? I compiled vtk with python3.6, but after compiling, vtkmodules is in python2.7, I don’t know how to solve this python version mismatch problem.

---

<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: [March 20, 2019, 5:09pm UTC](https://discourse.vtk.org/t/after-building-vtk8-2-0-and-building-vtkmaster-there-are-different-errors-after-make-install/525/4 "2019-03-20T17:09:34Z")

</div>

Hmm. Looking at the `Python*` variables in `CMakeCache.txt` can probably show what is being found incorrectly. Make sure that `VTK_PYTHON_VERSION=3` too.

---

<div class="post-metadata">

### Author: ![QIANKE](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/q/f19dbf/32.png) [@QIANKE](https://discourse.vtk.org/u/QIANKE)
#### Post date: [March 20, 2019, 5:11pm UTC](https://discourse.vtk.org/t/after-building-vtk8-2-0-and-building-vtkmaster-there-are-different-errors-after-make-install/525/5 "2019-03-20T17:11:43Z")

</div>

I am sure VTK\_PYTHON\_VERSION=3

---

<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: [April 2, 2019, 12:46pm UTC](https://discourse.vtk.org/t/after-building-vtk8-2-0-and-building-vtkmaster-there-are-different-errors-after-make-install/525/6 "2019-04-02T12:46:09Z")

</div>

What other `Python*` variables are set in `CMakeCache.txt`?
