<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello.</div><div><br></div><div>I need to compile ParaView 4.3.1 with MPI. I tried different settings but I can't get rid of this error:</div><div><br></div><div>/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)</div><div><br></div><div>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:</div><div>MPIEXEC:FILEPATH=/Programs/openmpi-1.8.4/build/bin/mpiexec</div><div>MPIEXEC_MAX_NUMPROCS:STRING=8</div><div>MPIEXEC_NUMPROC_FLAG:STRING=-np</div><div>MPIEXEC_POSTFLAGS:STRING=</div><div>MPIEXEC_PREFLAGS:STRING=</div><div>MPI_CXX_COMPILER:FILEPATH=/Programs/openmpi-1.8.4/build/bin/mpicxx</div><div>MPI_CXX_COMPILE_FLAGS:STRING=-Wl,-rpath  -Wl,/Programs/openmpi-1.8.4/build/lib/</div><div>MPI_CXX_INCLUDE_PATH:STRING=/Programs/openmpi-1.8.4/build/include/</div><div>MPI_CXX_LIBRARIES:STRING=-lmpi_cxx -L/Programs/openmpi-1.8.4/build/lib/</div><div>MPI_CXX_LINK_FLAGS:STRING=</div><div>MPI_C_COMPILER:FILEPATH=/Programs/openmpi-1.8.4/build/bin/mpicc</div><div>MPI_C_COMPILE_FLAGS:STRING=-Wl,-rpath  -Wl,/Programs/openmpi-1.8.4/build/lib/</div><div>MPI_C_INCLUDE_PATH:STRING=/Programs/openmpi-1.8.4/build/include/</div><div>MPI_C_LIBRARIES:STRING=-lmpi -L/Programs/openmpi-1.8.4/build/lib/</div><div>MPI_C_LINK_FLAGS:STRING=</div><div>MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND</div><div>MPI_Fortran_COMPILER:FILEPATH=/Programs/openmpi-1.8.4/build/bin/mpif90</div><div>MPI_Fortran_COMPILE_FLAGS:STRING=-Wl,-rpath  -Wl,/Programs/openmpi-1.8.4/build/lib/</div><div>MPI_Fortran_INCLUDE_PATH:STRING=/Programs/openmpi-1.8.4/build/include/</div><div>MPI_Fortran_LIBRARIES:STRING=-lmpi_mpifh  -L/Programs/openmpi-1.8.4/build/lib/</div><div>MPI_Fortran_LINK_FLAGS:STRING=</div><div>MPI_LIBRARY:FILEPATH=-lmpi_cxx -L/Programs/openmpi-1.8.4/build/lib</div><div>It's a copy from the Makefile without comments. Actually I used ccmake to configure and generate Makefile.</div><div><br></div><div>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.</div><div><br></div><div>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).</div><div><br></div><div>Please, help me to compile ParaView with OpenMPI.</div><div>Thanks.<br></div></div></div></div>