<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;">Thanks for the pointer.&nbsp;&nbsp; I changed my Superbuild cmake command to pass 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=&quot;-lmpi -lmpi&#43;&#43; -L${LIBRARY_PATH}&quot; \<br>
-DMPI_C:FILEPATH=`which mpicc` \<br>
-DMPI_C_LIBRARIES:STRING=&quot;-lmpi -lmpi&#43;&#43; -L${LIBRARY_PATH}&quot; \<br>
-DMPI_C_INCLUDE_PATH:STRING=${CPATH} \<br>
-DMPI_Fortran:FILEPATH=`which mpif90` \<br>
-DMPI_Fortran_LIBRARIES:STRING=&quot;-lmpi -lmpi&#43;&#43; -L${LIBRARY_PATH}&quot; \<br>
-DMPI_Fortran_INCLUDE_PATH:STRING=${CPATH} \<br>
<br>
In the Build directory, the&nbsp; 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&#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>
<br>
However, the in the Build/paraview/src/paraview-build directory, the 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>
<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="divRpF433935"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Utkarsh Ayachit [utkarsh.ayachit@kitware.com]<br>
<b>Sent:</b> Wednesday, June 12, 2013 11:48 AM<br>
<b>To:</b> Angelini, Richard C (Rick) CIV USARMY ARL (US)<br>
<b>Cc:</b> paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] Superbuild: passing compiler flags<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Rick,
<div><br>
</div>
<div style="">Can you try using -D arguments with the correct syntax and see if that works?</div>
<div style=""><br>
</div>
<div style="">cmake documentation states the following:</div>
<div style=""><br>
</div>
<div style="">
<div>&nbsp; &nbsp; &nbsp; -D &lt;var&gt;:&lt;type&gt;=&lt;value&gt; &nbsp; &nbsp; = Create a cmake cache entry.</div>
<div><br>
</div>
</div>
<div>Ensure that you pass each of the -D arguments correctly with &quot;:type&quot; suffix. You can identify the type for the variables by running ccmake once and then looking at the generated CMakeCache.txt. Also, try quoting the arguments with spaces in them, namely&nbsp;<span style="font-family:Arial; font-size:13px">MPI_*_LIBRARIES
 variables.</span></div>
<div><br>
</div>
<div>Utkarsh<br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Jun 12, 2013 at 11:23 AM, Angelini, Richard C (Rick) CIV USARMY ARL (US)
<span dir="ltr">&lt;<a href="mailto:richard.c.angelini.civ@mail.mil" target="_blank">richard.c.angelini.civ@mail.mil</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Arial">I'm trying to pass some MPI-related flags through the Superbuild cmake.&nbsp; These flags need to get passed down to the actual Paraview source cmake, but they don't seem to getting included.&nbsp;&nbsp; If I run
 ccmake I can see that the flags have not been set - and if I manually add the flags at that time, the build proceeds.&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<br>
(I'm talking about the MPI_xx) flags being passed via the cmake command line)&nbsp;&nbsp; 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>
<div><span title="paraview@paraview.org"></span>
<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%; min-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;
<a href="tel:410-278-6266" value="&#43;14102786266" target="_blank">410-278-6266</a></span></span><br>
<span style="font-family:Arial"></span></div>
</div>
</div>
</div>
</div>
</div>
<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>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>