Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04
This expands on the solution described by Jesper_Roland at https://www.cfd-online.com/Forums/op...-of1806-2.html.
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): Code:
sudo apt-get install qt5-default Code:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package): Code:
sudo apt-get install apt-file 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): 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. |
Worked for me!
Worked for me! Thank you!
|
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 |
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. |
sure I will upgrade, i dont have any other option.
Thanks for your advise and suggestion, |
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 |
Thanks for the help
It works. I've been breaking my head to get ParaView working in Ubuntu 18.04 but to no avail. Thanks for your detailed info.
|
Awesome
Now l learn another command "apt-file"
|
Super. Thanks.
Also works on ubuntu 18.04 and for v1812. |
installing Openfoam 7 on Ubuntu 18.04 32bit
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? |
All times are GMT -4. The time now is 14:05. |