|
[Sponsors] |
[Other] Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 22, 2019, 21:38 |
Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04
|
#1 |
Member
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 13 |
This expands on the solution described by Jesper_Roland at Error ./makeParaview, VTK_QT_VERSION is '5' OF1806.
Many threads describe problems building recent versions of OpenFOAM/ParaView (e.g., 5.6.0) with Qt5 running under recent versions of Ubuntu (e.g., 18.04). The solution here requires only calls to apt-get and works for OpenFOAM-7 and OpenFOAM-v1906. I'm building for 64-bit machines. When I initially built ParaView out of the box using ./makeParaView, I got a Qt version mismatch error: Code:
CMake Error at VTK/CMake/vtkQt.cmake:6 (message): Expected value for VTK_QT_VERSION is '5' Code:
sudo apt-get install qt5-default Code:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5X11Extras" with any of the following names: Qt5X11ExtrasConfig.cmake qt5x11extras-config.cmake Add the installation prefix of "Qt5X11Extras" to CMAKE_PREFIX_PATH or set "Qt5X11Extras_DIR" to a directory containing one of the above files. If "Qt5X11Extras" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): VTK/GUISupport/Qt/CMakeLists.txt:71 (find_package) Code:
sudo apt-get install apt-file sudo apt-file update Code:
apt-file search Qt5X11ExtrasConfig.cmake Code:
libqt5x11extras5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5X11Extras/Qt5X11ExtrasConfig.cmake Code:
sudo apt-get install libqt5x11extras5-dev Run ./makeParaView again. The build proceeds but gives another error: Code:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5Help" with any of the following names: Qt5HelpConfig.cmake qt5help-config.cmake Add the installation prefix of "Qt5Help" to CMAKE_PREFIX_PATH or set "Qt5Help_DIR" to a directory containing one of the above files. If "Qt5Help" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMake/ParaViewQt.cmake:71 (find_package) Qt/Widgets/CMakeLists.txt:221 (pv_find_package_qt) Code:
apt-file search Qt5HelpConfig.cmake Code:
qttools5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Help/Qt5HelpConfig.cmake Code:
sudo apt-get install qttools5-dev ParaView builds successfully on running ./makeParaView again. I confirmed these steps by building ParaView with OpenFOAM-7 and with OpenFOAM-v1906 in separate VMware VMs running Ubuntu 18.04 clients. On a third physical machine running Ubuntu 18.04, I built ParaView with OpenFOAM-7 using the above steps. I then built ParaView with OpenFOAM-v1906 on the same machine without repeating the above steps. I use aliases to switch between OF7 and OFv1906 environments. I hope folks find this helpful. Last edited by gcengineer; July 22, 2019 at 21:46. Reason: Emphasize that I am building ParaView from source, not just installing pre-compiled binaries. |
|
Tags |
openfoam, paraview 5.6, qt5, ubuntu 18.04 |
|
|