[Paraview-developers] Configuring OpenMPI with CMake for ParaView (unresolved external symbol)

Alexis Chan alexisc at cs.unc.edu
Fri Jul 6 12:49:54 EDT 2012


Hi

I am building ParaView with OpenMPI 1.6 on Windows 7 Visual Studio 2008.

CMake seems to change MPI_LIBRARY to libmpi_cxx.lib everytime I click
"Configure"even though I set it to libmpi.lib

Here's the example of unresolved external symbol error I get:

48>Partition.obj : error LNK2019: unresolved external symbol
_MPI_Cart_coords referenced in function "public: static void __cdecl
Partition::initialize(void)" (?initialize at Partition@@SAXXZ)

The following is my CMakeCache.txt snippet for MPI-related entries:

//Executable for running MPI programs.
MPIEXEC:FILEPATH=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/bin/mpiexec.exe

//Maximum number of processors available to run MPI applications.
MPIEXEC_MAX_NUMPROCS:STRING=2

//Flag used by MPI to specify the number of processes for MPIEXEC;
// the next option will be the number of processes.
MPIEXEC_NUMPROC_FLAG:STRING=-np

//These flags will come after all flags given to MPIEXEC.
MPIEXEC_POSTFLAGS:STRING=

//These flags will be directly before the executable that is being
// run by MPIEXEC.
MPIEXEC_PREFLAGS:STRING=

//Cleared
MPI_CXX_COMPILER:FILEPATH=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/bin/mpic++.exe

//MPI CXX compilation flags
MPI_CXX_COMPILE_FLAGS:STRING=

//MPI CXX include path
MPI_CXX_INCLUDE_PATH:STRING=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/include

//MPI CXX libraries to link against
MPI_CXX_LIBRARIES:STRING=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/lib/libmpi_cxx.lib

//MPI CXX linking flags
MPI_CXX_LINK_FLAGS:STRING=

//Cleared
MPI_C_COMPILER:FILEPATH=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/bin/mpicc.exe

//MPI C compilation flags
MPI_C_COMPILE_FLAGS:STRING=

//MPI C include path
MPI_C_INCLUDE_PATH:STRING=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/include

//MPI C libraries to link against
MPI_C_LIBRARIES:STRING=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/lib/libmpi.lib

//MPI C linking flags
MPI_C_LINK_FLAGS:STRING=

//Extra MPI libraries to link against
MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND

//MPI library to link against
MPI_LIBRARY:FILEPATH=C:/Users/alexisc/Documents/EVE/openmpi-1.6/installed/lib/libmpi_cxx.lib


Btw, is there a problem with using gfortran for OpenMPI for ParaView on
Windows?  I got my binary here: http://gcc.gnu.org/wiki/GFortranBinaries

-- 
Alexis YL Chan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120706/c13cd06b/attachment.htm>


More information about the Paraview-developers mailing list