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

[OpenFOAM.com] Error compiling paraview using MESA

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By zordiack

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2019, 13:11
Default Error compiling paraview using MESA
  #1
Senior Member
 
Join Date: Jun 2016
Posts: 102
Rep Power: 10
xuegy is on a distinguished road
Hello all,

I'm trying to compile OpenFOAM v1906 in a CentOS 8 virtual machine. The OpenFOAM it self goes well(even easier than CentOS 7 thanks to the latest toolchain). However I can not compile paraview with MESA.

The command I used:

Code:
./makeParaView -python -mpi -mesa -mesa-include /usr/include/GL -mesa-lib /usr/lib64/libOSMesa.so -qt > log.makePV 2>&1
Here's the information

Code:
----
Python information:
    executable     : /usr/bin/python
    version        : 3.6m
    include path   : /usr/include/python3.6m
    library        : /lib64/libpython3.6m.so.1.0
Using qmake=/usr/bin/qmake-qt5

ParaView_SOURCE_DIR=/home/gux215/OpenFOAM/ThirdParty-v1906/ParaView-v5.6.0
ParaView_BUILD_DIR=/home/gux215/OpenFOAM/ThirdParty-v1906/build/linux64Gcc/ParaView-5.6.0
ParaView_DIR=/home/gux215/OpenFOAM/ThirdParty-v1906/platforms/linux64Gcc/ParaView-5.6.0

Build stages selected
---------------------
    -patch    true
    -config   true
    -make     true
    -install  true
---------------------
Features selected
    mesa      true
    mpi       true
    python    true
    qt        true
---------------------
Version information
    paraview  5.6.0
    major     5.6
    build     Release
    qt        5.11.1
---------------------
no patch found for paraview-5.6.0
Using cmake=/usr/bin/cmake
removing old build directory
    /home/gux215/OpenFOAM/ThirdParty-v1906/build/linux64Gcc/ParaView-5.6.0
----
Configuring paraview-5.6.0 (major version: 5.6)
    MPI    support : true
    Python support : true
    MESA   support : true
    GL2  rendering : true
    QT dev support : true
    Source         : /home/gux215/OpenFOAM/ThirdParty-v1906/ParaView-v5.6.0
    Build          : /home/gux215/OpenFOAM/ThirdParty-v1906/build/linux64Gcc/ParaView-5.6.0
    Target         : /home/gux215/OpenFOAM/ThirdParty-v1906/platforms/linux64Gcc/ParaView-5.6.0
    cmake          : /usr/bin/cmake
    Build suffix   : none
----

/usr/bin/cmake -DCMAKE_INSTALL_PREFIX=/home/gux215/OpenFOAM/ThirdParty-v1906/platforms/linux64Gcc/ParaView-5.6.0 -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON -DVTK_USE_X=OFF -DPARAVIEW_USE_MPI=ON -DPARAVIEW_ENABLE_PYTHON=ON -DPYTHON_INCLUDE_DIRS=/usr/include/python3.6m -DPYTHON_LIBRARY=/lib64/libpython3.6m.so.1.0 -DVTK_OPENGL_HAS_OSMESA=ON -DOSMESA_INCLUDE_DIR=/usr/include/GL -DOSMESA_LIBRARY=/usr/lib64/libOSMesa.so -DVTK_RENDERING_BACKEND=OpenGL2 -DPARAVIEW_BUILD_QT_GUI=ON -DPARAVIEW_QT_VERSION=5 -DQt5_DIR=/usr/lib64/cmake/Qt5 -DCMAKE_BUILD_TYPE=Release /home/gux215/OpenFOAM/ThirdParty-v1906/ParaView-v5.6.0
And the first error is
Code:
/bin/sh: line 0: cd: /home/gux215/OpenFOAM/ThirdParty-v1906/build/linux64Gcc/ParaView-5.6.0/Plugins/MOOSETools/doc: No such file or directory
make[2]: *** [Plugins/MOOSETools/CMakeFiles/MooseXfemClip.dir/build.make:78: Plugins/MOOSETools/doc/MooseXfemClip.qch] Error 1
make[1]: *** [CMakeFiles/Makefile2:55891: Plugins/MOOSETools/CMakeFiles/MooseXfemClip.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
I tried to google this error message but no result.

Anyone knows how to fix it?
Thanks.
xuegy is offline   Reply With Quote

Old   December 3, 2019, 09:49
Default
  #2
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
Hi, I recently stumbled on the same compilation error myself on CentOS 7. I think this is some kind of a bug in either ParaView, CMake or CentOS or some combination of those, I don't really know at this point.

However, as you can see CMake is complaining about missing /doc folders under specific ParaView plugin directories. For me there were two plugins that refused to compile, MOOSETools and SurfaceLIC.

As a quick and dirty fix that worked (at least for me) you can copy the /doc folders from source dir to build dir and it will resume compiling, like this:


Code:
 cp -R ParaView-v5.6.3/Plugins/SurfaceLIC/doc/ build/linux64Gcc/ParaView-v5.6.3/Plugins/SurfaceLIC/


 cp -R ParaView-v5.6.3/Plugins/MOOSETools/doc/ build/linux64Gcc/ParaView-v5.6.3/Plugins/MOOSETools/
You need to do this in ThirdParty root directory and you need to modify the paths according to your setup, but I hope you get the idea.

BR, zordiack
Yuusha and HPE like this.
zordiack is offline   Reply With Quote

Old   October 31, 2022, 08:13
Default Same on AlmaLinux 9 (RHEL 9) with OpenFOAM v10 and ParaView-5.6.3
  #3
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
The problem still exists on AlmaLinux 9 (RHEL 9) with OpenFOAM v10 and ParaView-5.6.3:

Fix:

1: After starting the installation with ./makeParaView wait until ParaView is downloaded

2: Copy the contents of the directory ThirdParty-10/ParaView-5.6.3/Plugins/MOOSETools to the corresponding directory in the build directory i.e. ThirdParty-10/build/linux64Gcc/ParaView-5.6.3/Plugins/MOOSETools

3: Do the same with the contents of the ParaView-5.6.3/Plugins/SurfaceLIC directory to the corresponding directory

Even so, the error refers to the missing /doc sub-directory, it`s necessary to copy the entire content of the MOOSETools and SurfaceLIC directories.

You can apply this fix while the ParaView installation runs as it takes a while to reach the point that causes the issue.
klausb is offline   Reply With Quote

Old   November 14, 2022, 06:06
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: I'm somewhat late to answering this, but the somewhat simpler fix is to run the following command:
Code:
sed  -i -e 's=\(arg_TABLE_OF_CONTENTS}")\)=\1\n  file(MAKE_DIRECTORY  "${arg_DESTINATION_DIRECTORY}")='  ParaView-5.6.3/CMake/ParaViewMacros.cmake
  • Note: This will only work if the ParaView source code package was already unpacked.

If your build already failed, then run the makeParaView command with the following additional options:
Code:
-make -install
so that it will continue from where it left off, instead of starting from zero.
__________________
wyldckat is offline   Reply With Quote

Old   March 26, 2023, 11:54
Default
  #5
Senior Member
 
amin.z's Avatar
 
Amin
Join Date: Oct 2013
Location: Germany
Posts: 397
Rep Power: 15
amin.z is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: I'm somewhat late to answering this, but the somewhat simpler fix is to run the following command:
Code:
sed  -i -e 's=\(arg_TABLE_OF_CONTENTS}")\)=\1\n  file(MAKE_DIRECTORY  "${arg_DESTINATION_DIRECTORY}")='  ParaView-5.6.3/CMake/ParaViewMacros.cmake
  • Note: This will only work if the ParaView source code package was already unpacked.

If your build already failed, then run the makeParaView command with the following additional options:
Code:
-make -install
so that it will continue from where it left off, instead of starting from zero.

You're a life saver Bruno!

Thanks for your both hints
amin.z 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] Paraview 5.4 in shell environment of5x - Segmentation fault (core dumped) dslbkxd OpenFOAM Installation 1 February 3, 2018 01:56
Installing OpenFoam on windows 7-64 Dadou OpenFOAM Installation 10 February 11, 2014 17:20
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) chrisb2244 OpenFOAM Installation 2 August 21, 2013 14:24
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 03:32
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 13:48.