<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Arial;color: #000000;font-size: 10pt;">Curiously, if I rerun cmake in the Build/paraview/paraview-build directory using these same exact flags, cmake seems to complete correctly as does the build.<br>
<br>
MPI_C:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
MPI_CXX:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
MPI_CXX_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
MPI_CXX_COMPILE_FLAGS:STRING=<br>
MPI_CXX_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
MPI_CXX_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
MPI_CXX_LINK_FLAGS:STRING=<br>
MPI_C_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
MPI_C_COMPILE_FLAGS:STRING=<br>
MPI_C_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
MPI_C_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
MPI_C_LINK_FLAGS:STRING=<br>
MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND<br>
MPI_Fortran:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpif90<br>
MPI_Fortran_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
MPI_Fortran_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
MPI_LIBRARY:FILEPATH=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px; text-align:left"><span style="font-family:Arial"><span style="color:rgb(51,153,102); font-style:italic"></span></span>
<hr style="width:100%; height:2px; margin-left:0px; margin-right:auto">
<span style="font-family:Helvetica; font-weight:bold; color:rgb(0,128,128)"><span style="font-style:italic">Rick Angelini</span></span><br style="font-style:italic">
<span style="font-family:Helvetica; font-weight:bold; color:rgb(0,128,128)"><span style="font-style:italic"><br>
<span style="font-style:italic; color:rgb(0,51,102)">USArmy Research Laboratory</span></span></span><br style="font-style:italic; color:rgb(0,51,102)">
<span style="font-family:Helvetica; font-weight:bold; color:rgb(0,51,102); font-style:italic"></span>
<div style="font-family:Helvetica; font-weight:bold; color:rgb(0,51,102); font-style:italic">
CISD/HPC Architectures Team<br>
Building 120 Cube 315<br>
</div>
<span style="font-style:italic; font-weight:bold; color:rgb(0,51,102)"></span><span style="font-family:Arial; font-style:italic; color:rgb(0,51,102)"><span style="font-family:Helvetica; font-weight:bold">Phone: 410-278-6266</span></span><br>
<span style="font-family:Arial"></span></div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF955742"><font color="#000000" face="Tahoma" size="2"><b>From:</b> paraview-bounces@paraview.org [paraview-bounces@paraview.org] on behalf of Sebastien Jourdain [sebastien.jourdain@kitware.com]<br>
<b>Sent:</b> Thursday, June 13, 2013 1:37 PM<br>
<b>To:</b> Utkarsh Ayachit<br>
<b>Cc:</b> Angelini, Richard C (Rick) CIV USARMY ARL (US); paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] Superbuild: passing compiler flags<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi Richard,
<div><br>
</div>
<div style="">the solution seems to be elsewhere... </div>
<div style=""><br>
</div>
<div style="">The variables that get propagated to ParaView don't have necessarily the same names. (I've listed the ones that are not using the same name)</div>
<div style=""><br>
</div>
<div style="">
<div> -DMPI_CXX_LIBRARIES:STRING=${PV_MPI_CXX_LIBRARIES}</div>
<div> -DMPI_C_LIBRARIES:STRING=${PV_MPI_C_LIBRARIES}</div>
<div> -DMPI_EXTRA_LIBRARY:STRING=${PV_MPI_EXTRA_LIBRARY}</div>
<div> -DMPI_LIBRARY:FILEPATH=${PV_MPI_LIBRARY}</div>
<div><br>
</div>
<div style="">Therefore you may need to duplicate some values and use PV_XXX as key.</div>
<div style=""><br>
</div>
<div style="">Not sure that's intended, but I tried to set -DPV_MPI_CXX_LIBRARIES:STRING="a b c d"</div>
<div style="">and it properly get pushed to the ParaView CMakeCache.txt.</div>
<div style=""><br>
</div>
<div style="">Seb</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Jun 13, 2013 at 11:29 AM, Utkarsh Ayachit <span dir="ltr">
<<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
I think I know what could be happening. Let try a few things here and<br>
I'll get back to you.<br>
<br>
Utkarsh<br>
<br>
On Thu, Jun 13, 2013 at 8:46 AM, Angelini, Richard C (Rick) CIV USARMY<br>
<div class="HOEnZb">
<div class="h5">ARL (US) <<a href="mailto:richard.c.angelini.civ@mail.mil" target="_blank">richard.c.angelini.civ@mail.mil</a>> wrote:<br>
> Thanks for the pointer. I changed my Superbuild cmake command to pass<br>
> these arguments which I believe now include the correct tags<br>
><br>
> -DUSE_SYSTEM_mpi=ON \<br>
> -DMPI_CXX:FILEPATH=`which mpicxx` \<br>
> -DMPI_CXX_INCLUDE_PATH:STRING=${CPATH} \<br>
> -DMPI_CXX_LIBRARIES:STRING="-lmpi -lmpi++ -L${LIBRARY_PATH}" \<br>
> -DMPI_C:FILEPATH=`which mpicc` \<br>
> -DMPI_C_LIBRARIES:STRING="-lmpi -lmpi++ -L${LIBRARY_PATH}" \<br>
> -DMPI_C_INCLUDE_PATH:STRING=${CPATH} \<br>
> -DMPI_Fortran:FILEPATH=`which mpif90` \<br>
> -DMPI_Fortran_LIBRARIES:STRING="-lmpi -lmpi++ -L${LIBRARY_PATH}" \<br>
> -DMPI_Fortran_INCLUDE_PATH:STRING=${CPATH} \<br>
><br>
> In the Build directory, the CMakeCache.txt file has the correct values:<br>
><br>
> MPI_C:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
> MPI_CXX:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
> MPI_CXX_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
> MPI_CXX_COMPILE_FLAGS:STRING=<br>
> MPI_CXX_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
> MPI_CXX_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
> MPI_CXX_LINK_FLAGS:STRING=<br>
> MPI_C_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
> MPI_C_COMPILE_FLAGS:STRING=<br>
> MPI_C_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
> MPI_C_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
> MPI_C_LINK_FLAGS:STRING=<br>
> MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND<br>
> MPI_Fortran:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpif90<br>
> MPI_Fortran_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
> MPI_Fortran_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
> MPI_LIBRARY:FILEPATH=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
><br>
> However, the in the Build/paraview/src/paraview-build directory, the<br>
> CMakeCache.txt file does not have the correct values:<br>
><br>
> MPI_CXX_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
> MPI_CXX_COMPILE_FLAGS:STRING=<br>
> MPI_CXX_INCLUDE_PATH:STRING=<br>
> MPI_CXX_LIBRARIES:STRING=<br>
> MPI_CXX_LINK_FLAGS:STRING=<br>
> MPI_C_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
> MPI_C_COMPILE_FLAGS:STRING=<br>
> MPI_C_INCLUDE_PATH:STRING=<br>
> MPI_C_LIBRARIES:STRING=<br>
> MPI_C_LINK_FLAGS:STRING=<br>
> MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND<br>
> MPI_Fortran_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpif90<br>
> MPI_Fortran_COMPILE_FLAGS:STRING=<br>
> MPI_Fortran_INCLUDE_PATH:STRING=<br>
> MPI_Fortran_LIBRARIES:STRING=<br>
> MPI_Fortran_LINK_FLAGS:STRING=<br>
><br>
><br>
><br>
> ________________________________<br>
> Rick Angelini<br>
><br>
> USArmy Research Laboratory<br>
> CISD/HPC Architectures Team<br>
> Building 120 Cube 315<br>
> Phone: 410-278-6266<br>
> ________________________________<br>
> From: Utkarsh Ayachit [<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>]<br>
> Sent: Wednesday, June 12, 2013 11:48 AM<br>
> To: Angelini, Richard C (Rick) CIV USARMY ARL (US)<br>
> Cc: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
> Subject: Re: [Paraview] Superbuild: passing compiler flags<br>
><br>
> Rick,<br>
><br>
> Can you try using -D arguments with the correct syntax and see if that<br>
> works?<br>
><br>
> cmake documentation states the following:<br>
><br>
> -D <var>:<type>=<value> = Create a cmake cache entry.<br>
><br>
> Ensure that you pass each of the -D arguments correctly with ":type" suffix.<br>
> You can identify the type for the variables by running ccmake once and then<br>
> looking at the generated CMakeCache.txt. Also, try quoting the arguments<br>
> with spaces in them, namely MPI_*_LIBRARIES variables.<br>
><br>
> Utkarsh<br>
><br>
><br>
> On Wed, Jun 12, 2013 at 11:23 AM, Angelini, Richard C (Rick) CIV USARMY ARL<br>
> (US) <<a href="mailto:richard.c.angelini.civ@mail.mil" target="_blank">richard.c.angelini.civ@mail.mil</a>> wrote:<br>
>><br>
>> I'm trying to pass some MPI-related flags through the Superbuild cmake.<br>
>> These flags need to get passed down to the actual Paraview source cmake, but<br>
>> they don't seem to getting included. If I run ccmake I can see that the<br>
>> flags have not been set - and if I manually add the flags at that time, the<br>
>> build proceeds.<br>
>><br>
>> (I'm talking about the MPI_xx) flags being passed via the cmake command<br>
>> line) I'm using cmake 2.8.11<br>
>><br>
>><br>
>> cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/angel/pv-test/${version}_mesa \<br>
>> -Ddownload_location=`pwd`/../Downloads \<br>
>> -DParaView_FROM_GIT=OFF \<br>
>> -DParaView_URL=`pwd`/../Downloads/ParaView-4.0.0-RC3-source.tar.gz \<br>
>> -DCMAKE_BUILD_TYPE=Release \<br>
>> -DENABLE_boost=ON \<br>
>> -DENABLE_cgns=ON \<br>
>> -DENABLE_ffmpeg=ON \<br>
>> -DENABLE_hdf5=ON \<br>
>> -DENABLE_matplotlib=ON \<br>
>> -DENABLE_mesa=ON \<br>
>> -DENABLE_osmesa=OFF \<br>
>> -DENABLE_mpi=ON \<br>
>> -DENABLE_numpy=ON \<br>
>> -DENABLE_paraview=ON \<br>
>> -DENABLE_python=ON \<br>
>> -DENABLE_qt=ON \<br>
>> -DENABLE_silo=ON \<br>
>> -DENABLE_szip=ON \<br>
>> -Dqt_DISABLE_WEBKIT=OFF \<br>
>> -DUSE_SYSTEM_mpi=ON \<br>
>> -DMPI_CXX=mpicxx \<br>
>> -DMPI_CXX_INCLUDE_PATH=${CPATH} \<br>
>> -DMPI_CXX_LIBRARIES=-lmpi -lmpixx -L${LIBRARY_PATH} \<br>
>> -DMPI_C=mpicc \<br>
>> -DMPI_C_LIBRARIES=-lmpi -lmpixx -L${LIBRARY_PATH} \<br>
>> -DMPI_C_INCLUDE_PATH=${CPATH} \<br>
>> ../Source<br>
>><br>
>> ________________________________<br>
>> Rick Angelini<br>
>><br>
>> USArmy Research Laboratory<br>
>> CISD/HPC Architectures Team<br>
>> Building 120 Cube 315<br>
>> Phone: <a href="tel:410-278-6266" value="+14102786266" target="_blank">410-278-6266</a><br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the ParaView Wiki at:<br>
>> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>