|
[Sponsors] |
[OpenFOAM.com] Compiling Paraview 5.6.3 with the python option, Ubuntu 20.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 20, 2020, 05:07 |
Compiling Paraview 5.6.3 with the python option, Ubuntu 20.04
|
#1 |
New Member
Craig White
Join Date: Nov 2013
Posts: 11
Rep Power: 13 |
Hello,
I am having some trouble getting Paraview 5.6.3 to compile on Ubuntu 20.04. This is the version packed in the v2006 ThirdParty directory. If I use the command Code:
./makeParaview -mpi > log.makePV 2>&1 Ideally I want it compiled with python, so I am trying Code:
/makeParaView -mpi -python3 -python-lib /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 > log.makePV 2>&1 Code:
make[2]: *** [VTK/ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/build.make:63: VTK/ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:19613: VTK/ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/all] Error 2 Is anyone able to offer a solution? Thank you! Last edited by DSMC123; November 20, 2020 at 05:19. Reason: Log file was too large to upload, looking for an alternative |
|
November 20, 2020, 13:16 |
|
#2 |
New Member
Craig White
Join Date: Nov 2013
Posts: 11
Rep Power: 13 |
I have managed to fix this. The problem was that mpi4py can't compile with the version of OpenMPI provided with Ubuntu 20.04 (4.0.3) until a small change is made to the file ParaView-v5.6.3/VTK/ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/config/openmpi.h
You need to add a new entry towards the bottom of the file: Code:
#ifOMPI_NUMVERSION >= 40000 #undefPyMPI_HAVE_MPI_LB #undefPyMPI_HAVE_MPI_UB #endif/* OMPI >= 4.0.0 */ So that it matches the file here: https://bitbucket.org/mpi4py/mpi4py/...nfig/openmpi.h |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Difficulty in calculating angular velocity of Savonius turbine simulation | alfaruk | CFX | 14 | March 17, 2017 07:08 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 02:27 |
Error in Two phase (condensation) modeling | adilsyyed | CFX | 15 | June 24, 2015 20:42 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |