Hi <div><br></div><div>I am building ParaView with OpenMPI 1.6 on Windows 7 Visual Studio 2008. </div><div><br></div><div>CMake seems to change MPI_LIBRARY to libmpi_cxx.lib everytime I click "Configure"even though I set it to libmpi.lib</div>
<div><br></div><div>Here's the example of unresolved external symbol error I get:</div><div><div><br></div><div>48>Partition.obj : error LNK2019: unresolved external symbol _MPI_Cart_coords referenced in function "public: static void __cdecl Partition::initialize(void)" (?initialize@Partition@@SAXXZ)</div>
</div><div><br></div><div>The following is my CMakeCache.txt snippet for MPI-related entries:</div><div><br></div><div><div>//Executable for running MPI programs.</div><div>MPIEXEC:FILEPATH=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/bin/mpiexec.exe</div>
<div><br></div><div>//Maximum number of processors available to run MPI applications.</div><div>MPIEXEC_MAX_NUMPROCS:STRING=2</div><div><br></div><div>//Flag used by MPI to specify the number of processes for MPIEXEC;</div>
<div>// the next option will be the number of processes.</div><div>MPIEXEC_NUMPROC_FLAG:STRING=-np</div><div><br></div><div>//These flags will come after all flags given to MPIEXEC.</div><div>MPIEXEC_POSTFLAGS:STRING=</div>
<div><br></div><div>//These flags will be directly before the executable that is being</div><div>// run by MPIEXEC.</div><div>MPIEXEC_PREFLAGS:STRING=</div><div><br></div><div>//Cleared</div><div>MPI_CXX_COMPILER:FILEPATH=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/bin/mpic++.exe</div>
<div><br></div><div>//MPI CXX compilation flags</div><div>MPI_CXX_COMPILE_FLAGS:STRING=</div><div><br></div><div>//MPI CXX include path</div><div>MPI_CXX_INCLUDE_PATH:STRING=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/include</div>
<div><br></div><div>//MPI CXX libraries to link against</div><div>MPI_CXX_LIBRARIES:STRING=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/lib/libmpi_cxx.lib</div><div><br></div><div>//MPI CXX linking flags</div><div>
MPI_CXX_LINK_FLAGS:STRING=</div><div><br></div><div>//Cleared</div><div>MPI_C_COMPILER:FILEPATH=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/bin/mpicc.exe</div><div><br></div><div>//MPI C compilation flags</div><div>
MPI_C_COMPILE_FLAGS:STRING=</div><div><br></div><div>//MPI C include path</div><div>MPI_C_INCLUDE_PATH:STRING=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/include</div><div><br></div><div>//MPI C libraries to link against</div>
<div>MPI_C_LIBRARIES:STRING=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/lib/libmpi.lib</div><div><br></div><div>//MPI C linking flags</div><div>MPI_C_LINK_FLAGS:STRING=</div><div><br></div><div>//Extra MPI libraries to link against</div>
<div>MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND</div><div><br></div><div>//MPI library to link against</div><div>MPI_LIBRARY:FILEPATH=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/lib/libmpi_cxx.lib</div></div>
<div><br></div><div><br></div><div>Btw, is there a problem with using gfortran for OpenMPI for ParaView on Windows? I got my binary here: <a href="http://gcc.gnu.org/wiki/GFortranBinaries">http://gcc.gnu.org/wiki/GFortranBinaries</a></div>
<div><div><br></div>-- <br>Alexis YL Chan<br><br>
</div>