<div dir="ltr"><div>Menno Deij - van Rijswijk,</div><div>Great thanks! Your suggestions worked perfectly! Now I have ParaView 4.3.1 compiled with MPI and Catalyst for co-processing.</div><div><br></div><div class="gmail_extra"><div class="gmail_quote">2015-08-18 14:04 GMT+03:00 Deij-van Rijswijk, Menno <span dir="ltr"><<a href="mailto:M.Deij@marin.nl" target="_blank">M.Deij@marin.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Hi Andrew,<br>
<br>
I checked my CMakeCache to see the variables of MPI and I think you need to change the MPI_LIBRARY:FILEPATH to<br>
MPI_LIBRARY:FILEPATH=/Programs/openmpi-1.8.4/build/lib/libmpi_cxx.so<br>
<br>
That is, directly use the full path to the mpi shared library, instead of using the link flag.<br>
Also, change the other LIBRARIES variables. In my case there are multiple libraries:<br>
<br>
MPI_C_LIBRARIES:STRING=<path>libmpi.so<br>
MPI_CXX_LIBRARIES:STRING=<path>libmpi_cxx.so;<path>libmpi.so<br>
MPI_Fortran_LIBRARIES:STRING=<path>libmpi_usempif08.so;<path>libmpi_usempi_ignore_tkr.so;<path>libmpi_mpifh.so;<path>libmpi.so<br>
<br>
Where <path> should expand to your install path, which is /Programs/openmpi-1.8.4/build/lib/<br>
<br>
Good luck and best wishes,<br>
<br>
<br>
Menno Deij - van Rijswijk<br>
<br>
<br>
From: ParaView [mailto:<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a>] On Behalf Of Andrew<br>
Sent: dinsdag 18 augustus 2015 12:51<br>
To: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
Subject: [Paraview] Compiling ParaView 4.3.1 with OpenMPI<br>
<div><div class="h5"><br>
Hello.<br>
<br>
I need to compile ParaView 4.3.1 with MPI. I tried different settings but I can't get rid of this error:<br>
<br>
/usr/bin/ld: warning: libmpi_cxx.so.1, needed by ../lib/libvtkPVServerManagerApplication-pv4.3.so.1, not found (try using -rpath or -rpath-link)<br>
/usr/bin/ld: warning: libmpi.so.1, needed by ../lib/libvtkPVServerManagerApplication-pv4.3.so.1, not found (try using -rpath or -rpath-link)<br>
<br>
I use OpenMPI 1.8.4 that was successfuly compiled and installed in /Programs/openmpi-1.8.4/build (not into system directories, I need to have programs installed into custom directories). So I set the following options for MPI:<br>
MPIEXEC:FILEPATH=/Programs/openmpi-1.8.4/build/bin/mpiexec<br>
MPIEXEC_MAX_NUMPROCS:STRING=8<br>
MPIEXEC_NUMPROC_FLAG:STRING=-np<br>
MPIEXEC_POSTFLAGS:STRING=<br>
MPIEXEC_PREFLAGS:STRING=<br>
MPI_CXX_COMPILER:FILEPATH=/Programs/openmpi-1.8.4/build/bin/mpicxx<br>
MPI_CXX_COMPILE_FLAGS:STRING=-Wl,-rpath  -Wl,/Programs/openmpi-1.8.4/build/lib/<br>
MPI_CXX_INCLUDE_PATH:STRING=/Programs/openmpi-1.8.4/build/include/<br>
MPI_CXX_LIBRARIES:STRING=-lmpi_cxx -L/Programs/openmpi-1.8.4/build/lib/<br>
MPI_CXX_LINK_FLAGS:STRING=<br>
MPI_C_COMPILER:FILEPATH=/Programs/openmpi-1.8.4/build/bin/mpicc<br>
MPI_C_COMPILE_FLAGS:STRING=-Wl,-rpath  -Wl,/Programs/openmpi-1.8.4/build/lib/<br>
MPI_C_INCLUDE_PATH:STRING=/Programs/openmpi-1.8.4/build/include/<br>
MPI_C_LIBRARIES:STRING=-lmpi -L/Programs/openmpi-1.8.4/build/lib/<br>
MPI_C_LINK_FLAGS:STRING=<br>
MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND<br>
MPI_Fortran_COMPILER:FILEPATH=/Programs/openmpi-1.8.4/build/bin/mpif90<br>
MPI_Fortran_COMPILE_FLAGS:STRING=-Wl,-rpath  -Wl,/Programs/openmpi-1.8.4/build/lib/<br>
MPI_Fortran_INCLUDE_PATH:STRING=/Programs/openmpi-1.8.4/build/include/<br>
MPI_Fortran_LIBRARIES:STRING=-lmpi_mpifh  -L/Programs/openmpi-1.8.4/build/lib/<br>
MPI_Fortran_LINK_FLAGS:STRING=<br>
MPI_LIBRARY:FILEPATH=-lmpi_cxx -L/Programs/openmpi-1.8.4/build/lib<br>
It's a copy from the Makefile without comments. Actually I used ccmake to configure and generate Makefile.<br>
<br>
Compilation is normal until 98%. Then a number of errors appear because the linker cannot find MPI libraries (libmpi.so.1 and libmpi_cxx.so.1). I verified that these files are in "/Programs/openmpi-1.8.4/build/lib/" (searched with file manager to avoid typos, files are there). The interesting moment is that libmpi.so and libmpi_cxx.so are found (I don't point to *.so files, point only to lib directory). But then linker don't want to follow symlinks (libmpi.so => libmpi.so.1), if I get it right.<br>
<br>
I attached CMakeCache.txt file. If it's needed, I will post other details (Makefile + CMakeCache are too big for 500 KB limit of mailing list).<br>
<br>
Please, help me to compile ParaView with OpenMPI.<br>
Thanks.<br>
<br>
<br>
</div></div>dr. ir. Menno A. Deij-van Rijswijk<br>
Researcher / Software Engineer<br>
Maritime Simulation & Software Group<br>
E mailto:<a href="mailto:M.Deij@marin.nl">M.Deij@marin.nl</a><br>
T +31 317 49 35 06<br>
<br>
<br>
MARIN<br>
2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands<br>
T +31 317 49 39 11, F +31 317 49 32 45, I <a href="http://www.marin.nl" target="_blank" rel="noreferrer">www.marin.nl</a><br>
<br>
</blockquote></div><br></div></div>