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

[OpenFOAM.org] OF7 ParaView 5.6.0 compilation error qt5 (openSUSE 15.1)

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 1 Post By wyldckat
  • 2 Post By wyldckat
  • 1 Post By mdhfiz
  • 1 Post By mateusdias89
  • 1 Post By CLF

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2019, 12:05
Default 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
mdhfiz is on a distinguished road
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
and also:

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
I was using this command and arguments to make paraview:

Code:
./makeParaview -qmake /usr/local/Qt-5.9.3/bin/qmake -python -mpi > log.makePV 2>&1
I am using OpenSUSE 15.1 btw.

I have attached my log file alongside this thread. What's the solution for this?
Attached Files
File Type: txt log.makePV.txt (15.7 KB, 13 views)
mdhfiz is offline   Reply With Quote

Old   July 22, 2019, 20:33
Default
  #2
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: 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...
mdhfiz likes this.
__________________

Last edited by wyldckat; July 22, 2019 at 21:32. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   July 22, 2019, 22:53
Default
  #3
Member
 
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14
gcengineer is on a distinguished road
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
gcengineer is offline   Reply With Quote

Old   July 23, 2019, 21:28
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
@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.
Daniel_Khazaei and mdhfiz like this.

Last edited by wyldckat; July 23, 2019 at 23:40. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   July 24, 2019, 02:11
Default
  #5
New Member
 
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 7
mdhfiz is on a distinguished road
@wyldckat it works fine, thanks bruno!
wyldckat likes this.
mdhfiz is offline   Reply With Quote

Old   August 23, 2019, 05:29
Default Compilation error (vtkPVServerManagerDefaultPythonD)
  #6
New Member
 
Mateus Dias Ribeiro
Join Date: Jun 2013
Location: Guaratinguetá, Brazil
Posts: 20
Rep Power: 13
mateusdias89 is on a distinguished road
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
Alternatively, I tried compiling without python flag but still got an error message. I'm attaching the log files here: https://drive.google.com/file/d/1QZy...ew?usp=sharing



Does anyone know how to solve this problem?


Best,

Mateus
mateusdias89 is offline   Reply With Quote

Old   August 25, 2019, 09:01
Default
  #7
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: 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
While the error without Python is this:
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
which is pretty much the same...

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
If it tells you that the version is 2.30. ... then that might the problem, in which case you need yo update your binutils package in your OpenSUSE installation.
__________________
wyldckat is offline   Reply With Quote

Old   August 25, 2019, 09:31
Default
  #8
New Member
 
Mateus Dias Ribeiro
Join Date: Jun 2013
Location: Guaratinguetá, Brazil
Posts: 20
Rep Power: 13
mateusdias89 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
While the error without Python is this:
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
which is pretty much the same...

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
If it tells you that the version is 2.30. ... then that might the problem, in which case you need yo update your binutils package in your OpenSUSE installation.
Thank you for your answer!

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.
I will upgrade it and try again. I will let you if I'm successful.

Mateus
mateusdias89 is offline   Reply With Quote

Old   August 25, 2019, 09:34
Default
  #9
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 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...
wyldckat is offline   Reply With Quote

Old   August 25, 2019, 09:43
Default
  #10
New Member
 
Mateus Dias Ribeiro
Join Date: Jun 2013
Location: Guaratinguetá, Brazil
Posts: 20
Rep Power: 13
mateusdias89 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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...
The machine has 6 cores (12 threads) and 32 GBs of ram. During the compilations I always had at least 20 GBs of ram available. So this is definitely not the issue.

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
mateusdias89 is offline   Reply With Quote

Old   August 25, 2019, 11:35
Default
  #11
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 note: The ld version I used on my VM was this:
Code:
 2.31.1.20180828-lp151.2
The binutils package version that is indicated by OpenSUSE's YaST2 is:
Code:
2.31-lp151.2.29-x86_64
It's possible you are using a version from another repository that is not the one meant for OpenSUSE 15.1?

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...
wyldckat is offline   Reply With Quote

Old   August 25, 2019, 13:19
Default
  #12
New Member
 
Mateus Dias Ribeiro
Join Date: Jun 2013
Location: Guaratinguetá, Brazil
Posts: 20
Rep Power: 13
mateusdias89 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick note: The ld version I used on my VM was this:
Code:
 2.31.1.20180828-lp151.2
The binutils package version that is indicated by OpenSUSE's YaST2 is:
Code:
2.31-lp151.2.29-x86_64
It's possible you are using a version from another repository that is not the one meant for OpenSUSE 15.1?

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...
Thank you for the info! This is the version I had before. I ended up having to downgrade binutils to version 2.29.1. After that, I was able to compile it until getting another error, but this time at 100%:

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
I googled for a solution and found this: https://discourse.paraview.org/t/pv-...nd-uuid/884/19

So the solution that worked for me was to add the following code before the first include statement in the CMakeList.txt file:

Quote:
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -luuid")
And this did the job for me! I'm putting all the details here, so that hopefully someone with the same issue can find this page after a quick google search.

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
wyldckat likes this.
mateusdias89 is offline   Reply With Quote

Old   December 28, 2019, 19:16
Default Compile OF7 on Leap 15.1
  #13
CLF
New Member
 
CFlr
Join Date: Feb 2018
Location: FRG
Posts: 5
Rep Power: 8
CLF is on a distinguished road
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.
gcengineer likes this.
CLF is offline   Reply With Quote

Old   December 31, 2019, 11:50
Default
  #14
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
Hi CLF,

Many thanks for the information!
But I'm a bit confused...
  1. Did you upgrade from 15.1 to Tumbleweed and/or did you follow the installation instructions directly in Tumbleweed?
  2. Or did you upgrade from Tumbleweed into 15.1?

In addition, did you install the 32-bit or the 64-bit architecture of openSUSE? Or did you install both architectures?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 31, 2019, 12:28
Default
  #15
CLF
New Member
 
CFlr
Join Date: Feb 2018
Location: FRG
Posts: 5
Rep Power: 8
CLF is on a distinguished road
@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
CLF is offline   Reply With Quote

Old   January 1, 2020, 19:14
Default
  #16
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
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
wyldckat 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.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


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