【问题标题】:Error while building ParaView custom app in Windows 10在 Windows 10 中构建 ParaView 自定义应用程序时出错
【发布时间】:2020-03-14 14:37:40
【问题描述】:

我已经按照我在另一个问题中找到的步骤构建了 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

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

然后我从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,为什么会收到这个?我该如何解决?

【问题讨论】:

    标签: qt cmake paraview


    【解决方案1】:

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

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

    【讨论】:

    • 谢谢!我现在没有收到那个错误。但之后,在构建文件夹中执行ninja 我得到[8/8] Linking CXX executable bin\paraview_clone1.exe。执行paraview_clone1.exe 时出现错误The code execution cannot proceed because pqApplicationComponents-pv5.7.dll was not found. Reinstalling the program may fix this problempqComponents-pv5.7.dllpqCore-pv5.7.dllpqWidgets-pv5.7.dll 也是如此。知道这可能是什么,我应该怎么做?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多