Visual Studio 2019 - executables can't find the .dll libraries - Help!

On windows, building with Visual Studio 2019 everything builds OK with VTK Examples but none of the executables can find the .dll libraries it needs for VTK - Help!

Hello Chris,

Probably you need to have the corresponding (Debug or Release) VTK dll folder on your path.
Another option would be copying all needed dll files into the folder where your executable is. It can be done by hand or as a Pre-Built event (just like an script with the (x)copy commands).

Thanks David – yes, just before I read your response I added the explicit build/bin/release and build/bin/debug paths to my system environment Path and now all is well. Previously I had only created paths for build/bin and build/lib.

Regards,

Chris

1 Like

thank to your comment that I fixed my error!