<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,&nbsp; 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&#43;&#43; -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&#43;&#43; -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&#43;&#43; -L/opt/sgi/mpt/mpt-2.07/lib<br>
MPI_LIBRARY:FILEPATH=-lmpi -lmpi&#43;&#43; -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:&nbsp; 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...&nbsp;</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>&nbsp; &nbsp; -DMPI_CXX_LIBRARIES:STRING=${PV_MPI_CXX_LIBRARIES}</div>
<div>&nbsp; &nbsp; -DMPI_C_LIBRARIES:STRING=${PV_MPI_C_LIBRARIES}</div>
<div>&nbsp; &nbsp; -DMPI_EXTRA_LIBRARY:STRING=${PV_MPI_EXTRA_LIBRARY}</div>
<div>&nbsp; &nbsp; -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 &nbsp;-DPV_MPI_CXX_LIBRARIES:STRING=&quot;a b c d&quot;</div>
<div style="">and it&nbsp;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">
&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</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) &lt;<a href="mailto:richard.c.angelini.civ@mail.mil" target="_blank">richard.c.angelini.civ@mail.mil</a>&gt; wrote:<br>
&gt; Thanks for the pointer. &nbsp; I changed my Superbuild cmake command to pass<br>
&gt; these arguments which I believe now include the correct tags<br>
&gt;<br>
&gt; -DUSE_SYSTEM_mpi=ON \<br>
&gt; -DMPI_CXX:FILEPATH=`which mpicxx` \<br>
&gt; -DMPI_CXX_INCLUDE_PATH:STRING=${CPATH} \<br>
&gt; -DMPI_CXX_LIBRARIES:STRING=&quot;-lmpi -lmpi&#43;&#43; -L${LIBRARY_PATH}&quot; \<br>
&gt; -DMPI_C:FILEPATH=`which mpicc` \<br>
&gt; -DMPI_C_LIBRARIES:STRING=&quot;-lmpi -lmpi&#43;&#43; -L${LIBRARY_PATH}&quot; \<br>
&gt; -DMPI_C_INCLUDE_PATH:STRING=${CPATH} \<br>
&gt; -DMPI_Fortran:FILEPATH=`which mpif90` \<br>
&gt; -DMPI_Fortran_LIBRARIES:STRING=&quot;-lmpi -lmpi&#43;&#43; -L${LIBRARY_PATH}&quot; \<br>
&gt; -DMPI_Fortran_INCLUDE_PATH:STRING=${CPATH} \<br>
&gt;<br>
&gt; In the Build directory, the &nbsp;CMakeCache.txt file has the correct values:<br>
&gt;<br>
&gt; MPI_C:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
&gt; MPI_CXX:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
&gt; MPI_CXX_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
&gt; MPI_CXX_COMPILE_FLAGS:STRING=<br>
&gt; MPI_CXX_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
&gt; MPI_CXX_LIBRARIES:STRING=-lmpi -lmpi&#43;&#43; -L/opt/sgi/mpt/mpt-2.07/lib<br>
&gt; MPI_CXX_LINK_FLAGS:STRING=<br>
&gt; MPI_C_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
&gt; MPI_C_COMPILE_FLAGS:STRING=<br>
&gt; MPI_C_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
&gt; MPI_C_LIBRARIES:STRING=-lmpi -lmpi&#43;&#43; -L/opt/sgi/mpt/mpt-2.07/lib<br>
&gt; MPI_C_LINK_FLAGS:STRING=<br>
&gt; MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND<br>
&gt; MPI_Fortran:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpif90<br>
&gt; MPI_Fortran_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
&gt; MPI_Fortran_LIBRARIES:STRING=-lmpi -lmpi&#43;&#43; -L/opt/sgi/mpt/mpt-2.07/lib<br>
&gt; MPI_LIBRARY:FILEPATH=-lmpi -lmpi&#43;&#43; -L/opt/sgi/mpt/mpt-2.07/lib<br>
&gt;<br>
&gt; However, the in the Build/paraview/src/paraview-build directory, the<br>
&gt; CMakeCache.txt file does not have the correct values:<br>
&gt;<br>
&gt; MPI_CXX_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
&gt; MPI_CXX_COMPILE_FLAGS:STRING=<br>
&gt; MPI_CXX_INCLUDE_PATH:STRING=<br>
&gt; MPI_CXX_LIBRARIES:STRING=<br>
&gt; MPI_CXX_LINK_FLAGS:STRING=<br>
&gt; MPI_C_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
&gt; MPI_C_COMPILE_FLAGS:STRING=<br>
&gt; MPI_C_INCLUDE_PATH:STRING=<br>
&gt; MPI_C_LIBRARIES:STRING=<br>
&gt; MPI_C_LINK_FLAGS:STRING=<br>
&gt; MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND<br>
&gt; MPI_Fortran_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpif90<br>
&gt; MPI_Fortran_COMPILE_FLAGS:STRING=<br>
&gt; MPI_Fortran_INCLUDE_PATH:STRING=<br>
&gt; MPI_Fortran_LIBRARIES:STRING=<br>
&gt; MPI_Fortran_LINK_FLAGS:STRING=<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt; Rick Angelini<br>
&gt;<br>
&gt; USArmy Research Laboratory<br>
&gt; CISD/HPC Architectures Team<br>
&gt; Building 120 Cube 315<br>
&gt; Phone: &nbsp;410-278-6266<br>
&gt; ________________________________<br>
&gt; From: Utkarsh Ayachit [<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>]<br>
&gt; Sent: Wednesday, June 12, 2013 11:48 AM<br>
&gt; To: Angelini, Richard C (Rick) CIV USARMY ARL (US)<br>
&gt; Cc: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
&gt; Subject: Re: [Paraview] Superbuild: passing compiler flags<br>
&gt;<br>
&gt; Rick,<br>
&gt;<br>
&gt; Can you try using -D arguments with the correct syntax and see if that<br>
&gt; works?<br>
&gt;<br>
&gt; cmake documentation states the following:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; -D &lt;var&gt;:&lt;type&gt;=&lt;value&gt; &nbsp; &nbsp; = Create a cmake cache entry.<br>
&gt;<br>
&gt; Ensure that you pass each of the -D arguments correctly with &quot;:type&quot; suffix.<br>
&gt; You can identify the type for the variables by running ccmake once and then<br>
&gt; looking at the generated CMakeCache.txt. Also, try quoting the arguments<br>
&gt; with spaces in them, namely MPI_*_LIBRARIES variables.<br>
&gt;<br>
&gt; Utkarsh<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jun 12, 2013 at 11:23 AM, Angelini, Richard C (Rick) CIV USARMY ARL<br>
&gt; (US) &lt;<a href="mailto:richard.c.angelini.civ@mail.mil" target="_blank">richard.c.angelini.civ@mail.mil</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I'm trying to pass some MPI-related flags through the Superbuild cmake.<br>
&gt;&gt; These flags need to get passed down to the actual Paraview source cmake, but<br>
&gt;&gt; they don't seem to getting included. &nbsp; If I run ccmake I can see that the<br>
&gt;&gt; flags have not been set - and if I manually add the flags at that time, the<br>
&gt;&gt; build proceeds.<br>
&gt;&gt;<br>
&gt;&gt; (I'm talking about the MPI_xx) flags being passed via the cmake command<br>
&gt;&gt; line) &nbsp; I'm using cmake 2.8.11<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/angel/pv-test/${version}_mesa \<br>
&gt;&gt; -Ddownload_location=`pwd`/../Downloads \<br>
&gt;&gt; -DParaView_FROM_GIT=OFF \<br>
&gt;&gt; -DParaView_URL=`pwd`/../Downloads/ParaView-4.0.0-RC3-source.tar.gz \<br>
&gt;&gt; -DCMAKE_BUILD_TYPE=Release \<br>
&gt;&gt; -DENABLE_boost=ON \<br>
&gt;&gt; -DENABLE_cgns=ON \<br>
&gt;&gt; -DENABLE_ffmpeg=ON \<br>
&gt;&gt; -DENABLE_hdf5=ON \<br>
&gt;&gt; -DENABLE_matplotlib=ON \<br>
&gt;&gt; -DENABLE_mesa=ON \<br>
&gt;&gt; -DENABLE_osmesa=OFF \<br>
&gt;&gt; -DENABLE_mpi=ON \<br>
&gt;&gt; -DENABLE_numpy=ON \<br>
&gt;&gt; -DENABLE_paraview=ON \<br>
&gt;&gt; -DENABLE_python=ON \<br>
&gt;&gt; -DENABLE_qt=ON \<br>
&gt;&gt; -DENABLE_silo=ON \<br>
&gt;&gt; -DENABLE_szip=ON \<br>
&gt;&gt; -Dqt_DISABLE_WEBKIT=OFF \<br>
&gt;&gt; -DUSE_SYSTEM_mpi=ON \<br>
&gt;&gt; -DMPI_CXX=mpicxx \<br>
&gt;&gt; -DMPI_CXX_INCLUDE_PATH=${CPATH} \<br>
&gt;&gt; -DMPI_CXX_LIBRARIES=-lmpi -lmpixx -L${LIBRARY_PATH} \<br>
&gt;&gt; -DMPI_C=mpicc \<br>
&gt;&gt; -DMPI_C_LIBRARIES=-lmpi -lmpixx -L${LIBRARY_PATH} \<br>
&gt;&gt; -DMPI_C_INCLUDE_PATH=${CPATH} \<br>
&gt;&gt; ../Source<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt; Rick Angelini<br>
&gt;&gt;<br>
&gt;&gt; USArmy Research Laboratory<br>
&gt;&gt; CISD/HPC Architectures Team<br>
&gt;&gt; Building 120 Cube 315<br>
&gt;&gt; Phone: &nbsp;<a href="tel:410-278-6266" value="&#43;14102786266" target="_blank">410-278-6266</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;<br>
&gt;<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>