[Paraview] CVS MPI compile failing

Berk Geveci berk.geveci at kitware.com
Fri Jul 18 12:37:42 EDT 2008


Oops. I was wrong. MPI_INCLUDE_PATH is indeed included in the top
CMakeLists.txt file. VTK_INCLUDE_DIRS_SYSTEM include MPI_INCLUDE_PATH.
What happens if you run cmake a second time before compiling? Maybe it
is an order thing...

-berk


On Fri, Jul 18, 2008 at 12:09 PM, Berk Geveci <berk.geveci at kitware.com> wrote:
> Aha! It works if there is an mpi.h in the default include path. This
> is indeed a bug. I'll commit a fix.
>
> -berk
>
>
> On Fri, Jul 18, 2008 at 11:59 AM, Orion Poplawski <orion at cora.nwra.com> wrote:
>> 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
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>


More information about the ParaView mailing list