[OpenFOAM] Paraview のコンパイルおよびインストール時の CMake/ParaViewQt.cmake:65 (find_package) での CMake エラーの解決策

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

パラビューのコンパイル

おすすめ

転載: blog.csdn.net/zch19960629/article/details/89046894