Just add the bin\Release directory in VTK shared lib to system environment variable!
Thanks for sharing. Adding development binary folders to the system paths can lead to many issues. For example, you may have two VTK builds on your computer and all the applications that are built with the VTK version that is not listed first in the system paths will crash.
Instead, a safe solution for debugging is to right-click on the executable in the Solution Explorer
window in Visual Studio, click Properties
, and in Debugging
section, set your path in the Environment
field, adding something like PATH=c:\d\VTK\bin\Release
. You can specify a different path for Debug and Release.
A safe solution for releasing your software is to copy the VTK .dll files into the same folder as your .exe file is.
1 Like