【OpenFOAM】编译安装Paraview时出现:CMake Error at CMake/ParaViewQt.cmake:65 (find_package) 的解决办法

编译安装Paraview : /makeParaview时出现下列错误,已经安装了Qt5.10版本(>5.51),原因是没有指定相关的配置路径:

CMake Error at CMake/ParaViewQt.cmake:65 (find_package):
Could not find a configuration file for package "Qt5" that is 
compatible with requested version "5.6".

The following configuration files were considered but not accepted:

/usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.5.1
/usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.5.1

Call Stack (most recent call first):
Qt/Widgets/CMakeLists.txt:203 (pv_find_package_qt)

-- Configuring incomplete, errors occurred!

参考路径:解决办法

sudo gedit  ~/.bashrc

在文件末尾添加:

export Qt5_DIR="//home/chris/Qt5.10.1/5.10.1/gcc_64/lib/cmake/Qt5"

保存关闭,最后:

source ~/.bashrc

重新打开一个终端,进入/OpenFOAM/ThirdParty-5.x/目录,即可进行编译

./makeParaview

Compile Paraview

猜你喜欢

转载自blog.csdn.net/zch19960629/article/details/89046894