# Building plugins from examples

**URL:** https://discourse.paraview.org/t/building-plugins-from-examples/2004
**Category:** Development
**Created:** [June 7, 2019, 2:25pm UTC](https://discourse.paraview.org/t/building-plugins-from-examples/2004 "2019-06-07T14:25:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Toorall](https://discourse.paraview.org/user_avatar/discourse.paraview.org/toorall/32/1992_2.png) [@Toorall](https://discourse.paraview.org/u/Toorall)
#### Post date: [June 7, 2019, 2:25pm UTC](https://discourse.paraview.org/t/building-plugins-from-examples/2004/1 "2019-06-07T14:25:45Z")

</div>

Hello!  
I have successfully built Paraview v5.6.0 (cmake -G “Visual Studio 15 2017 Win64” -DCMAKE\_BUILD\_TYPE=Release -DPARAVIEW\_BUILD\_QT\_GUI=ON …\ParaView-v5.6.0) , then built it using visual studio 2017 (Release, x64). Then used this command “windeployqt.exe paraview.exe” because for some reason qt could not find some dependencies.

Then I was trying to build plugins from ParaView examples but I have the same errors with almost all plugins.  
My actions:

- copy paraview/Examples/Plugins/DockWidget to another directory (C:\PARAVIEW2\build2\MyPlugins\DockWidget)
- create directory (C:\PARAVIEW2\build2\MyPlugins\build-DockWidget)
- cd C:\PARAVIEW2\build2\MyPlugins\build-DockWidget
- (cmake …\DockWidget -G “Visual Studio 15 2017 Win64” -DBUILD\_SHARED\_LIBS=ON -DCMAKE\_PREFIX\_PATH=“C:\PARAVIEW2\build2”)\>log.txt  
[log.txt](https://1drv.ms/t/s!Avr-7fhsIv2K2nRTVknW6Cv5WWak)

It gives warning:

> CMake Warning at C:/PARAVIEW2/ParaView-v5.6.0/CMake/ParaViewQt.cmake:83 (message):  
> Qt ‘5.6.0’ found and will be used. Note, however, that the officially  
> supported version is 5.9.  
> Call Stack (most recent call first):  
> C:/PARAVIEW2/build2/lib/cmake/paraview-5.6/Modules/pqApplicationComponents.cmake:12 (pv\_find\_package\_qt)  
> C:/PARAVIEW2/ParaView-v5.6.0/VTK/CMake/vtkModuleAPI.cmake:45 (include)  
> C:/PARAVIEW2/ParaView-v5.6.0/VTK/CMake/vtkModuleAPI.cmake:15 (vtk\_module\_load)  
> C:/PARAVIEW2/ParaView-v5.6.0/VTK/CMake/vtkModuleAPI.cmake:152 (\_vtk\_module\_config\_recurse)  
> C:/PARAVIEW2/build2/VTK/VTKConfig.cmake:130 (vtk\_module\_config)  
> C:/PARAVIEW2/build2/ParaViewConfig.cmake:67 (include)  
> CMakeLists.txt:8 (FIND\_PACKAGE)

- (cmake --build . --config Release) \> Build.txt  
[Build.txt](https://1drv.ms/t/s!Avr-7fhsIv2K2nVFD4-tc-t6yRAV)

In summary configuring gives warning that it will use Qt 5.6 but officially supported version is 5.9, despite the fact I have in environmental variables path to Qt 5.9 and built my ParaView using Qt 5.9.  
During building it gives error “Unresolved external symbols”  
How can I solve this errors?  
I have tried to build PV with examples directly, it also gives errors.

Thank you in advance.

---

<div class="post-metadata">

### Author: ![Toorall](https://discourse.paraview.org/user_avatar/discourse.paraview.org/toorall/32/1992_2.png) [@Toorall](https://discourse.paraview.org/u/Toorall)
#### Post date: [June 9, 2019, 6:32pm UTC](https://discourse.paraview.org/t/building-plugins-from-examples/2004/2 "2019-06-09T18:32:02Z")

</div>

After I have added two dependencies (vtkRenderingFreeType-pv5.6.lib;vtkInteractionStyle-pv5.6.lib;) from (C:\PARAVIEW2\build2\lib\Release;), the plugin was built successfully.
