# VTK 9.0.3

**URL:** https://discourse.vtk.org/t/vtk-9-0-3/6128
**Category:** Announcements
**Tags:** release-process
**Created:** [July 3, 2021, 2:18am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128 "2021-07-03T02:18:30Z")
**Posts on this page:** 14
**Page:** 1

<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: [July 3, 2021, 2:18am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/1 "2021-07-03T02:18:30Z")

</div>

VTK 9.0.3 is now released. This fixes the `VTK_DEBUG_LEAKS` flag in the official wheels as compared to [9.0.2](https://discourse.vtk.org/t/vtk-9-0-2/6107).

---

<div class="post-metadata">

### Author: ![reichtiger](https://discourse.vtk.org/user_avatar/discourse.vtk.org/reichtiger/32/3671_2.png) [@reichtiger](https://discourse.vtk.org/u/reichtiger)
#### Post date: [July 14, 2021, 8:11am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/2 "2021-07-14T08:11:05Z")

</div>

Congratulations .

I am testing on it while using Emscripten to compile VTK9.0.3 and errors raised like blow :  
$ emcmake cmake -S … -B . -DH5\_HAVE\_GETPWUID:BOOL=OFF -DCMAKE\_BUILD\_TYPE:STRING=Release -Wno-dev -DVTK\_OPENGL\_USE\_GLES:BOOL=ON  
$emmake make

make: make  
[0%] Built target VTKData  
[0%] Built target WrappingTools  
[0%] Linking C executable …/…/bin/vtkWrapJava-9.0.js  
wasm-ld: error: duplicate symbol: currentFunction

> > > defined in CMakeFiles/WrapJava.dir/vtkWrapJava.c.o  
> > > defined in …/…/lib/libvtkWrappingTools-9.0.a(vtkParse.tab.c.o)  
> > > emcc: error: ‘/home/hu/emsdk/upstream/bin/wasm-ld -o …/…/bin/vtkWrapJava-9.0.wasm CMakeFiles/WrapJava.dir/vtkWrapJava.c.o …/…/lib/libvtkWrappingTools-9.0.a -L/home/hu/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL -lal -lhtml5 -lc -lcompiler\_rt -lc+±noexcept -lc++abi-noexcept -ldlmalloc -lc\_rt\_wasm -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --allow-undefined --strip-debug --export main --export stackSave --export stackRestore --export stackAlloc --export \_\_wasm\_call\_ctors --export \_\_errno\_location --export malloc --export free --export saveSetjmp --export setThrew --export-if-defined=\_\_start\_em\_asm --export-if-defined=\_\_stop\_em\_asm --export-table -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024’ failed (returned 1)  
> > > make[2]: \*\*\* [Wrapping/Tools/CMakeFiles/WrapJava.dir/build.make:88: bin/vtkWrapJava-9.0.js] Error 1  
> > > make[1]: \*\*\* [CMakeFiles/Makefile2:4612: Wrapping/Tools/CMakeFiles/WrapJava.dir/all] Error 2  
> > > make: \*\*\* [Makefile:141: all] Error 2  
> > > emmake: error: ‘make’ failed (returned 2)

---------------------- end output --------------------

So what the errors mean , please ? I suppose I should not to edit some source code to avoid this, there must be some enviroments issue , I guess.

thanks in advance !

william

---

<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: [July 14, 2021, 11:51am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/3 "2021-07-14T11:51:12Z")

</div>

It looks like the error message is referring to things above that message (the `defined in …` output). Getting the bits above that would help. That said, I don’t know that Emscripten and the Java wrappings were ever working together. Please file [an issue](https://gitlab.kitware.com/vtk/vtk/-/issues) for this.

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [July 14, 2021, 12:21pm UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/4 "2021-07-14T12:21:43Z")

</div>

Use `VTK_ENABLE_WRAPPING=OFF` when building with emscripten. You might want to continue the discussion [in this thread.](https://discourse.vtk.org/t/building-vtk-9-with-emscripten-gles-for-rendering/3038)

---

<div class="post-metadata">

### Author: ![reichtiger](https://discourse.vtk.org/user_avatar/discourse.vtk.org/reichtiger/32/3671_2.png) [@reichtiger](https://discourse.vtk.org/u/reichtiger)
#### Post date: [July 21, 2021, 8:36am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/5 "2021-07-21T08:36:42Z")

</div>

Thank you Ben.  
Now I passed through and use dockcross/web-wasm:20210416 as toolchain , it works .  
VTK/Examples/Cxx all worked . but some other example like  
[https://kitware.github.io/vtk-examples/site/Cxx/PolyData/BooleanOperationPolyDataFilter/](https://kitware.github.io/vtk-examples/site/Cxx/PolyData/BooleanOperationPolyDataFilter/)  
still can not cmake .

this is the errors :  
cmake -DVTK\_DIR:PATH=/work/vtk/build/ …  
Skipping BooleanOperationPolyDataFilter: Could not find the VTK package with the following required components: RenderingContextOpenGL2, RenderingGL2PSOpenGL2.  
– Configuring done  
– Generating done

Yes the VTK I built using cmake command is like below :

cmake   
-G Ninja   
-DCMAKE\_TOOLCHAIN\_FILE=${CMAKE\_TOOLCHAIN\_FILE}   
-DBUILD\_SHARED\_LIBS:BOOL=OFF   
-DCMAKE\_BUILD\_TYPE:STRING=Release   
-DVTK\_ENABLE\_LOGGING:BOOL=OFF   
-DVTK\_ENABLE\_WRAPPING:BOOL=OFF   
-DVTK\_LEGACY\_REMOVE:BOOL=ON   
-DVTK\_OPENGL\_USE\_GLES:BOOL=ON   
-DVTK\_USE\_SDL2:BOOL=ON   
-DVTK\_NO\_PLATFORM\_SOCKETS:BOOL=ON   
-DVTK\_MODULE\_ENABLE\_VTK\_hdf5:STRING=NO \

It seems not including “RenderingContextOpenGL2, RenderingGL2PSOpenGL2”, should I need to set those option value to ON and re-compile the VTK ?  
PS, the VTK version is commit b57618ee. after this will cause issue 18146 at : [https://gitlab.kitware.com/vtk/vtk/-/issues/18146](https://gitlab.kitware.com/vtk/vtk/-/issues/18146)

Thanks again !!  
william

---

<div class="post-metadata">

### Author: ![reichtiger](https://discourse.vtk.org/user_avatar/discourse.vtk.org/reichtiger/32/3671_2.png) [@reichtiger](https://discourse.vtk.org/u/reichtiger)
#### Post date: [July 21, 2021, 8:38am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/6 "2021-07-21T08:38:04Z")

</div>

Thank you David.  
I do not set VTK\_ENABLE\_WRAPPING option and compiled OK via dockcross/web-wasm. and meet another issue now . ☹

---

<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: [July 21, 2021, 12:36pm UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/7 "2021-07-21T12:36:36Z")

</div>

The examples guard against building if their dependencies are not met. If that example is important, yes, you’ll need to enable the `VTK::RenderingContextOpenGL2` and `VTK::RenderingGL2PSOpenGL2` modules in your build and rebuild VTK. However, that issue indicates that the required module doesn’t work with Emscripten, so it just isn’t available for 9.0.3. If it gets resolved in time for 9.1, then that’s when it will be available again.

---

<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: [July 21, 2021, 5:57pm UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/8 "2021-07-21T17:57:22Z")

</div>

> [@reichtiger](#):
>
> BooleanOperationPolyDataFilter

Note that VTK’s built-in Boolean mesh operations do not work reliably (they may randomly crash or provide wrong output for valid inputs). If you need to use Boolean mesh operations then you can use the vtkbool remote module or convert meshes to labelmaps and perform Boolean operation on images.

---

<div class="post-metadata">

### Author: ![reichtiger](https://discourse.vtk.org/user_avatar/discourse.vtk.org/reichtiger/32/3671_2.png) [@reichtiger](https://discourse.vtk.org/u/reichtiger)
#### Post date: [July 22, 2021, 1:41am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/9 "2021-07-22T01:41:58Z")

</div>

Thank you very much ~ Ben. It really helps me a lot !  
Besides, is there any directions about how to compile vtk via Xcode on mac os (M1 chipset) ?  
I have tried once but failed when CMake . Some errors like :  
Cmake error in ThirdParty/build/ThirdParty/hdf5/vtkhfd5/H5Tinit.c is attached to multiple targets:  
vtkhdf5\_src  
ggen\_hdf5  
but none of there is a common dependency of the others. this is not allowed by the xcode “new build system.”

does it mean that source code need to changed or my configration is not correct ? I use default options in Cmake ( mac os)  
PS, I just want to learn VTK on macpro (m1) and my work is not on it , my work is emcripten VTK.  
Thanks a lot again !!

---

<div class="post-metadata">

### Author: ![reichtiger](https://discourse.vtk.org/user_avatar/discourse.vtk.org/reichtiger/32/3671_2.png) [@reichtiger](https://discourse.vtk.org/u/reichtiger)
#### Post date: [July 22, 2021, 1:43am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/10 "2021-07-22T01:43:09Z")

</div>

Great . This informs a lot and helps much more . Thank you very much !

---

<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: [July 22, 2021, 2:51am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/11 "2021-07-22T02:51:30Z")

</div>

I think that’s an issue with VTK under the Xcode generator. I would recommend using the `Ninja` generator.

---

<div class="post-metadata">

### Author: ![reichtiger](https://discourse.vtk.org/user_avatar/discourse.vtk.org/reichtiger/32/3671_2.png) [@reichtiger](https://discourse.vtk.org/u/reichtiger)
#### Post date: [July 29, 2021, 5:29am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/12 "2021-07-29T05:29:58Z")

</div>

Thanks again Ben.  
Well, I have tried using brew install vtk on Mac M1 and it seems worked . cylinder example runs well but Examples/Tutorial/Step1-5 not worked . They runs to the end of main function and no window popped . Strange .  
The vtk version is 9.0.2 on commit b57618ee

---

<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: [July 29, 2021, 12:47pm UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/13 "2021-07-29T12:47:22Z")

</div>

Please file a new issue or Discourse thread about that. This thread is about the release of 9.0.3 (and it seems Homebrew doesn’t have it yet).

---

<div class="post-metadata">

### Author: ![reichtiger](https://discourse.vtk.org/user_avatar/discourse.vtk.org/reichtiger/32/3671_2.png) [@reichtiger](https://discourse.vtk.org/u/reichtiger)
#### Post date: [July 30, 2021, 4:41am UTC](https://discourse.vtk.org/t/vtk-9-0-3/6128/14 "2021-07-30T04:41:01Z")

</div>

ok，thanks！

Ben Boeckel via VTK \<[noreply@discourse.vtk.org](mailto:noreply@discourse.vtk.org)\> 于2021年7月29日周四 下午8:47写道：
