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

问题描述 投票:0回答:1

我按照另一个问题中的步骤构建了ParaView超级构建。

[在Windows 10中构建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

几个小时后,看来构建成功。

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

打开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,为什么会得到这个?我该如何解决?

qt cmake paraview
1个回答
0
投票

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

中找到源
C:\Users\user\Desktop\paraview\buildvs2015\superbuild\paraview\src\Examples\CutstomApplications\Clone1
© www.soinside.com 2019 - 2024. All rights reserved.