CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[] Error compiling paraview using MESA

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By zordiack

LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2019, 13:11
Default Error compiling paraview using MESA
Join Date: Jun 2016
Posts: 94
Rep Power: 8
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:

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

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


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
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

And the first error is
/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?
xuegy is offline   Reply With Quote

Old   December 3, 2019, 09:49
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 12
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:

 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
Senior Member
Join Date: Mar 2009
Posts: 227
Rep Power: 20
klausb will become famous soon enough
The problem still exists on AlmaLinux 9 (RHEL 9) with OpenFOAM v10 and ParaView-5.6.3:


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
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,969
Blog Entries: 45
Rep Power: 126
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:
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:
-make -install
so that it will continue from where it left off, instead of starting from zero.
wyldckat is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[] 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 07:31.