paraFoam compilation

Hint on paraFoam compile from Third-party folder in OpenFOAM-7 on Ubuntu 20.04

There are some package needed before compile the paraFoam. The commands are shown below:

1
2
3
4
sudo apt-get install qt5-default
sudo apt-get install libqt5x11extras5-dev
sudo apt-get install qttools5-dev
sudo apt-get install libxt-dev

Actually, those packages may also not enough. Therefore, here we introduce a new method for searching those command. This package is called apt-file. When you called e.g.

1
apt-file search Qt5HelpConfig.cmake

You will get:

1
qttools5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Help/Qt5HelpConfig.cmake

This will tell you that qttools5-dev needs to be installed if Qt5HelpConfig.cmake is missing.

After these steps, normally, when you use ./makeParaView it will work. Finally, remember to use wmRefresh after the compilation.

Update 12.22.2020:

When I compile the paraFoam for OpenFOAM 6, I got some other errors which is related to the qt version. As I am using the latest Ubuntu system (20.02), it is not easy to use the previous qt4. This makes the compilation miserable. To solve this, I change the paraview version from 5.4.0 to 5.6.0. The current qt version suits this version of paraview better. In /etc/config.sh/paraview, it can be changed. By doing this the environmental variables for using the paraview can be adjusted to the version you are going to use.