# Missing dll errors when building Custom Applications Examples

**URL:** https://discourse.paraview.org/t/missing-dll-errors-when-building-custom-applications-examples/10905
**Category:** ParaView Support
**Created:** [December 3, 2022, 12:08am UTC](https://discourse.paraview.org/t/missing-dll-errors-when-building-custom-applications-examples/10905 "2022-12-03T00:08:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DL-CMT](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@DL-CMT](https://discourse.paraview.org/u/DL-CMT)
#### Post date: [December 3, 2022, 12:08am UTC](https://discourse.paraview.org/t/missing-dll-errors-when-building-custom-applications-examples/10905/1 "2022-12-03T00:08:37Z")

</div>

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](https://discourse.paraview.org/t/custom-applications-dont-work/8983)).

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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 5, 2022, 9:19am UTC](https://discourse.paraview.org/t/missing-dll-errors-when-building-custom-applications-examples/10905/2 "2022-12-05T09:19:43Z")

</div>

> 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

---

<div class="post-metadata">

### Author: ![DL-CMT](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@DL-CMT](https://discourse.paraview.org/u/DL-CMT)
#### Post date: [December 5, 2022, 6:20pm UTC](https://discourse.paraview.org/t/missing-dll-errors-when-building-custom-applications-examples/10905/3 "2022-12-05T18:20:02Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 6, 2022, 7:50am UTC](https://discourse.paraview.org/t/missing-dll-errors-when-building-custom-applications-examples/10905/4 "2022-12-06T07:50:57Z")

</div>

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