# About vtkbool remote compile for python

**URL:** https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662
**Category:** Support
**Created:** [January 18, 2022, 4:16am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662 "2022-01-18T04:16:21Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![timeanddoctor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/timeanddoctor/32/2847_2.png) [@timeanddoctor](https://discourse.vtk.org/u/timeanddoctor)
#### Post date: [January 18, 2022, 4:16am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662/1 "2022-01-18T04:16:21Z")

</div>

I tend to compile the vtkbool from [GitHub - zippy84/vtkbool: A new boolean operations filter for VTK](https://github.com/zippy84/vtkbool)  
And I add the remote

`D:\vtk\VTK-8.2.0\Remote`

such as :

```auto
#
# A new boolean operations filter for VTK by Ronald Romer
#

vtk_fetch_module(Boolean
  "A new boolean operation filter by Ronald Romer"
  GIT_REPOSITORY https://github.com/lorensen/vtkbool
  # 12 September - fix warnings
  GIT_TAG 33ba44c57ad2cca726389102a2eea1a6259c47df
  )

```

then run the cmake there is no remote opration for activate the vtkbool.

 ![image](https://discourse.vtk.org/uploads/default/original/2X/d/db4e0c7bc3fe112f6e8c95a541acb6bae8af8972.png)

I was wrong?  
@ [Ron84](https://discourse.vtk.org/u/Ron84)  
@ [lassoan](https://discourse.vtk.org/u/lassoan)  
Thanks

---

<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: [January 18, 2022, 5:33am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662/2 "2022-01-18T05:33:33Z")

</div>

We build and Python-wrap a [modified version of vtkbool](https://github.com/PerkLab/SlicerSandbox/tree/master/CombineModels/Logic) VTK9 version. If you want to use vtkbool in Python without building anything then you can use it in 3D Slicer’s Python environment. Maybe you can also copy the Python DLLs into other Python environments and use them there (currently Python 3.6, in a few weeks it will be Python 3.9).

@jcfr is working on reworking the VTK remote infrastructure to allow building additional libraries, such as VMTK, vtkbool, CIP, etc., so hopefully in a year or so vtkbool will be built using github CI and will be available via pip install from PyPI.

---

<div class="post-metadata">

### Author: ![timeanddoctor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/timeanddoctor/32/2847_2.png) [@timeanddoctor](https://discourse.vtk.org/u/timeanddoctor)
#### Post date: [January 18, 2022, 10:23am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662/3 "2022-01-18T10:23:33Z")

</div>

After many attempts，I get a vtkbool.dll. But I still cannot import vtkboolPython for not compiled. Can I use the vtkbool.dll with python?

 ![image](https://discourse.vtk.org/uploads/default/original/2X/1/1abd738eaa66c47060dd3168c3469dfc076b1d07.png)

What I did just compile the vtk8.2 with python firstly and then compiled the vtkbool secondly. This seems was a wrong step?

---

<div class="post-metadata">

### Author: ![timeanddoctor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/timeanddoctor/32/2847_2.png) [@timeanddoctor](https://discourse.vtk.org/u/timeanddoctor)
#### Post date: [January 18, 2022, 11:13am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662/4 "2022-01-18T11:13:46Z")

</div>

[vtkbool.exp](https://discourse.vtk.org/uploads/short-url/qwwalNKavR9L8D1eVoVzInqIsPW.exp) (288.3 KB)  
[vtkbool.lib](https://discourse.vtk.org/uploads/short-url/7Ywh606UzcVG1U2PHKNu1p0T9AW.lib) (476.9 KB)  
[vtkbool.dll](https://discourse.vtk.org/uploads/short-url/zPmHsCLmn4BnVd8xXToaN7Sdqcp.dll) (415.5 KB)

---

<div class="post-metadata">

### Author: ![timeanddoctor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/timeanddoctor/32/2847_2.png) [@timeanddoctor](https://discourse.vtk.org/u/timeanddoctor)
#### Post date: [January 18, 2022, 11:16am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662/5 "2022-01-18T11:16:23Z")

</div>

such information is confused

```auto
The Python module will be generated automatically, if three conditions are met:

vtkbool is configured as a library
Python 2 or 3 is installed with header files
VTK itself is wrapped to Python
After a successful compilation, the module can be used as follows:

```

---

<div class="post-metadata">

### Author: ![timeanddoctor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/timeanddoctor/32/2847_2.png) [@timeanddoctor](https://discourse.vtk.org/u/timeanddoctor)
#### Post date: [January 18, 2022, 11:24am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662/6 "2022-01-18T11:24:19Z")

</div>

![image](https://discourse.vtk.org/uploads/default/original/2X/e/e4c2f54ccc19be02361a7e8af5047478544e9236.png)  
I also tend to use the slicervtkbool,but not success

---

<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: [January 19, 2022, 12:33am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662/7 "2022-01-19T00:33:40Z")

</div>

If you use Slicer’s Combine Models module’s Python wrapping then you can find vtkbool filters in `vtkSlicerCombineModelsModuleLogic.dll` and `vtkSlicerCombineModelsModuleLogicPython.pyd`.
