在 Windows 10 中构建 ParaView 自定义应用程序时出错

Error while building ParaView custom app in Windows 10

我已经按照我在另一个问题中找到的步骤构建了 ParaView superbuild。

Windows10 中构建 ParaView 超级构建的步骤:

Install Visual Studio 2015 community with all C++ related tools
Install cmake
Install git bash
Install Ninja
Install Qt 5.9.9 VS2015 64 bits

then :

Open VS2015 x64 Native Tools Command Prompt and execute: cmake-gui

ENABLE_qt5 and USE_SYSTEM_qt5
ENABLE_python 
ENABLE_python2

and add: Qt5_DIR = C:/Qt/5.9.9/msvc2015_64/lib/cmake/Qt5

configure
generate

结果:

Determined source version for paraview: 5.7.0
Enabling cxx11 as requested.
Enabling ftjam as requested.
Enabling nlohmannjson as requested.
Enabling zlib for: hdf5
Enabling szip for: hdf5
Enabling hdf5 for: paraview
Enabling python2 as requested.
Enabling python as requested.
Enabling qt5 as requested.
Enabling paraview as requested.
Building projects: cxx11, ftjam, nlohmannjson, zlib, szip, hdf5, python2, python, qt5, paraview
Configuring done
Generating done

然后:

close cmake-gui
ninja

几个小时后,似乎构建成功。

然后我从 https://gitlab.kitware.com/paraview/paraview/tree/master/Examples/CustomApplications

下载 Clone1

打开VS2015 x64 Native Tools Command Prompt并执行:cmake-gui

添加:

Qt5_DIR = C:/Qt/5.9.9/msvc2015_64/lib/cmake/Qt5
ParaView_DIR = C:\Users\user\Desktop\paraview\buildvs2015\install\lib\cmake\paraview-5.7

然后:

configure
generate

我得到了:

Found Python2: C:/Users/user/Desktop/paraview/buildvs2015/install/lib/python27.lib (found suitable version "2.7.15", minimum required is "2.7") found components: Development 
Found OpenGL: opengl32  found components: OpenGL 
Found ZLIB: C:/Users/user/Desktop/paraview/buildvs2015/install/lib/zlib.lib (found version "1.2.11") 
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE  
Skipping example: Clone1 example requires PARAVIEW_USE_QT to be enabled. Please rebuild ParaView (or point to a different build of ParaView) with PARAVIEW_USE_QT set to TRUE
Configuring done

我已经激活了 ENABLE_qt5USE_SYSTEM_qt5,为什么我会收到这个?我该如何解决?

使用 ParaView 5.7.0 的 Clone1 示例,而不是 master。 您可以在

中找到来源
C:\Users\user\Desktop\paraview\buildvs2015\superbuild\paraview\src\Examples\CutstomApplications\Clone1