upon running cmake -G Ninja for one of the C++ examples to the Emscripten folder, I get this error:
CMake Warning at CMakeLists.txt:17 (find_package):
By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "VTK", but
CMake did not find one.
Could not find a package configuration file provided by "VTK" with any of
the following names:
VTKConfig.cmake
vtk-config.cmake
Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
to a directory containing one of the above files. If "VTK" provides a
separate development package or SDK, be sure it has been installed.
Skipping example:
-- Configuring done
-- Generating done
-- Build files have been written to: /work/build-CylinderExample
hereās the cmakelists:
cmake_minimum_required(VERSION 3.13)
project(Cone)
# -----------------------------------------------------------------------------
# EMSCRIPTEN only
# -----------------------------------------------------------------------------
Yes, Actually Iāve been able to make Emscripten examples like Cone and MultiCone.
Now I wanted to take one of the C++ examples and make it the same way to WASM. So I took C++ example CylinderExample, replaced the cone.cxx code with the c++ code of example and just changed some parts like changing vtkRenderWindow to vtkSDL2OpenGLRenderWindow and kept the rest the rest the same.
Then I tried to make it the same way that I made cone example, and got this error.
I guess itās conveniently possible to make c++ examples of the āVTK examples websiteā to WASM by some minor changes. is this true? are there any considerations?
Thanks in advance
I have a problem with an example in ITK and I am trying to solve it. I have couple of questions. i know this is a vtk forum but i figured you know enough about emscripten so you could be problem solver for my problem.
under ITK discussion forum @sag you could search and find me.
following is the message titile i have created asking for help:
I have put up a lot of pictures there to explain my problem. basically I use ITK-WASM BUILD command in node.js to call itkwasm/emscripten toolchain docker to compile and build my project which is a simple adding noise to yinyang.png image. I have built my c++ code into webassembly module and can communicate with javascript with it using runPipelineNode(pipelinepath, args). I use the HelloWorld example of mat maccormic. problem is i can build it into HelloWorld.js but when i run it using npx node index.mjs module it crashes at the itk::ReadImage(āyinyang.pngā). I send also yinyang.json itk::ReadImage, but still it crashes.
Thank you very much for your reply. I will do that, i succeeded partially to build another example ThresholdingUsingBinaryImage example, now i am getting Numerics module link error. ZVNLā¦ something. I will get help from support