[Paraview] compiling paraview against mpich2

Joshua Wu joshuawu at lanl.gov
Wed Dec 16 10:18:09 EST 2009


It seems like you need to fix two things, just like what berk said, your
LD_LIBRARY_PATH is not set correctly. You need to add the path to the mpi
library to LD_LIBRARY_PATH, for example my LD_LIBRARY_PATH has
/usr/voltaire/mpi/lib

if that still doesn't work, its most likely that the cmake configuration
didn't get all the libraries you need, according to your error messages,
the easiest way is to locate the libraries it can't find and manually add
them to your 'MPI_EXTRA_LIBRARY' variable. It should work eventually

-Josh
> That's strange. Are you positive that you set LD_LIBRARY_PATH
> correctly and you also exported the variable (assuming you are using
> bash/ksh/zsh)?
>
> -berk
>
> On Tue, Dec 15, 2009 at 11:52 PM, Huan Sun <hsun at math.psu.edu> wrote:
>>
>> Hi,
>>
>> Thanks for the help. Somehow cmake didn't find the correct mpiexec -- it
>> did find the libmpichcxx.so. I fixed the mpiexec, compiled and
>> installed.
>> But when i ran ./pvserver --ldd (results attached below)
>> It seems that the paraview didn't find libmpichcxx.
>> I installed mpich2 under my local account and put the lib path into
>> LD_LIBRARY_PATH.
>> I wonder if you could help me figure out what happened.
>>
>> Thanks!
>>
>> Huan
>>
>>
>>
>>
>>        linux-vdso.so.1 =>  (0x00007fff0db73000)
>>        libvtkPVServerCommon.so
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkPVServerCommon.so
>> (0x00007f0228533000)
>>        libvtkPVFilters.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkPVFilters.so
>> (0x00007f0227f23000)
>>        libvtkPVServerManager.so
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkPVServerManager.so
>> (0x00007f02276ef000)
>>        libvtkPVFiltersCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkPVFiltersCS.so
>> (0x00007f022741e000)
>>        libvtkPVServerCommonCS.so
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkPVServerCommonCS.so
>> (0x00007f02271d3000)
>>        libvtkInfovisCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkInfovisCS.so
>> (0x00007f0226f52000)
>>        libKWCommon.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libKWCommon.so
>> (0x00007f0226d3a000)
>>        libvtkPVCommandOptions.so
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkPVCommandOptions.so
>> (0x00007f0226b04000)
>>        libvtkXdmfCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkXdmfCS.so
>> (0x00007f02268f7000)
>>        libvtkPVPythonInterpretor.so
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkPVPythonInterpretor.so
>> (0x00007f02266e8000)
>>        libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0
>> (0x00007f0226378000)
>>        libutil.so.1 => /lib/libutil.so.1 (0x00007f0226175000)
>>        libicet_mpi.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libicet_mpi.so
>> (0x00007f0225f72000)
>>        libicet_strategies.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libicet_strategies.so
>> (0x00007f0225d6a000)
>>        libicet.so =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libicet.so
>> (0x00007f0225b58000)
>>        libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007f02258d4000)
>>        libvtkHybridCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkHybridCS.so
>> (0x00007f0225625000)
>>        libvtkParallelCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkParallelCS.so
>> (0x00007f0225390000)
>>        libvtkVolumeRenderingCS.so
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkVolumeRenderingCS.so
>> (0x00007f0225145000)
>>        libvtkVolumeRendering.so.pv3.6
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkVolumeRendering.so.pv3.6
>> (0x00007f02248f0000)
>>        libvtkWidgetsCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkWidgetsCS.so
>> (0x00007f0224618000)
>>        libvtkRenderingCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkRenderingCS.so
>> (0x00007f02242be000)
>>        libvtkGenericFilteringCS.so
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkGenericFilteringCS.so
>> (0x00007f02240a3000)
>>        libvtkGenericFiltering.so.pv3.6
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkGenericFiltering.so.pv3.6
>> (0x00007f0223e5b000)
>>        libvtkGraphicsCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkGraphicsCS.so
>> (0x00007f0223a85000)
>>        libvtkImagingCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkImagingCS.so
>> (0x00007f02237d2000)
>>        libvtkIOCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkIOCS.so
>> (0x00007f02234da000)
>>        libvtkFilteringCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkFilteringCS.so
>> (0x00007f022314d000)
>>        libvtkCommonCS.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkCommonCS.so
>> (0x00007f0222e1b000)
>>        libvtkClientServer.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkClientServer.so
>> (0x00007f0222bc2000)
>>        libvtkXdmf.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkXdmf.so
>> (0x00007f022293c000)
>>        libXdmf.so =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libXdmf.so
>> (0x00007f02226bd000)
>>        libvtkhdf5.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkhdf5.so
>> (0x00007f022228d000)
>>        libQtChart.so
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libQtChart.so
>> (0x00007f0221fbf000)
>>        libQtXml.so.4
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libQtXml.so.4
>> (0x00007f0221d52000)
>>        libQVTK.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libQVTK.so.pv3.6
>> (0x00007f0221ab3000)
>>        libvtkQtChart.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkQtChart.so.pv3.6
>> (0x00007f022176e000)
>>        libvtkViews.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkViews.so.pv3.6
>> (0x00007f0221490000)
>>        libvtkInfovis.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkInfovis.so.pv3.6
>> (0x00007f022101a000)
>>        libvtkWidgets.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkWidgets.so.pv3.6
>> (0x00007f0220b63000)
>>        libvtkHybrid.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkHybrid.so.pv3.6
>> (0x00007f022053a000)
>>        libvtkParallel.so.pv3.6
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkParallel.so.pv3.6
>> (0x00007f02200c3000)
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f021fea7000)
>>        libvtkexoIIc.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkexoIIc.so.pv3.6
>> (0x00007f021fc44000)
>>        libvtkRendering.so.pv3.6
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkRendering.so.pv3.6
>> (0x00007f021f3fb000)
>>        libvtkIO.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkIO.so.pv3.6
>> (0x00007f021ec00000)
>>        libvtkDICOMParser.so.pv3.6
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkDICOMParser.so.pv3.6
>> (0x00007f021e9bd000)
>>        libvtkNetCDF.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkNetCDF.so.pv3.6
>> (0x00007f021e777000)
>>        libvtkmetaio.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkmetaio.so.pv3.6
>> (0x00007f021e490000)
>>        libvtksqlite.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtksqlite.so.pv3.6
>> (0x00007f021e21b000)
>>        libvtkpng.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkpng.so.pv3.6
>> (0x00007f021dfe9000)
>>        libvtktiff.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtktiff.so.pv3.6
>> (0x00007f021dd7a000)
>>        libvtkjpeg.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkjpeg.so.pv3.6
>> (0x00007f021db4d000)
>>        libvtkexpat.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkexpat.so.pv3.6
>> (0x00007f021d91d000)
>>        libQtGui.so.4
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libQtGui.so.4
>> (0x00007f021cec0000)
>>        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007f021cc9b000)
>>        libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f021ca92000)
>>        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f021c889000)
>>        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f021c682000)
>>        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007f021c478000)
>>        libXinerama.so.1 => /usr/lib/libXinerama.so.1
>> (0x00007f021c276000)
>>        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f021c071000)
>>        libfreetype.so.6 => /usr/lib/libfreetype.so.6
>> (0x00007f021bdf4000)
>>        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1
>> (0x00007f021bbc3000)
>>        libQtSql.so.4
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libQtSql.so.4
>> (0x00007f021b986000)
>>        libQtCore.so.4
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libQtCore.so.4
>> (0x00007f021b5ce000)
>>        libz.so.1 => /usr/lib/libz.so.1 (0x00007f021b3b7000)
>>        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0
>> (0x00007f021b1b3000)
>>        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
>> (0x00007f021aef3000)
>>        libdl.so.2 => /lib/libdl.so.2 (0x00007f021acef000)
>>        libvtkGraphics.so.pv3.6
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkGraphics.so.pv3.6
>> (0x00007f021a1b0000)
>>        libvtkverdict.so.vtk5.5.0
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkverdict.so.vtk5.5.0
>> (0x00007f0219f79000)
>>        libvtkImaging.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkImaging.so.pv3.6
>> (0x00007f02198c6000)
>>        libvtkFiltering.so.pv3.6
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkFiltering.so.pv3.6
>> (0x00007f02191fc000)
>>        libvtkCommon.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkCommon.so.pv3.6
>> (0x00007f0218bc9000)
>>        libvtksys.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtksys.so.pv3.6
>> (0x00007f0218968000)
>>        libm.so.6 => /lib/libm.so.6 (0x00007f02186e7000)
>>        libvtkftgl.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkftgl.so.pv3.6
>> (0x00007f02184d8000)
>>        libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f0218300000)
>>        libvtkfreetype.so.pv3.6
>> =>
>> /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkfreetype.so.pv3.6
>> (0x00007f0218063000)
>>        libXt.so.6 => /usr/lib/libXt.so.6 (0x00007f0217dff000)
>>        libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f0217bf7000)
>>        libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f02179dc000)
>>        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f02176d9000)
>>        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f02174c8000)
>>        librt.so.1 => /lib/librt.so.1 (0x00007f02172bf000)
>>        libvtklibxml2.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtklibxml2.so.pv3.6
>> (0x00007f0216f14000)
>>        libvtkzlib.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkzlib.so.pv3.6
>> (0x00007f0216cfb000)
>>        libvtkalglib.so.pv3.6
>> => /ima/imavisitor/hsun/paraview/lib/paraview-3.6/libvtkalglib.so.pv3.6
>> (0x00007f0216ade000)
>>        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f02167d3000)
>>        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f02165c5000)
>>        libc.so.6 => /lib/libc.so.6 (0x00007f0216263000)
>>        /lib64/ld-linux-x86-64.so.2 (0x00007f0228899000)
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libmpichcxx.so.1.2 => not found
>>        libmpich.so.1.2 => not found
>>        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f021603f000)
>>        libpcre.so.3 => /usr/lib/libpcre.so.3 (0x00007f0215e19000)
>>        libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x00007f0214af3000)
>>        libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1
>> (0x00007f0228953000)
>>        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0
>> (0x00007f02148f2000)
>>        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f02146d7000)
>>        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f02144d5000)
>>        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f02142d0000)
>>
>>
>>
>>
>> On Tue, 2009-12-15 at 20:34 -0500, Berk Geveci wrote:
>>> Here is a very obscure trick. First, delete all CMake variables that
>>> start with MPI_. To do this in ccmake, you have to first switch to
>>> advanced view, file the MPI_ variables and hit 'd' next to each one to
>>> delete them. Next, set the MPI_COMPILER to the mpicxx that is in your
>>> MPI version. Next configure. CMake should pick all the right MPI
>>> settings.
>>>
>>> -berk
>>>
>>> On Tue, Dec 15, 2009 at 5:57 PM, David E DeMarle
>>> <dave.demarle at kitware.com> wrote:
>>> > You need to link to both the mpi and mpicxx libs. Put one in
>>> > MPI_LIBRARIES and the other in MPI_EXTRA_LIBRARIES (or use path
>>> > separator.)
>>> >
>>> > I do not think it it matters whether mpich is compiled statically or
>>> not.
>>> >
>>> > David E DeMarle
>>> > Kitware, Inc.
>>> > R&D Engineer
>>> > 28 Corporate Drive
>>> > Clifton Park, NY 12065-8662
>>> > Phone: 518-371-3971 x109
>>> >
>>> >
>>> >
>>> > On Tue, Dec 15, 2009 at 5:00 PM, Huan Sun <hsun at math.psu.edu> wrote:
>>> >> Hello,
>>> >>
>>> >> I was trying to compile paraview against mpich2.
>>> >> I wonder if I need to specify some extra mpi libraries the cmake
>>> >> configuration. I don't have a root account so i built the mpich2
>>> under
>>> >> my own account. So ccmake cannot find it.
>>> >>
>>> >> Also, can I compile paraview against staticly built mpi libraries?
>>> >>
>>> >> Thanks,
>>> >>
>>> >> Huan
>>> >>
>>> >> _______________________________________________
>>> >> Powered by www.kitware.com
>>> >>
>>> >> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>> >>
>>> >> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>> >>
>>> >> Follow this link to subscribe/unsubscribe:
>>> >> http://www.paraview.org/mailman/listinfo/paraview
>>> >>
>>> > _______________________________________________
>>> > Powered by www.kitware.com
>>> >
>>> > Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>> >
>>> > Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > http://www.paraview.org/mailman/listinfo/paraview
>>> >
>>
>>
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


-- 
Joshua Wu
Los Alamos National Laboratory
Phone:(505) 665-4427
Email: joshuawu at lanl.gov


More information about the ParaView mailing list