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

[OpenFOAM.com] Ubuntu 16.04 OpenFOAM-v1706 ParaView Installation Error

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By kaszt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2017, 14:40
Default Ubuntu 16.04 OpenFOAM-v1706 ParaView Installation Error
  #1
New Member
 
Katherine
Join Date: Feb 2016
Posts: 20
Rep Power: 10
kaszt is on a distinguished road
I'm trying to build and install OpenFOAM from the source for Linux provided here http://openfoam.com/download/install-source.php. I'm following the build guide provided here http://openfoam.com/code/build-guide.php, but I am having issues with an error that occurs when I try to compile ParaView with the following commands:
Code:
cd $WM_THIRD_PARTY_DIR 
./makeParaView
The installation fails with the following message (I've clipped everything before the error in the interest of sanity...)
Code:
CMake Error at CMake/ParaViewQt.cmake:65 (find_package):
  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:203 (pv_find_package_qt)


-- Configuring incomplete, errors occurred!
See also "/home/fdrc/OpenFOAM/ThirdParty-v1706/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeOutput.log".
See also "/home/fdrc/OpenFOAM/ThirdParty-v1706/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeError.log".
I checked my QT5 build with QT creator, and the newest installation is Qt 5.6.1 (not Qt 5.5.1), but the path to Qt 5.6.1 is different. The path to Qt 5.6.1. is
Code:
/home/fdrc/Qt5.6.1/5.6/gcc_64/bin/qmake
whereas the path to Qt 5.5.1. is
Code:
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
I suspect that this is related to my issue, but I am not sure. I had tried to solve my problem following a similar solution posted here https://askubuntu.com/questions/9416...view-qt5-error, but upon trying to compile ParaView I received the same error as above.

I am stumped as to how to solve this problem, and any advice or help would be greatly appreciated!
kaszt is offline   Reply With Quote

Old   August 24, 2017, 09:31
Default
  #2
New Member
 
Stas Sergienko
Join Date: Aug 2017
Posts: 3
Rep Power: 9
stasserg is on a distinguished road
Try to use


Code:
./makeParaView -qmake /home/fdrc/Qt5.6.1/5.6/gcc_64/bin/qmake Qt5_DIR=/home/fdrc/Qt5.6.1/5.6/gcc_64/lib/Qt5
Hope it helps
stasserg is offline   Reply With Quote

Old   August 24, 2017, 12:23
Default
  #3
New Member
 
Katherine
Join Date: Feb 2016
Posts: 20
Rep Power: 10
kaszt is on a distinguished road
Thank you for your message; unfortunately I received the following error after running that command:

Code:
[ 90%] Linking CXX shared library ../../lib/libvtkpqCore-pv5.4.so
[ 90%] Built target pqCore
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Command exited with non-zero status 2
6016.25user 506.62system 14:22.40elapsed 756%CPU (0avgtext+0avgdata 1544348maxresident)k
64inputs+2424776outputs (0major+183168270minor)pagefaults 0swaps
Would you happen to have information on this error?
kaszt is offline   Reply With Quote

Old   August 25, 2017, 14:40
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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: There was a recent bug report about this here: https://bugs.openfoam.org/view.php?id=2673

The main problem was that using the pre-built version of Qt5 for Linux has an incompatible protobuf static library built into it, that doesn't work with ParaView 5.4.

Details on how to build with an existing pre-built installation of Qt5 are also on that report.
__________________
wyldckat is offline   Reply With Quote

Old   August 25, 2017, 19:01
Default
  #5
New Member
 
Katherine
Join Date: Feb 2016
Posts: 20
Rep Power: 10
kaszt is on a distinguished road
Thank you so much for your help - after reading the report I uninstalled Qt5 and used

Code:
export QT_SELECT=qt4
before running
Code:
./makeParaView
and doing so resulted in a successful installation. Thank you so much for the information and solution!
roth and wyldckat like this.
kaszt is offline   Reply With Quote

Reply

Tags
16.04, openfoam v1706+, paraview 5.4.0 qt, qt5


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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 06:34
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 02:43.