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 Community New Posts Updated Threads Search

Like Tree17Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2018, 12:46
Default
  #21
Member
 
Lourenço SM
Join Date: Jul 2014
Location: Lisboa, Portugal
Posts: 40
Rep Power: 11
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
NablaDyn likes this.

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

Old   March 26, 2019, 08:41
Default
  #22
New Member
 
Will
Join Date: Jun 2013
Posts: 17
Rep Power: 12
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, 16:45
Default
  #23
Member
 
Join Date: Nov 2013
Posts: 35
Rep Power: 12
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, 17:27
Default
  #24
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
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, 19:47
Default
  #25
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
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, 10:03
Default
  #26
New Member
 
Jesper R. K. Qwist
Join Date: Dec 2017
Posts: 22
Rep Power: 8
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.
wbywbywby6 likes this.
Jesper_Roland is offline   Reply With Quote

Old   July 22, 2019, 22:07
Default
  #27
Member
 
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 13
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
Gerhard likes this.
gcengineer is offline   Reply With Quote

Old   October 18, 2019, 10:06
Default Finally solved this problem!
  #28
Member
 
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8
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

Old   April 20, 2020, 13:45
Default
  #29
New Member
 
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9
Gerhard is on a distinguished road
Hi everybody,


I had the same error as in the first post for OF v1912 and OF v1906.
I found this link, followed it exactly, and it solved my problem! Here it is:

https://zhuanlan.zhihu.com/p/82423956

All the best!
Gerhard is offline   Reply With Quote

Old   May 30, 2020, 05:01
Default
  #30
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
FYI:
I received an error message during compilation ("make" on Ubuntu 20.04 LTS, OpenFOAM-v1912) of qt-5.9.3 from this source

Quote:
Originally Posted by lourencosm View Post
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)
regarding something like:
Code:
socketcanbackend : error: ‘SIOCGSTAMP’ was not declared in this scope; did you mean ‘SIOCSARP’?
As suggested on
https://www.mail-archive.com/blfs-de.../msg08916.html
this was successfully fixed by adding
Code:
#include <linux/sockios.h>
to the file
Code:
qt-everywhere-src-5.13.0/qtserialbus/src/plugins/canbus/socketcan/socketcanbackend.cpp

A fix for a succeeding error
Code:
Project ERROR: Building QtQml requires Python.
is already given here:
failing to build Qt, Project ERROR: Building QtQml requires Python. - ubuntu
anufagbemi likes this.
NablaDyn is offline   Reply With Quote

Old   July 25, 2023, 19:47
Default Hmm. Looks familiar.
  #31
Member
 
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 13
gcengineer is on a distinguished road
Wow. zhuanlan.zhihu.com stole my solution word-for-word that I posted here on CFD-online in 2019.

Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04

https://zhuanlan.zhihu.com/p/82423956

Last edited by gcengineer; July 25, 2023 at 23:19.
gcengineer is offline   Reply With Quote

Reply


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 05:49
[OpenFOAM.com] problem: compiling of1806 on ubuntu 14.04 gian93 OpenFOAM Installation 2 August 8, 2018 09:03


All times are GMT -4. The time now is 22:33.