|
[Sponsors] |
[Other] Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 22, 2019, 22: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: 14 |
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 22:46. Reason: Emphasize that I am building ParaView from source, not just installing pre-compiled binaries. |
|
July 25, 2019, 12:39 |
Worked for me!
|
#2 |
New Member
Join Date: Jul 2019
Posts: 1
Rep Power: 0 |
Worked for me! Thank you!
|
|
August 7, 2019, 04:24 |
|
#3 |
New Member
Aadhavan
Join Date: Jul 2019
Location: India
Posts: 17
Rep Power: 7 |
Hi All,
I am trying to install OF 1906 on Ubuntu -16.04, I am really tired of looking at the threads for installing paraview, It seems that by looking at the different threads, the things are messed up, I dont know where I am doing mistake, OF compilation is successful. I am really struggling to fix paraView built up. The error message I am getting is 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:219 (pv_find_package_qt) -- Configuring incomplete, errors occurred! In my understanding it says that the version of the qt is higher than the required one. If that is the case, i dont no how to downgrade the version or how to install the correct Qt? Please give your suggestions, Thanks for your advise, Aadhavan |
|
August 7, 2019, 16:22 |
|
#4 |
Member
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14 |
I can confirm that the steps in my original post work to install ParaView 5.6 with OF v1906 in Ubuntu 18.04, but not in 16.04. Installing v1906 in Ubuntu 16.04 returned the Qt version mismatch error reported by Aadhavann even after installing the Qt5 packages identified by apt-file. I did not try to install OF7 in Ubuntu 16.04.
At this stage, my best advice is to upgrade to Ubuntu 18.04 if you want to run ParaView 5.6 with OF v1906 or 7. Perhaps others have more insight. |
|
August 8, 2019, 00:03 |
|
#5 |
New Member
Aadhavan
Join Date: Jul 2019
Location: India
Posts: 17
Rep Power: 7 |
sure I will upgrade, i dont have any other option.
Thanks for your advise and suggestion, |
|
August 8, 2019, 05:22 |
|
#6 |
New Member
Aadhavan
Join Date: Jul 2019
Location: India
Posts: 17
Rep Power: 7 |
Finally I got success by upgrading the Ubuntu.
It seems that we can follow the steps given there in the OF website. My question is that, in the release note they mentioned that OF1906 is tested on Ubuntu 16.04 LTS. If that is the case why it is giving such an error, its really strange and waste of time. Any how it works with Ubuntu-18.04 LTS, Thanks Gcengineer Last edited by Aadhavann; August 8, 2019 at 09:20. |
|
September 13, 2019, 10:45 |
Awesome
|
#8 |
New Member
zeren
Join Date: Sep 2019
Posts: 1
Rep Power: 0 |
Now l learn another command "apt-file"
|
|
March 13, 2020, 06:30 |
|
#9 |
New Member
Asha Egreck
Join Date: Feb 2018
Posts: 2
Rep Power: 0 |
Super. Thanks.
Also works on ubuntu 18.04 and for v1812. |
|
June 22, 2020, 19:45 |
installing Openfoam 7 on Ubuntu 18.04 32bit
|
#10 |
New Member
Siavash
Join Date: Jun 2020
Posts: 2
Rep Power: 0 |
Dear all,
I am totally new to the interesting world of Linux and Openfoam. I tried to install Openfoam 7 on my Ubuntu 18.04 as described in this link: https://openfoamwiki.net/index.php/I...7/Ubuntu/18.04 because it has instructions for both 32-bit and 64-bit machines. The installation went well without any difficulties or errors. However, when I wanted to test my installation, I used the command in the "Getting Started" section in the link below: https://openfoam.org/download/7-ubuntu/ cd $FOAM_RUN cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily . cd pitzDaily blockMesh simpleFoam paraFoam The model converged but the last command "parafoam" returned this error: FATAL ERROR: The official reader module for OpenFOAM data does not exist on your system. This means that the version of ParaView you are using was not compiled with OpenFOAM, or distributed with a packaged version of OpenFOAM. For information on packaged versions of OpenFOAM/ParaView and compilation of OpenFOAM/ParaView, see https://openfoam.org/download Alternatively, you might be able to view your OpenFOAM data with the reader module provided with ParaView by running: paraFoam -builtin and when I entered "paraFoam -builtin" returned: Created temporary 'pitzDaily.foam' /home/siavash/OpenFOAM/OpenFOAM-7/bin/paraFoam: 67: /home/siavash/OpenFOAM/OpenFOAM-7/bin/paraFoam: paraview: not found Could anyone help me please? |
|
Tags |
openfoam, paraview 5.6, qt5, ubuntu 18.04 |
|
|