[Dune] Problem linking parmetis with cmake

Aleksejs Fomins aleksejs.fomins at lspr.ch
Wed Nov 26 16:12:47 CET 2014


Dear Marcus,

I have tried this, I get

--------------------------------------------------------------
-- Found ParMETIS:
/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0/include
CMake Error at dune/curvilineargrid/io/file/test/CMakeLists.txt:3
(add_dune_parmetis_flags):
  Unknown CMake command "add_dune_parmetis_flags".
--------------------------------------------------------------






On 11/26/2014 04:03 PM, Markus Blatt wrote:
> On Wed, Nov 26, 2014 at 04:01:28PM +0100, Aleksejs Fomins wrote:
>> Hi Marcus,
>>
>> Your suggestion helped partially. After
>>
>>> dune-curvilineargeometry/cmake/modules/DuneCurvilineargeometry.cmake:
>>>
>>> find_package(ParMETIS)
>>
>> the ParMetis module is found. However, the compilation error is still
>> the same. I will analyse the compilation output and get back to you.
>>
> 
> I can only quote Christoph:
> 
> "is ParMETIS found by configure? If this is the case, you might want
> to
> add the flags to your target by using
> add_dune_parmetis_flags(yourTarget)
> "
> 
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 
-------------- next part --------------
# Add parmetis
if(HAVE_MPI)
    add_dune_parmetis_flags(curvilineargmshtest)
endif(HAVE_MPI)


# Define variable with path to the grids to be used in the code
add_definitions("-DDUNE_CURVILINEARGRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\"")

# Define tests to be run
set(TESTS
  curvilineargmshtest)

add_executable(curvilineargmshtest curvilineargmshtest.cc)
target_link_libraries(curvilineargmshtest dunecommon dunegeometry dunecurvilineargeometry dunegrid)

# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${TESTS})

foreach(_test ${TESTS})
  add_test(${_test} ${_test})
endforeach(_test ${TESTS})
-------------- next part --------------
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
--- going to build dune-curvilineargrid  ---
--- calling all for dune-curvilineargrid ---
--- calling vcsetup for dune-curvilineargrid ---
--- calling autogen for dune-curvilineargrid ---
Skipping dune-autogen because of CMake
--- calling configure for dune-curvilineargrid ---
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/lib/dunegeometryam2cmake.lib for converting options does not exist
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry/lib/dunecurvilineargeometryam2cmake.lib for converting options does not exist
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/lib/dunecurvilineargridam2cmake.lib for converting options does not exist
 CXX=mpicxx CC=mpicc cmake -DCMAKE_MODULE_PATH=""  -DUSE_MPI=ON "-Ddune-common_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-common/build-cmake" "-Ddune-geometry_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/build-cmake" "-Ddune-curvilineargeometry_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry/build-cmake" -DENABLE_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "-Ddune-grid_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-grid/build-cmake" "-Ddune-alugrid_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/build-cmake" CXXFLAGS="-Wall -pedantic -O0 -g2" -DPARMETIS_ROOT=/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0 -DCMAKE_PREFIX_PATH="/opt/extlib/boost/1.55.0/gcc/4.9.0;/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;/opt/extlib/metis/5.1.0/gcc/4.9.0;" -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid"
-- Dependencies for dune-curvilineargrid: dune-common;dune-geometry;dune-curvilineargeometry;dune-grid;dune-alugrid
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- Dependencies for dune-curvilineargeometry: dune-common;dune-geometry
-- Dependencies for dune-grid: dune-common (>= 2.4);dune-geometry (>= 2.4)
-- Dependencies for dune-alugrid: dune-grid (>= 2.3)
-- Dependencies for dune-grid: dune-common (>= 2.4);dune-geometry (>= 2.4)
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- I could not find the latex2html command.
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Performing tests specific to dune-common from file /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneCommonMacros.cmake.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find GMP (missing:  GMP_INCLUDE_DIR GMP_LIB GMPXX_LIB GMP_HEADER_WORKS GMPXX_LIB_WORKS) 
-- Setting dune-common_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-common
-- Setting dune-common_LIBRARIES=dunecommon
-- Setting dune-geometry_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry
-- Setting dune-geometry_LIBRARIES=dunegeometry
-- Performing tests specific to dune-grid from file /home/fomins/gitwork/hades-github-lspr-ag/dune-grid/cmake/modules/DuneGridMacros.cmake.
-- checking for module 'alugrid'
--   package 'alugrid' not found
-- checking for module 'alugrid'
--   package 'alugrid' not found
-- Could NOT find ALUGrid (missing:  ALUGRID_VERSION ALUGRID_INCLUDE_PATH ALUGRID_LIB ALUGRID_LIB_PATH ALULIB_FUNCTIONAL HAVE_ALUGRID_SERIAL_H) 
CMake Warning at /home/fomins/gitwork/hades-github-lspr-ag/dune-grid/cmake/modules/UseUG.cmake:27 (find_package):
  Could not find a package configuration file provided by "UG" (requested
  version 3.11.0) with any of the following names:

    UGConfig.cmake
    ug-config.cmake

  Add the installation prefix of "UG" to CMAKE_PREFIX_PATH or set "UG_DIR" to
  a directory containing one of the above files.  If "UG" provides a separate
  development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  /home/fomins/gitwork/hades-github-lspr-ag/dune-grid/cmake/modules/DuneGridMacros.cmake:11 (include)
  /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:505 (include)
  /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:634 (dune_process_dependency_macros)
  CMakeLists.txt:24 (dune_project)


-- Could NOT find UG (missing:  UG_DIR HAVE_UG) 
-- Could NOT find Grape (missing:  GRAPE_INCLUDE_DIR GRAPE_LIBRARY _GRAPE_LIB_FUNCTIONAL _GRAPE_HEADER_USABLE) 
-- checking for one of the modules 'psurface'
-- checking for module 'psurface'
--   package 'psurface' not found
-- Could NOT find psurface (missing:  PSURFACE_INCLUDE_DIR PSURFACE_LIBRARY) 
-- Could NOT find AmiraMesh (missing:  AMIRAMESH_INCLUDE_DIR AMIRAMESH_LIBRARY) 
-- Setting dune-grid_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-grid
-- Setting dune-grid_LIBRARIES=dunegrid
-- Performing tests specific to dune-alugrid from file /home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/cmake/modules/DuneAlugridMacros.cmake.
-- Could NOT find SIONlib (missing:  SIONLIB_INCLUDE_DIR SIONLIB_LIBRARY SIONLIB_HEADER_USABLE SIONLIB_LIB_WORKS SIONLIB_LIB_SIONSER_WORKS) 
-- Could NOT find DLMalloc (missing:  DLMALLOC_INCLUDE_DIR DLMALLOC_SOURCE_USABLE) 
Zoltan Dir: ZOLTAN_INCLUDE_DIR-NOTFOUND
-- Could NOT find ZOLTAN (missing:  ZOLTAN_INCLUDE_DIR ZOLTAN_LIBRARY ZOLTAN_HEADER_USABLE) 
CMake Warning (dev) at /home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/cmake/modules/DuneAlugridMacros.cmake:49 (message):
  TODO: Improve module test.
Call Stack (most recent call first):
  /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:505 (include)
  /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:634 (dune_process_dependency_macros)
  CMakeLists.txt:24 (dune_project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Setting dune-alugrid_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid
-- Setting dune-alugrid_LIBRARIES=dunealugrid
-- Performing tests specific to dune-curvilineargeometry from file /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry/cmake/modules/DuneCurvilineargeometryMacros.cmake.
-- Setting dune-curvilineargeometry_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry
-- Performing tests specific to dune-curvilineargrid from file /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/cmake/modules/DuneCurvilineargridMacros.cmake.
CMake Error at dune/curvilineargrid/io/file/test/CMakeLists.txt:3 (add_dune_parmetis_flags):
  Unknown CMake command "add_dune_parmetis_flags".


-- Configuring incomplete, errors occurred!
See also "/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake/CMakeFiles/CMakeOutput.log".
See also "/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake/CMakeFiles/CMakeError.log".
--- Failed to build dune-curvilineargrid ---
Terminating dunecontrol due to previous errors!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141126/a4c665c0/attachment.sig>


More information about the Dune mailing list