I have a doubt. With vtk 8.0, I haven’t had to add the dll in the bin directory with shared lib option ticked. With the cmake visual was able to find the dll but I found that in vtk 9.0 I am forced to put all dllls in the bin. Is there any way to set it up as before that it was directly found with visual c++ 2015? I didn’t set up the system variables in the previous versions. What change is making this behaviour. If I put all dll it works but I would like to set it as before without the dll as it is cleaner.
All .dll files should be in the bin/ directory. Could you be more explicit which files you see in the expected place in 8.x? Where are the analogous files for you in 9.0?
Hello, thank you for answering I did not have to copy the dlls in the previous version I only defined this cmake and visual was able to find the dlls directly. I did not set up the environment variables eaither. I also do not define itk or qt dlls it is able to detect them. But I do not know how to do it in vtk 9.0. It 's cleaner not to copy all dlls in the release and debug folders of the the bin. Maybe because this include(${VTK_USE_FILE}) is not used in vtk 9.0? Thanks !!
I still don’t have enough information to figure out what’s wrong here. I don’t know what made it work in 8.2 or for Qt and ITK as there’s nothing special that was done before as far as I’m aware. I expect you have some PATH setting that made it work? What are you trying to run? A project built against VTK? VTK’s tests?
This has nothing to do with it. Everything that file did is now managed in vtk_module_autoinit.