Missing dll errors when building Custom Applications Examples

I am trying to build the custom application examples (Demo0, SimpleParaView, etc.) and keep running into errors for missing dll files (similar to: Custom applications don't work).

My build procedure:
Launch the CMake GUI from a x64 Native Tools Command Prompt for VS 2019:

Where is the source code: (path to Examples source)
Where to build the binaries: (path to a build directory)
Generator = Visual Studio 16 2019

From here, I configure, generate, and open the project in VS2019 to build the solution.

Everything seems to build correctly, but when I run the .exe for any of the custom applications I get a series of errors for missing files, for example, in the case of SimpleParaview:

  • pqApplicationComponents-pv5.11d.dll was not found
  • pqComponents-pv5.11d.dll was not found
  • pqCore-pv5.11d.dll was not found
  • pqWidgets-pv5.11d.dll was not found

I have added the Paraview bin directory to my PATH env variables as suggested in the link above, and checked PARAVIEW_ENABLE_EXAMPLES when compiling Paraview itself.

Is there anything else I might be missing?

Best,

Dane.

I have added the Paraview bin directory to my PATH env variables as suggested in the link above,

This is the solution, but make sure to reboot your system after the change.
(restarting the terminal should be enoug but who knows)

Best

Thanks Mathieu,
Rebooting didn’t seem to work, but inspecting by bin folder a little closer, I noticed I had an extra subfolder for the Debug build, e.g.:

build
|–bin
|----debug
|------build files

Adding the “debug” folder to by path env vars solved the issue.

1 Like

Right, I always forgot about multi configuration generator. You may want to use ninja, much faster than msvc for repeated builds.

1 Like