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

[OpenFOAM.org] Building ParaView 5.4.0 with OpenFOAM 4.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2017, 12:45
Default Building ParaView 5.4.0 with OpenFOAM 4.1
  #1
New Member
 
Diego Ferrando
Join Date: Mar 2017
Location: Zaragoza
Posts: 19
Rep Power: 9
dferrando is on a distinguished road
Hi, foamers!

I am currently using OF 4.1 and paraview 5.0.1 but I want to use paraview 5.4 instead. I have been trying to upgrade paraview version with:
Code:
./makeParaview -version 5.4.0
but did not work.
I have downloaded the source files. I know I can use binary installer as a portable paraview, but I would like to be able to use paraFoam v5.4.0.

Can someboy help me? Please.

Thank you guys.

Diego.
dferrando is offline   Reply With Quote

Old   July 12, 2017, 09:37
Default
  #2
New Member
 
Li Jinlong
Join Date: Apr 2015
Posts: 8
Rep Power: 11
anydimenx is on a distinguished road
Hi, Diego.
In the directory OpenFOAM/OpenFOAM-4.1/etc/config.sh, there is a file named paraview.
In that file, you can find such a line:

export ParaView_VERSION=5.0.1

you can modify it as you want. And then download the corresponding paraview source files from the official website. Extract the directory from the compressed package and put it into ThirdParty-4.1 directory, then type the command in that directory in the terminal:
./makeParaView

It would work. Good luck!
anydimenx is offline   Reply With Quote

Old   July 13, 2017, 05:50
Default
  #3
New Member
 
Diego Ferrando
Join Date: Mar 2017
Location: Zaragoza
Posts: 19
Rep Power: 9
dferrando is on a distinguished road
Quote:
Originally Posted by anydimenx View Post
Hi, Diego.
In the directory OpenFOAM/OpenFOAM-4.1/etc/config.sh, there is a file named paraview.
In that file, you can find such a line:

export ParaView_VERSION=5.0.1

you can modify it as you want. And then download the corresponding paraview source files from the official website. Extract the directory from the compressed package and put it into ThirdParty-4.1 directory, then type the command in that directory in the terminal:
./makeParaView

It would work. Good luck!
Thanks for the help! Althought it seemed to work it has returned the next Error and it has stopped.

Code:
CMake Error at VTK/GUISupport/Qt/CMakeLists.txt:69 (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" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/diego/OpenFOAM/ThirdParty-4.1/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeOutput.log".
See also "/home/diego/OpenFOAM/ThirdParty-4.1/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeError.log".
dferrando is offline   Reply With Quote

Old   December 31, 2017, 12:29
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: You probably have solved this by now. If you are using Ubuntu, then you need to:
  1. Use the more recent ThirdParty 5.x folder, as well as the PVReader folder from OpenFOAM 5.x, in order for it to work properly with OpenFOAM 4.1.
  2. On Ubuntu, you must install Qt 4 and use the following command before building ParaView:
    Code:
    export QT_SELECT=qt4
__________________
wyldckat is offline   Reply With Quote

Old   June 21, 2019, 11:01
Default
  #5
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 dferrando View Post
Thanks for the help! Althought it seemed to work it has returned the next Error and it has stopped.

Code:
CMake Error at VTK/GUISupport/Qt/CMakeLists.txt:69 (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" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/diego/OpenFOAM/ThirdParty-4.1/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeOutput.log".
See also "/home/diego/OpenFOAM/ThirdParty-4.1/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeError.log".

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

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] ParaView 5.4.0 refuses to start SamuelPei ParaView 1 October 15, 2019 04:12
[OpenFOAM.org] Two different versions of ParaView with same OpenFOAM release FJSJ OpenFOAM Installation 2 July 23, 2017 06:48
[OpenFOAM.org] OpenFOAM 2.4 ParaView 4.1 compilation problem tubois OpenFOAM Installation 2 October 23, 2015 07:56
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55


All times are GMT -4. The time now is 06:00.