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/
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
Thanks again !!
william