|
[Sponsors] |
[General] Building Paraview 4.1.0 with MPI and Python support |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 3, 2014, 15:45 |
Building Paraview 4.1.0 with MPI and Python support
|
#1 |
New Member
Join Date: Jan 2013
Location: Edmonton, AB
Posts: 9
Rep Power: 13 |
Hello All,
I was attempting to get Paraview 4.1.0 to compile with MPI plus Python support on ubuntu 12.04 64 bit. I am able to compile Paraview 4.1.0 with only MPI support or with only python support, but it fails when I try to have both. The error that it complains about is an undefined reference to a few dlopen functions right when it is building mpi4py modules. I am currently waiting for it to compile again with the additional Code:
CMAKE_MODULE_LINKER_FLAGS='-ldl'
|
|
February 5, 2014, 10:20 |
|
#2 |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
Hi,
did you find a solution to the problem? I'm having the same problem right now for openSUSE. The build for 12.2 (openmpi 1.5.4) works, the one for 13.1 (openmpi 1.7.2) fails with the same error. :/ Code:
[ 870s] CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o: In function `OPENMPI_dlopen_libmpi': [ 870s] MPI.c:(.text+0x6eb1): undefined reference to `dlopen' [ 870s] MPI.c:(.text+0x6ecd): undefined reference to `dlopen' [ 870s] MPI.c:(.text+0x6ee3): undefined reference to `dlopen' [ 870s] MPI.c:(.text+0x6ef9): undefined reference to `dlopen' [ 870s] CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o: In function `__pyx_pf_6mpi4py_3MPI_16Init': [ 870s] MPI.c:(.text+0x1349b): undefined reference to `dlopen' [ 870s] CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o:MPI.c:(.text+0x135bd): more undefined references to `dlopen' follow [ 870s] collect2: error: ld returned 1 exit status [ 870s] make[2]: *** [lib/site-packages/mpi4py/MPI.so] Error 1 [ 870s] make[1]: *** [ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/all] Error 2 [ 870s] make[1]: *** Waiting for unfinished jobs.... |
|
February 6, 2014, 06:20 |
|
#3 |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
I brought up the topic on the paraview mailing-list:
http://www.paraview.org/pipermail/pa...ry/030484.html A quick-and-dirty workaround is also given there, and hopefully the developers will come up with a proper fix. -Armin |
|
March 16, 2014, 11:12 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
@Armin: Many thanks for reporting this!
For future readers, here are the steps for quickly patching the source code for fixing this issue: Code:
cd $WM_THIRD_PARTY_DIR/ParaView-4.1.0 wget http://www.paraview.org/pipermail/paraview/attachments/20140210/464496cc/attachment.bin -O Fix.patch patch -p1 < Fix.patch cd .. The file downloaded by wget is given here: http://www.paraview.org/pipermail/pa...ry/030517.html |
|
September 10, 2014, 09:57 |
|
#5 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Hi All,
I am trying to compile paraview - along with OpenFOAM - with the Python support. Which is the option I have to use, during the compilation? Thanks a lot, Samuele. |
|
September 10, 2014, 10:08 |
|
#6 |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
Here are the options I use to build the openSUSE packages with MPI and python support:
https://build.opensuse.org/package/v...araview41.spec On openSUSE these are "1 click install" packages: http://software.opensuse.org/package/paraview41 |
|
September 10, 2014, 10:41 |
|
#7 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
This is my makeParaview4 file:
Code:
# USER OPTIONS: # ~~~~~~~~~~~~~ # MPI support: withMPI=false MPI_MAX_PROCS=4 # Python support: # note: script will try to determine the appropriate python library. # If it fails, specify the path using the PYTHON_LIBRARY variable withPYTHON=true # PYTHON_LIBRARY="" PYTHON_LIBRARY="/usr/lib/libpython2.7.so.1.0" # MESA graphics support: withMESA=false MESA_INCLUDE="/usr/include/GL" MESA_LIBRARY="/usr/lib64/libOSMesa.so" # extra QT gui support (useful for some third party apps) withQT=true # Set the path to the Qt-4.5 (or later) qmake if the system Qt is older QMAKE_PATH="" # Set the path to cmake CMAKE_PATH="" Code:
. . . -- Check if system supports 64 bit streams -- Check if system supports 64 bit streams - yes CMake Error at VTK/CMake/FindPythonLibs.cmake:112 (FILE): file STRINGS file "/usr/include/python2.7/patchlevel.h" cannot be read. Call Stack (most recent call first): VTK/CMake/vtkPythonWrapping.cmake:1 (find_package) VTK/Wrapping/Python/CMakeLists.txt:2 (include) CMake Error at VTK/CMake/FindPythonLibs.cmake:112 (FILE): file STRINGS file "/usr/include/python2.7/patchlevel.h" cannot be read. Call Stack (most recent call first): VTK/CMake/vtkPythonWrapping.cmake:1 (find_package) Utilities/PythonInitializer/CMakeLists.txt:16 (include) -- Plugin: VaporPlugin - Plugin to read NCAR VDR files : Disabled -- Plugin: VRPlugin - Virtual Reality Devices and Interactor styles : Disabled -- Plugin: InSituExodus - Experimental memory-conserving Exodus II file reader. : Disabled -- Plugin: StreamingParticles - Render Particles with Streaming : Enabled -- Plugin: AdiosReader - Reader for *.bp files based on Adios : Disabled -- Plugin: SciberQuestToolKit - SciberQuestToolKit - Domain specific visualization tools for magnetospheric sciences. : Enabled CMake Error at VTK/CMake/FindPythonLibs.cmake:112 (FILE): file STRINGS file "/usr/include/python2.7/patchlevel.h" cannot be read. Call Stack (most recent call first): CMake/ParaViewPlugins.cmake:1241 (find_package) Plugins/SciberQuestToolKit/CMakeLists.txt:26 (pv_process_modules) -- Plugin: H5PartReader - Reader for h5part files : Enabled -- Plugin: SLACTools - SLAC Tools : Enabled -- Plugin: EyeDomeLighting - Add 3D View with eye-dome Lighting support : Enabled CMake Error at VTK/CMake/FindPythonLibs.cmake:112 (FILE): file STRINGS file "/usr/include/python2.7/patchlevel.h" cannot be read. Call Stack (most recent call first): CMake/ParaViewPlugins.cmake:1241 (find_package) Plugins/EyeDomeLighting/CMakeLists.txt:17 (pv_process_modules) -- Plugin: ArrowGlyph - Glyph with customizable Arrows : Enabled -- Plugin: Moments - Filters for Flux and Circulation Fields : Enabled -- Plugin: GMVReader - Reader for binary or ASCII files stored in General Mesh Viewer file format : Enabled -- Performing Test Wno-unused-result -- Performing Test Wno-unused-result - Success -- Plugin: NonOrthogonalSource - Non Orthogonal Source code sample : Enabled -- Plugin: QuadView - Add a Quad view to explore data by slicing it along 3 axis. : Enabled -- Plugin: CoProcessingScriptGenerator - Plugins for creating co-processing Python scripts : Enabled -- Plugin: PrismPlugin - Filters for Flux and Circulation Fields : Enabled -- Plugin: TemporalParallelismScriptGenerator - Plugin for creating Python spatio-temporal processing scripts : Disabled -- Plugin: AnalyzeNIfTIIO - Reader/Writer for Analyze and NifTI files : Enabled -- Plugin: ForceTime - Override time requests : Disabled -- Plugin: PacMan - Testing plugin : Enabled -- Plugin: SierraPlotTools - Sierra Plotting Tools : Enabled -- Plugin: PointSprite - Point Sprites : Enabled CMake Error at VTK/CMake/FindPythonLibs.cmake:112 (FILE): file STRINGS file "/usr/include/python2.7/patchlevel.h" cannot be read. Call Stack (most recent call first): CMake/ParaViewPlugins.cmake:1241 (find_package) Plugins/PointSprite/CMakeLists.txt:30 (pv_process_modules) -- Plugin: UncertaintyRendering - Add uncertainty visualization support : Enabled -- Plugin: MantaView - Manta Ray-Cast View : Disabled -- Plugin: MobileRemoteControl - Use a mobile device to view the ParaView scene and control the camera. : Enabled -- Plugin: PythonQtPlugin - PythonQt Plugin : Disabled -- Plugin: SurfaceLIC - Add Surface-LIC vector visualization support : Enabled -- Configuring incomplete, errors occurred! Starting make make: *** No targets specified and no makefile found. Stop. Command exited with non-zero status 2 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 1100maxresident)k 0inputs+0outputs (0major+326minor)pagefaults 0swaps Done make Installing ParaView to /home/samuele/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 make: *** No rule to make target `install'. Stop. --- Installation complete for paraview-4.1.0 Set environment variables: export ParaView_DIR=/home/samuele/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 export PATH=$ParaView_DIR/bin:$PATH export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1 --- Done My OS is Debian Wheezy Last edited by samiam1000; September 10, 2014 at 12:18. Reason: Missing info |
|
September 21, 2014, 13:40 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Samuele: If I'm not mistaken, on Debian you need to install the package "python-dev": Code:
sudo apt-get install python-dev Bruno
__________________
|
|
October 29, 2014, 18:48 |
|
#9 |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
Hi Bruno,
I tried to build ParaView on centos 7 and met the same problem in #1. I tried your method in #4. But it still won't work and gives an error like: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: MPI_EXTRA_LIBRARY (ADVANCED) Qi |
|
January 24, 2015, 13:32 |
|
#10 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
July 27, 2017, 08:38 |
paraview 5.0.1 in OF1612+
|
#11 |
Senior Member
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 155
Rep Power: 17 |
Could you tell us how to progress with OF1612+?
The same problem arises when installing paraview 5.0.1. Best Regards |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Trouble building Paraview from ThirdPartyv1812 folder with python and mpi support | praphul | OpenFOAM Installation | 4 | April 8, 2019 01:26 |
[OpenFOAM.org] ParaView Installation: Python problem | KateEisenhower | OpenFOAM Installation | 5 | August 24, 2017 05:27 |
[OpenFOAM.org] OF 2.3.0 compiling Paraview with "-python -mpi" | bender.rodriguez | OpenFOAM Installation | 5 | December 14, 2014 12:27 |
How to get Python Shell into ParaView 3.8.1? | blaise | OpenFOAM Installation | 3 | July 24, 2012 04:58 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 07:21 |