|
[Sponsors] |
[OpenFOAM.org] OF7 ParaView 5.6.0 compilation error qt5 (openSUSE 15.1) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 22, 2019, 12:05 |
OF7 ParaView 5.6.0 compilation error qt5 (openSUSE 15.1)
|
#1 |
New Member
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 7 |
I am trying to get my hands on OF7 but when I was trying to compile ParaView, I get this error:
Code:
Version information qt 5.9.3 version 5.6.0 major 5.6 build Release MISMATCH! specified 5.6.0 found Code:
CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5X11Extras" with any of the following names: Qt5X11ExtrasConfig.cmake qt5x11extras-config.cmake Code:
./makeParaview -qmake /usr/local/Qt-5.9.3/bin/qmake -python -mpi > log.makePV 2>&1 I have attached my log file alongside this thread. What's the solution for this? |
|
July 22, 2019, 20:33 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: I've started writing instructions for this at openfoamwiki.net here: https://openfoamwiki.net/index.php/I...SUSE_Leap_15.1 - I'm still testing it, but have gotten ParaView to start compiling without problems.
In step #2 are the commands for installing the necessary packages. No need to install Qt 5.9.3 as a side installation, given that Qt 5.9.7 is provided with openSUSE 15.1. edit: In step #9 are the commands needed for building ParaView...
__________________
Last edited by wyldckat; July 22, 2019 at 21:32. Reason: see "edit:" |
|
July 22, 2019, 22:53 |
|
#3 |
Member
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14 |
I just posted a procedure for building ParaView 5.6.0 with Qt5 for OpenFOAM-7 and for OpenFOAM-v1906 running under Ubuntu 18.04.
Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04 |
|
July 23, 2019, 21:28 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@gcengineer: openSUSE is a bit of different beast from Ubuntu... for example, I needed the fix for xmlpatterns that is provided here: https://build.opensuse.org/package/v...patch?expand=0 - this is because in openSUSE there is nothing similar to the "qt5-default" package on Ubuntu...
@mdhfiz: I've finished testing to build ParaView 5.6.0 and updated the wiki page accordingly: https://openfoamwiki.net/index.php/I...SUSE_Leap_15.1 As mentioned in the previous paragraph, I had to apply a fix to the code in order for things to fully work as intended. In the meantime, I'm leaving the machine running overnight, to see if it builds OpenFOAM 7 properly... edit: Built successfully. Last edited by wyldckat; July 23, 2019 at 23:40. Reason: see "edit:" |
|
July 24, 2019, 02:11 |
|
#5 |
New Member
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 7 |
@wyldckat it works fine, thanks bruno!
|
|
August 23, 2019, 05:29 |
Compilation error (vtkPVServerManagerDefaultPythonD)
|
#6 |
New Member
Mateus Dias Ribeiro
Join Date: Jun 2013
Location: Guaratinguetá, Brazil
Posts: 20
Rep Power: 13 |
Hello,
I'm using OpenSUSE Leap 15.0. I followed all the exact instructions proposed by @wyldckat but I'm still getting the following compilation error: Code:
[ 94%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkPVServerManagerDefaultPythonD.dir/vtkSMViewExportHelperPython.cxx.o [ 94%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkPVServerManagerDefaultPythonD.dir/vtkSMXYChartRepresentationInitializationHelperPython.cxx.o [ 94%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkPVServerManagerDefaultPythonD.dir/vtkPVServerManagerDefaultPythonInitImpl.cxx.o [ 94%] Linking CXX shared library ../../../lib/libvtkPVServerManagerDefaultPython27D-pv5.6.so [ 94%] Built target vtkPVServerManagerDefaultPythonD make: *** [Makefile:152: all] Error 2 real 18m35.794s user 124m56.524s sys 22m38.440s Does anyone know how to solve this problem? Best, Mateus |
|
August 25, 2019, 09:01 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: The actual error message in the build with Python is this:
Code:
[ 94%] Linking CXX shared library ../../lib/libvtkpqCore-pv5.6.so /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: ../../lib/libvtkpqWidgets-pv5.6.so.1: _edata: invalid version 21 (max 0) /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: ../../lib/libvtkpqWidgets-pv5.6.so.1: error adding symbols: bad value Code:
[ 90%] Linking CXX shared library ../../lib/libvtkpqCore-pv5.6.so /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: ../../lib/libvtkpqWidgets-pv5.6.so.1: _edata: invalid version 21 (max 0) /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: ../../lib/libvtkpqWidgets-pv5.6.so.1: error adding symbols: bad value This is really strange... OK, a bit of searching online and it might be a bug in binutils: https://gitlab.kitware.com/paraview/...uild/issues/99 What does the following command give you? Code:
ld --version
__________________
|
|
August 25, 2019, 09:31 |
|
#8 | |
New Member
Mateus Dias Ribeiro
Join Date: Jun 2013
Location: Guaratinguetá, Brazil
Posts: 20
Rep Power: 13 |
Quote:
This is what I got: Code:
GNU ld (GNU Binutils; openSUSE Leap 15.0) 2.31.1.20180828-lp150.5.3 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. Mateus |
||
August 25, 2019, 09:34 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick question: How many cores does your machine have and how much RAM?
I ask this because it could be due to not enough RAM... I had done a test run with 4 cores and 4GB of RAM inside a virtual machine, but had problems because it would crash due to not enough RAM... but I don't remember what was the error message it gave me... |
|
August 25, 2019, 09:43 |
|
#10 | |
New Member
Mateus Dias Ribeiro
Join Date: Jun 2013
Location: Guaratinguetá, Brazil
Posts: 20
Rep Power: 13 |
Quote:
However, I just checked and the current version I have already is the latest version. In the link you sent to me, they said they were able to compile downgrading binutils, instead of upgrading. I will try it and see what happens. Thanks, Mateus |
||
August 25, 2019, 11:35 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick note: The ld version I used on my VM was this:
Code:
2.31.1.20180828-lp151.2 Code:
2.31-lp151.2.29-x86_64 Oh... wait, you're using OpenSUSE 15.0... I don't remember if OpenSUSE has a clear upgrade path from 15.0 to 15.1... |
|
August 25, 2019, 13:19 |
|
#12 | ||
New Member
Mateus Dias Ribeiro
Join Date: Jun 2013
Location: Guaratinguetá, Brazil
Posts: 20
Rep Power: 13 |
Quote:
Code:
[100%] Building CXX object Plugins/StreamLinesRepresentation/CMakeFiles/StreamLinesRepresentation.dir/moc_StreamLinesRepresentation_Plugin.cpp.o [100%] Linking CXX shared library ../../lib/paraview-5.6/plugins/NonOrthogonalSource/libNonOrthogonalSource.so [100%] Built target NonOrthogonalSource /usr/lib64/libSM.so: undefined reference to `uuid_generate@UUID_1.0' /usr/lib64/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0' collect2: error: ld returned 1 exit status make[2]: *** [Applications/ParaView/CMakeFiles/paraview.dir/build.make:328: bin/paraview] Error 1 make[1]: *** [CMakeFiles/Makefile2:58555: Applications/ParaView/CMakeFiles/paraview.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Linking CXX shared library ../../lib/paraview-5.6/plugins/StreamLinesRepresentation/libStreamLinesRepresentation.so [100%] Built target StreamLinesRepresentation make: *** [Makefile:152: all] Error 2 So the solution that worked for me was to add the following code before the first include statement in the CMakeList.txt file: Quote:
Bruno, thank you for that step by step procedure! If it was hard with that, imagine if I didn't have had to begin with. And also for pointing out the issue with binutils! Best, Mateus |
|||
December 28, 2019, 19:16 |
Compile OF7 on Leap 15.1
|
#13 |
New Member
CFlr
Join Date: Feb 2018
Location: FRG
Posts: 5
Rep Power: 8 |
Following the excellent Instructions on openfoamwiki about the Installation procedure for OF7 on Leap 15.1, upgraded from Tumbleweed, the Installation went flawlessly, when two additional issues were fixed:
1. Paraview complained about a missing "asm/errno.h" file. This was due to the directory "/usr/include/asm" being initially empty and was fixed by a symlink to /usr/include/arch-x86/asm", which may differ for other cases. 2. OF7 complained about some missing "metis" declarations, using the system metis. Adding the directory "bin" to the third line in Nr. 6 of the Instructions echo "export METIS_ARCH_PATH=/usr/bin"... fixed this. Just my 2c. |
|
December 31, 2019, 11:50 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi CLF,
Many thanks for the information! But I'm a bit confused...
In addition, did you install the 32-bit or the 64-bit architecture of openSUSE? Or did you install both architectures? Best regards, Bruno
__________________
|
|
December 31, 2019, 12:28 |
|
#15 |
New Member
CFlr
Join Date: Feb 2018
Location: FRG
Posts: 5
Rep Power: 8 |
@wyldckat
Thanks for Your response. First of all, I want to thank You very much for the tremendous effort You undertook supporting OF. To Your Questions: I did 2.: "upgrade" from Tumbleweed-x86_64-Snapshot 20191207 to Leap 15.1-x86.64 Therefore, I am running a 64 bit System. However, compilation was done for 32 bit Integer support, following point 7 in openfoamwiki.net/Installation/Linux/OpenFOAM-7/openSUSE/Leap_15.1. Hoping, that this answers Your Questions. Sincerely, CLF |
|
January 1, 2020, 19:14 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi CLF,
You're welcome and many thanks! So my doubt here is that Tumbleweed is meant to be the bleeding edge development line of openSUSE and Leap is the stable development line. So from one perspective, it's a downgrade going from Tumbleweed to Leap, given that you must have went back on the versions for several of the packages made available in openSUSE. This to say that without testing this myself, I'm not sure if the bugs you've found and reported were due to Tumbleweed and not Leap 15.1. That said, I have seen openSUSE do some strange changes within the same version, so it's possible that Metis changed it's installation procedure within Leap 15.1 after I wrote those instructions on the wiki. I'll have to go through them once again, to check if anything/what changed. Best regards, Bruno |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Installation of ParaView 4.1.0 with OpenFOAM 2.3.0 on OpenSuse 13.2 | Hrushi | OpenFOAM Installation | 18 | May 27, 2015 11:54 |
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) | sfigato | OpenFOAM Installation | 22 | January 31, 2013 11:16 |
Paraview 3.14.1 + opensuse 12.2 (gcc 4.7.1 & qmake 4.8.1) SOLVED | pcaron | OpenFOAM Installation | 10 | September 28, 2012 14:59 |
[OpenFOAM] Installation problem with ParaView 3.8.0 on openSUSE 11.2 | aero_ | ParaView | 14 | August 2, 2010 19:13 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |