Thank you . I solve it by specify the "native compiler" as mpic++ when i start 
cmake-gui.
It works fine now.
Regards



[email protected]
 
From: Jean-Paul Pelteret
Date: 2017-05-17 13:14
To: deal.II User Group
Subject: [deal.II] Re: cmake-gui mpi
Dear Peng,

This part of the installation documentation suggests that you can explicitly 
indicate which MPI compilers to use with the following flags passed to CMake:

cmake -DDEAL_II_WITH_MPI:BOOL=ON -DCMAKE_C_COMPILER="<full/path/to/mpicc>" 
-DCMAKE_CXX_COMPILER="<full/path/to/mpicxx>" 
-DCMAKE_Fortran_COMPILER="<full/path/to/mpif90>" <...>

I would suggest in your case to pass the full paths to the MPI executables 
since deal.II couldn't pick them up in the first place. Presumably the means 
that the binaries are located at /usr/local/bin/<mpicc/mpicxx/mpif90> on your 
machine.

Does this help you solve the problem?

Jean-Paul

On Wednesday, May 17, 2017 at 6:08:02 AM UTC+2, Peng Ding wrote:
Dear professor:
   I use cmake-gui to configure deall.II. the package mpi  has installed to 
/usr/local, but cmake gui can not found it. 
i tried to run cmake withou gui, it also give the same problems
 how to resolve this problem. 

-- MPI not found but DEAL_II_WITH_MPI is set to TRUE. Try again with more 
aggressive search paths: 
-- Performing Test MPI_HAVE_MPI_SEEK_SET 
-- Performing Test MPI_HAVE_MPI_SEEK_SET - Success 
-- Found MPI_MPI_H 
--   MPI_VERSION: 3.1 
--   MPI_LIBRARIES: *** Required variable "MPI_CXX_LIBRARIES" empty *** 
--   MPI_INCLUDE_DIRS: *** Required variable "MPI_CXX_INCLUDE_PATH" empty *** 
--   MPI_USER_INCLUDE_DIRS: *** Required variable "MPI_CXX_INCLUDE_PATH" empty 
*** 
--   MPI_CXX_FLAGS:  
--   MPI_LINKER_FLAGS:  
-- Could NOT find MPI 
-- DEAL_II_WITH_MPI has unmet external dependencies. 
CMake Error at cmake/configure/configure_1_mpi.cmake:77 (MESSAGE):

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to a topic in the Google 
Groups "deal.II User Group" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/dealii/qCvyUwpjSXo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to