|
[Sponsors] |
[OpenFOAM.com] Error compiling paraview using MESA |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 30, 2019, 13:11 |
Error compiling paraview using MESA
|
#1 |
Senior Member
Join Date: Jun 2016
Posts: 102
Rep Power: 10 |
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 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 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.... Anyone knows how to fix it? Thanks. |
|
December 3, 2019, 09:49 |
|
#2 |
Member
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14 |
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/ BR, zordiack |
|
October 31, 2022, 08:13 |
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 |
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. |
|
November 14, 2022, 06:06 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
If your build already failed, then run the makeParaView command with the following additional options: Code:
-make -install
__________________
|
|
March 26, 2023, 11:54 |
|
#5 | |
Senior Member
Amin
Join Date: Oct 2013
Location: Germany
Posts: 397
Rep Power: 15 |
Quote:
You're a life saver Bruno! Thanks for your both hints |
||
|
|
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 |