Please keep the discussion on the mailing list so that everyone can contribute and benefit. Also this discussion probably should have stayed on the paraview users list so I&#39;m cross-posting there.<div><div><br></div><div>

I&#39;m not certain if the 64 bit-ness of the MPI lib matters. It&#39;s certainly safer to stick with a 32 bit version if you are compiling 32 bit code (and 64 bit for 64 bit libs), but it might not be required. Someone else on the list may clarify.</div>


<div><br></div><div>In any case, the CMake FindMPI module we have has a rich and sordid history behind it. It could just be buggy on your system. Try moving the cxx.lib to the MPI_EXTRA_LIBRARY variable. I suspect it will build for you then.</div>


<div>
<div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>



<br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 3:46 PM, Mingcheng Chen <span dir="ltr">&lt;<a href="mailto:linyufly@gmail.com" target="_blank">linyufly@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Thanks David!<div><br></div><div>Before turning off PARAVIEW_USE_MPI, I still want to have a try.</div><div><br></div><div>I have installed MPICH2(64bit) on my machine. Is the 64bit version OK? And I have set MPI_INCLUDE_PATH (According to online tutorial, it is not MPI_INCLUDE, right?) and MPI_LIBRARY.</div>




<div><br></div><div>There is a small problem that CMake automatically sets MPI_LIBRARY to be &quot;C:\Program Files\MPICH2\lib\mpi.lib C:\Program Files\MPICH2\lib\cxx.lib&quot;. So I have to manually split it into two separate lines for some projects in the ParaView solution. Otherwise there will be several errors from those projects, called &quot;cannot open file &#39;C:\Program Files\MPICH2\lib\mpi.lib C:\Program Files\MPICH2\lib\cxx.lib&#39;.&quot;</div>




<div><br></div><div>Currently I am finding all the projects which needs such split by compiling the whole solution again and again.</div><div><div><div><br><div class="gmail_quote">On Fri, Jan 6, 2012 at 4:30 AM, David E DeMarle <span dir="ltr">&lt;<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@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">Turn off PARAVIEW_USE_MPI in CMake and recompile. If that doesn&#39;t work (because of stale dependent build option settings) you will have to clear out the build directory and recompile.<div>




<br></div><div>Alternatively you could install MPICH2 or OpenMPI for Windows and then rebuild. When you turn on PARAVIEW_USE_MPI the first time, CMake should find MPI in your path and and determine what the correct settings for MPI_INLCUDE, MPI_LIBRARY and MPI_EXTRA_LIBRARY accordingly. The VTK and ParaView dashboards have a few examples, but it appears the Kitware hosted machines (see <a href="http://www.cdash.org/CDash/viewNotes.php?buildid=1886001" target="_blank">http://www.cdash.org/CDash/viewNotes.php?buildid=1886001</a> for example) all use Microsoft&#39;s MPI.</div>






<div><div><div><div><br></div><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>





<br><br><div class="gmail_quote"><div><div>On Thu, Jan 5, 2012 at 2:58 PM, Mingcheng Chen <span dir="ltr">&lt;<a href="mailto:linyufly@gmail.com" target="_blank">linyufly@gmail.com</a>&gt;</span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

Hi everybody,<div><br></div><div>These days I was puzzled by different kinds of errors when I tried to build paraview from open source code.</div><div><br></div><div>My machine is AMD64 and my OS is Windows 7 64bits.
</div><div><br></div><div>My IDE is Visual Studio 2010.</div><div><br></div><div>My CMake  is 2.8.</div><div><br></div><div>I choose to build a 32bit version.</div><div><br></div><div>A kind of errors is as follows.</div>







<div><br></div><div><div>&quot;Error<span style="white-space:pre-wrap">        </span>31<span style="white-space:pre-wrap">        </span>error LNK1120: 12 unresolved externals<span style="white-space:pre-wrap">        </span>D:\LCSWorkSpace\ParaViewTest\ParaViewDev\bin\Release\Cosmo.dll<span style="white-space:pre-wrap">        </span>Cosmo&quot;</div>







</div><div><br></div><div>&quot;Cosmo&quot; is a project in ParaView.sln generated by CMake.</div><div>&quot;D:\LCSWorkSpace\ParaViewTest\ParaViewDev&quot; is my output directory of CMake (where ParaView.sln is).</div><div>







<br></div><div>I do not know what the 12 unresolved externals are. Moreover, there is another kind of errors such as follows.</div><div><br></div><div><div>&quot;Error<span style="white-space:pre-wrap">        </span>29<span style="white-space:pre-wrap">        </span>error LNK2019: unresolved external symbol _MPI_Recv referenced in function &quot;public: void __thiscall Message::receive(int,int)&quot; (?receive@Message@@QAEXHH@Z)<span style="white-space:pre-wrap">        </span>D:\LCSWorkSpace\ParaViewTest\ParaViewDev\VTK\Utilities\Cosmo\Message.obj<span style="white-space:pre-wrap">        </span>Cosmo&quot;</div>







</div><div><br></div><div>Is it one of the 12 unresolved externals? What is the meaning of this error and how can I get rid of it?</div><div><br></div><div>Thanks!</div><div><br></div><div>I am very interested in whether there are people who have successfully built 32bit paraview using Visual Studio 2010 on 64bit machine.</div>







<div><br></div><div>Thanks again!</div><div><br></div><div>Best regards,</div><span><font color="#888888"><div>Mingcheng Chen</div><div>January 5th, 2012</div><div><br></div>
</font></span><br></div></div>_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org" target="_blank">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><div>Mingcheng Chen</div>
<div> </div>
<div>Research Assistant in Graphics Group</div>
<div>University of Illinois at Urbana-Champaign</div>
<div> </div>
<div>---------------------------------------------------------</div>
<div>Below is my undergraduate information.</div>
<div>---------------------------------------------------------</div>
<div>Personal Page: <a href="http://epcc.sjtu.edu.cn/~mingchengchen" target="_blank">http://epcc.sjtu.edu.cn/~mingchengchen</a></div>
<div>Embedded and Pervasive Computing Center</div>
<div>Shanghai Jiao Tong University</div>
<div>No.800 Dongchuan Road, Minhang District, Shanghai, PRC</div><br>
</div>
</blockquote></div><br></div></div>
</div>