[OpenFOAM] Solution to CMake Error at CMake/ParaViewQt.cmake:65 (find_package) when compiling and installing Paraview

The following error occurred when compiling and installing Paraview: /makeParaview. The Qt5.10 version (>5.51) has been installed because the relevant configuration path was not specified:

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!

Reference path: solution

sudo gedit  ~/.bashrc

At the end of the file add:

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

Save and close, finally:

source ~/.bashrc

Reopen a terminal and enter the /OpenFOAM/ThirdParty-5.x/ directory to compile.

./makeParaview

Compile Paraview

Guess you like

Origin blog.csdn.net/zch19960629/article/details/89046894