CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Error ./makeParaview, VTK_QT_VERSION is '5' OF1806

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree10Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2018, 13:46
Default
  #21
Member
 
Lourenšo SM
Join Date: Jul 2014
Location: Lisboa, Portugal
Posts: 30
Rep Power: 7
lourencosm is on a distinguished road
OpenFOAM v1806 In Ubuntu 16.04,
to install PVReaders i had to:

1) install qt-5.9.3 (qt-everywhere-opensource-src-5.9.3.tar.xz)
Code:
cd $WM_THIRD_PARTY_DIR
./makeQt 5.9.3
2) edit the paraview confg file:
Code:
$WM_PROJECT_DIR/etc/config.sh/paraview
replace
Code:
ParaView_QT=qt-system
with
Code:
ParaView_QT=qt-5.9.3
3) Compile the PVReaders
Code:
    cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders
    ./Allwclean
    ./Allwmake

Last edited by lourencosm; August 30, 2018 at 13:48. Reason: append link to download qt
lourencosm is offline   Reply With Quote

Old   March 26, 2019, 09:41
Default
  #22
New Member
 
Will
Join Date: Jun 2013
Posts: 17
Rep Power: 8
imamwfgf is on a distinguished road
Similar to what calim_cfd did. But after running
Code:
./makeQt 5.9.3
and
Code:
./makeVTK 8.1.1
I still can't run
Code:
./makeParaview
Not sure if it's because I skipped installing Mesa. But in the end,
Code:
./makeParaview -qt-5.9.3
worked for me
Saleh Abuhanieh likes this.
imamwfgf is offline   Reply With Quote

Old   April 25, 2019, 17:45
Default
  #23
Member
 
Join Date: Nov 2013
Posts: 31
Rep Power: 8
beatlejuice is on a distinguished road
For me the following procedure helped (OF1812, Ubuntu16.04):


Add ppa (see https://askubuntu.com/questions/1062...ubuntu-16-04):


sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt-get update
sudo apt install qt511-meta-full


create file default.conf in /etc/xdg/qtchooser with the content:
/opt/qt511/bin
/opt/qt511/lib

Version check:
qmake -v

Gives:
QMake version 3.1 Using Qt version 5.11.1 in /opt/qt511/lib

install paraview:
cd $WM_THIRD_PARTY_DIR
export Qt5_DIR=/opt/qt511/lib/cmake/Qt5
./makeParaView -cmake -qmake -qt-5.11.1


Hope this helps and it is not a stupid way =)
wyldckat likes this.
beatlejuice is offline   Reply With Quote

Old   June 3, 2019, 18:27
Default
  #24
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 62
Rep Power: 3
Saleh Abuhanieh is on a distinguished road
Quote:
Originally Posted by imamwfgf View Post
Similar to what calim_cfd did. But after running
Code:
./makeQt 5.9.3
and
Code:
./makeVTK 8.1.1
I still can't run
Code:
./makeParaview
Not sure if it's because I skipped installing Mesa. But in the end,
Code:
./makeParaview -qt-5.9.3
worked for me

That works for me too
Saleh Abuhanieh is offline   Reply With Quote

Old   June 3, 2019, 20:47
Default
  #25
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 62
Rep Power: 3
Saleh Abuhanieh is on a distinguished road
After solving that problem and compiling paraview, I received the following error when I tried to run paraFoam:


QFontDatabase: Cannot find font directory /opt/OpenFOAM/ThirdParty-v1812/platforms/linux64Gcc/qt-5.9.3/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.



I found the solution, and posting here:
- cd /opt/OpenFOAM/ThirdParty-v1812/platforms/linux64Gcc/qt-5.9.3/lib/
- ln -s /usr/share/fonts/truetype/dejavu/ fonts


That's all


Regards,
Saleh Abuhanieh is offline   Reply With Quote

Old   June 21, 2019, 11:03
Default
  #26
New Member
 
Jesper Pedersen
Join Date: Dec 2017
Posts: 9
Rep Power: 3
Jesper_Roland is on a distinguished road
Quote:
Originally Posted by TU_Hiwi View Post
okay so i now could install paraview using qt 5.9.5, which should also be LTS. (by the way, is there a difference between "qt-everywhere-src-VER" and "qt-everywhere-opensource-src-VER"?)
installing paraview worked just fine, but if i execute paraFoam the "missing PVFoamReader"-error pops up. Paraview opens up anyway but the fonts (and so any text) is missing. Not suitable for working, i would like to solve that



executing the advised commands (cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders
./Allwclean
./Allwmake) works until some error during ./Allwmake state below.
Code:
CMake Error at /home/hgl/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/ParaView-5.5.2/lib/cmake/paraview-5.5/ParaViewQt.cmake:71 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" (requested
  version 5.6) with any of the following names:

    Qt5Config.cmake
    qt5-config.cmake

Any Ideas what went wrong and how to solve?

You can also search for the missing files by:


So for example in my case it cannot find Qt5CoreConfig.cmake.

Follow these steps:

3.1) sudo apt update (Only the first time you search for files.)


3.2) apt-file search Qt5CoreConfig.cmake


3.3) It should now return a message similar to the following:
qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake


3.4) So we need to install qtbase5-dev. This is done with the command:
sudo apt install qtbase5-dev


3.5) Now you can run your the paraview compilation again:
./makeParaview



Now it just repeating until you have all the required files and installations.
Jesper_Roland is offline   Reply With Quote

Old   July 22, 2019, 23:07
Default
  #27
Member
 
Glenn Carlson
Join Date: Oct 2012
Location: US
Posts: 39
Rep Power: 9
gcengineer is on a distinguished road
Thanks for this, Jesper.


This is essentially the same as my solution for building ParaView 5.6.0 with Qt5 for OpenFOAM-7 and OpenFoam-v1906 running under Ubuntu 18.04:


Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04
gcengineer is offline   Reply With Quote

Old   October 18, 2019, 11:06
Default Finally solved this problem!
  #28
Member
 
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 35
Rep Power: 2
Rasmusiwersen is on a distinguished road
Quote:
Originally Posted by Jesper_Roland View Post
You can also search for the missing files by:


So for example in my case it cannot find Qt5CoreConfig.cmake.

Follow these steps:

3.1) sudo apt update (Only the first time you search for files.)


3.2) apt-file search Qt5CoreConfig.cmake


3.3) It should now return a message similar to the following:
qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake


3.4) So we need to install qtbase5-dev. This is done with the command:
sudo apt install qtbase5-dev


3.5) Now you can run your the paraview compilation again:
./makeParaview



Now it just repeating until you have all the required files and installations.
Once again Jesper, thank you for the suggestion. I've had this problem at every build of OF19.06, but this actualyl worked!

Hope you are doing well

Happy foaming!
Rasmusiwersen is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Install OF1806 with system thirdparty packages Bloerb OpenFOAM Installation 1 October 5, 2018 06:49
[OpenFOAM.com] problem: compiling of1806 on ubuntu 14.04 gian93 OpenFOAM Installation 2 August 8, 2018 10:03


All times are GMT -4. The time now is 17:03.