# Paraview compilation error (for plugin development on windows)

**URL:** https://discourse.paraview.org/t/paraview-compilation-error-for-plugin-development-on-windows/134
**Category:** ParaView Support
**Created:** [June 8, 2018, 12:40pm UTC](https://discourse.paraview.org/t/paraview-compilation-error-for-plugin-development-on-windows/134 "2018-06-08T12:40:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wil](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@wil](https://discourse.paraview.org/u/wil)
#### Post date: [June 8, 2018, 12:40pm UTC](https://discourse.paraview.org/t/paraview-compilation-error-for-plugin-development-on-windows/134/1 "2018-06-08T12:40:03Z")

</div>

Hi,  
Here is the process step by step I apply for compiling paraview :

> 

I open Visual studio 2017 terminal x86  
I start cmake-gui from the terminal  
I put Paraview-v5.5.1 sources (downloaded here [https://www.paraview.org/download/](https://www.paraview.org/download/)) path on the first field  
I put the directory created for the build on the second field  
I click on configure  
I choose Visual Studio 15 2017 generator for the project  
When the red window appears:  
I let default Paraview settings checked:  
- Build\_shared\_libs  
- paraview\_build\_qt\_gui  
- paraview\_enable\_catalyst (I dont know what is this for)  
- paraview\_use\_vtkm  
- vtk\_group\_paraviewcore  
- vtk\_group\_paraviewRendering

I put QT\_DIR path (QT 5.9 msvc2015)  
I click on configure again  
just 1 cmake warning :  
"  
For input:  
‘${\_qt5\_install\_prefix}/Qt5@module@/Qt5@module@Config.cmake’  
the old evaluation rules produce:  
‘C:/QT2/5.9/msvc2015/lib/cmake/Qt5/Qt5Config.cmake’  
but the new evaluation rules produce:  
‘C:/QT2/5.9/msvc2015/lib/cmake/Qt5@module@/Qt5@module@Config.cmake’  
Using the old result for compatibility since the policy is not set.  
"

I click on Generate when configuring done

Then I launch paraview generated solution : Paraview.sln  
I generate ALL\_BUILD on debug win\_32 platform

At the end, 388 generation succeed and 33 failed

The error that appears multiple times :  
can’t open file '…..\lib\Debug\vtkPVServerManagerRendering-pv5.5.lib

> 

using ninja :  
I set path of paraview source + path of build directory  
I click on configure  
I choose ninja configuration (ninja latest version)  
When the red window appears:  
I let default Paraview settings checked  
I put QT\_DIR path (QT 5.9 msvc2015)  
I click on configure again  
cmake warning  
I click on Generate when configuring done  
I go to paraview build directory on the terminal  
I launch generation with the command: ninja  
The generation ends with :  
"  
ADF\_internals.c.obj : error LNK2019: unreasolved external symbol \_open64 in the function \_vtkcgns\_ADFI\_open\_file  
bin\vtkcgns-pv5.5.dll : fatal error LNK1120: 1 non resolved external  
Linking CXX shared library bin\vtkInteractionImage-pv5.5.dll  
creation of the lib lib\vtkInteractionImage-pv5.5.lib and lib\vtkInteractionImage-pv5.5.exp  
creation of the lib lib\vtkInteractionImage-pv5.5.lib and lib\vtkInteractionImage-pv5.5.exp  
Linking CXX shared library bin\vtkAcceleratorsVTKm-PV5.5.dll  
creation of the lib lib\vtkAcceleratorsVTKm-PV5.5.lib and lib\vtkAcceleratorsVTKm-PV5.5.exp  
creation of the lib lib\vtkAcceleratorsVTKm-PV5.5.lib and lib\vtkAcceleratorsVTKm-PV5.5.exp  
ninja: build stopped: subcommand failed.  
"

---

<div class="post-metadata">

### Author: ![shawn.waldon](https://discourse.paraview.org/user_avatar/discourse.paraview.org/shawn.waldon/32/12_2.png) [@shawn.waldon](https://discourse.paraview.org/u/shawn.waldon)
#### Post date: [June 11, 2018, 1:55pm UTC](https://discourse.paraview.org/t/paraview-compilation-error-for-plugin-development-on-windows/134/2 "2018-06-11T13:55:19Z")

</div>

> [@wil](#):
>
> just 1 cmake warning :
> 
> "
> 
> For input:
> 
> ‘${\_qt5\_install\_prefix}/Qt5@module@/Qt5@module@Config.cmake’
> 
> the old evaluation rules produce:
> 
> ‘C:/QT2/5.9/msvc2015/lib/cmake/Qt5/Qt5Config.cmake’
> 
> but the new evaluation rules produce:
> 
> ‘C:/QT2/5.9/msvc2015/lib/cmake/Qt5@module@/Qt5@module@Config.cmake’
> 
> Using the old result for compatibility since the policy is not set.
> 
> "

You can ignore this. It is a warning and doesn’t break anything. It is fixed in Qt 5.10 or 5.11.

> [@wil](#):
>
> The error that appears multiple times :
> 
> can’t open file '…\lib\Debug\vtkPVServerManagerRendering-pv5.5.lib

Look for vtkPVServerManagerRendering in the list of projects in the solution and try to build just that project. See what goes wrong. If it succeeds then try the ALL\_BUILD again, maybe some dependency info was missing. If it fails then post that error message (which is causing the others).

I’m not sure about your ninja build’s error…

---

<div class="post-metadata">

### Author: ![wil](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@wil](https://discourse.paraview.org/u/wil)
#### Post date: [June 12, 2018, 8:28am UTC](https://discourse.paraview.org/t/paraview-compilation-error-for-plugin-development-on-windows/134/3 "2018-06-12T08:28:03Z")

</div>

When I build only vtkPVServerManagerRendering I get this error :

> ‘… \ … \ … \ bin \ Debug \ vtkkwProcessXML-pv5.5.exe’ is not recognized as an internal command 1\> or external, an executable program or a batch file.
