[Paraview] CVS MPI compile failing

Orion Poplawski orion at cora.nwra.com
Fri Jul 18 11:59:24 EDT 2008


Scott, W Alan wrote:
> I just tried a compile from scratch, and it worked for me...
> 
> Maybe try building from scratch?

I'm always building from scratch.  Updated cvs but still no go.

Let's compare Utilities/IceT/CMakeLists.txt:

FIND_PACKAGE(MPI)
MARK_AS_ADVANCED(CLEAR MPI_INCLUDE_PATH)
MARK_AS_ADVANCED(CLEAR MPI_LIBRARY)
MARK_AS_ADVANCED(CLEAR MPI_EXTRA_LIBRARY)
IF (MPI_INCLUDE_PATH)
   INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH})
ELSE (MPI_INCLUDE_PATH)
   MESSAGE(SEND_ERROR "Could not find MPI includes, which is required to 
compile ICE-T.")
ENDIF (MPI_INCLUDE_PATH)
IF (MPI_LIBRARY)
   LINK_LIBRARIES(${MPI_LIBRARY})
ELSE (MPI_LIBRARY)
   MESSAGE(SEND_ERROR "Could not find MPI library, which is required to 
compile ICE-T.")
ENDIF (MPI_LIBRARY)
IF (MPI_EXTRA_LIBRARY)
   LINK_LIBRARIES(${MPI_EXTRA_LIBRARY})
ENDIF (MPI_EXTRA_LIBRARY)

note how it adds MPI_INCLUDE_PATH.

Now ./VTK/Parallel/CMakeLists.txt:

IF (VTK_USE_MPI)
   INCLUDE (FindMPI)
   SET ( Kit_SRCS
     ${Kit_SRCS}
     vtkMPICommunicator.cxx
     vtkMPIController.cxx
     )
   # Needed for mpich 2
   ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK")
ENDIF (VTK_USE_MPI)

....

IF (VTK_USE_MPI)
   IF (MPI_LIBRARIES)
     SET(KIT_LIBS ${KIT_LIBS} "${MPI_LIBRARIES}")
   ELSE (MPI_LIBRARIES)
     IF (MPI_LIBRARY)
       SET(KIT_LIBS ${KIT_LIBS} "${MPI_LIBRARY}")
     ELSE (MPI_LIBRARY)
       MESSAGE("Could not find the required MPI libraries")
     ENDIF (MPI_LIBRARY)
     IF (MPI_EXTRA_LIBRARY)
       SET(KIT_LIBS ${KIT_LIBS} "${MPI_EXTRA_LIBRARY}")
     ENDIF (MPI_EXTRA_LIBRARY)
   ENDIF (MPI_LIBRARIES)
ENDIF (VTK_USE_MPI)


no mention of MPI_INCLUDE_PATH.


Now what I don't understand is why my Fedora 9 ParaView 3.2.2 build is 
working but this build isn't.



-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the ParaView mailing list