# I've solved some building problems and run a example successfully!

**URL:** <https://discourse.vtk.org/t/ive-solved-some-building-problems-and-run-a-example-successfully/14647>\
**Category:** Development\
**Created:** [October 2, 2024, 7:43am UTC](https://discourse.vtk.org/t/ive-solved-some-building-problems-and-run-a-example-successfully/14647 "2024-10-02T07:43:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etzka](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/f4b2a3/32.png) [@Etzka](https://discourse.vtk.org/u/Etzka)\
**Post date:** [October 2, 2024, 7:43am UTC](https://discourse.vtk.org/t/ive-solved-some-building-problems-and-run-a-example-successfully/14647/1 "2024-10-02T07:43:34Z")

</div>

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

 ![surfaceplot](https://discourse.vtk.org/uploads/default/original/2X/a/a30c454d1e00bb646ce4de72d0d935ac83a37dcf.jpeg)
