there will be lnk errors when building vtk-source into static libs under version 9.3.1, i was replied that that will be available in 9.4 (November, 2024), wait and see it!
i’ve built for dll libs, when the configurations were “x64”, “Release”, i should have added vtk-build/bin/release path to my system environment in case the “can’t find xxx.dll” error arose.
notes:
1)to build under the source tree:
PS > cmake -DVTK_DIR:PATH=D:\\VTK\\build-9.3.1-dynamic -S .\ -B .\build
(comment: the path arguement passed to command should escape \, so they are doubled.)
2)to have .exe file:
PS > cmake --build .\build --config Release
3)to run:
PS > .\build\Release\xxx.exe