Personal tools
You are here: Home Forum Install & build Installing medcoupling autonomously

Installing medcoupling autonomously

Up to Install & build

Installing medcoupling autonomously

Posted by pierre at October 22. 2019

Hello,

I have tried to install medcoupling 9-3-1 autonomously (without Salome)

I have started with medfile-4.0.0 and its installation seems OK.

Next I have tried to install medcoupling (medcoupling comes with 2 directories, CONFIGURATION_9.3.0 and MEDCOUPLING-9.3.0).

I have created a Build and a Install directory. In the Build directory I run CMAKE with these options :

DEST=$HOME/medcoupling/medcoupling_install
MEDFILE_INSTALL=$HOME/medfile/med-4.0.0/install
MED_COUPLING_SRC=$HOME/medcoupling/MEDCOUPLING-9.3.0
USE_MPI=ON
CONFIGURATION_SALOME=$HOME/medcoupling/CONFIGURATION_9.3.0

OPTIONS="
-DCMAKE_BUILD_TYPE=Release
-DMEDCOUPLING_USE_MPI=$USE_MPI
-DSALOME_USE_MPI=ON
-DCMAKE_INSTALL_PREFIX=$DEST
-DHDF5_ROOT_DIR=$HDF5_DIR
-DCONFIGURATION_ROOT_DIR=$CONFIGURATION_SALOME
-DMEDFILE_ROOT_DIR=$MEDFILE_INSTALL
-DMEDCOUPLING_BUILD_DOC=OFF
-DMEDCOUPLING_PARTITIONER_METIS=OFF
-DMEDCOUPLING_PARTITIONER_SCOTCH=OFF
-DMEDCOUPLING_ENABLE_RENUMBER=OFF
-DMEDCOUPLING_ENABLE_PARTITIONER=OFF
-DMEDCOUPLING_BUILD_TESTS=OFF
-DMEDCOUPLING_WITH_FILE_EXAMPLES=OFF
-DMEDCOUPLING_MEDLOADER_USE_XDR=OFF
-DMEDCOUPLING_PARTITIONER_PTSCOTCH=OFF
# -DMEDCOUPLING_BUILD_STATIC=ON
-DNO_CXX11_SUPPORT=ON "

cmake $OPTIONS $MED_COUPLING_SRC

 

And I obtain an error of CMAKE on hdf5 that is strange because it complains about a lack of the hdf5 TARGET during a GET_PROPERTY instruction, whereas the librairy hdf5 exists and has the right name...

The complete output of CMAKE is this:

-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_NO_OPERATOR_NAMES
-- Performing Test COMPILER_SUPPORTS_NO_OPERATOR_NAMES - Success
CMake Error at /home/XXXXXXX/medcoupling/CONFIGURATION_9.3.0/cmake/FindSalomeHDF5.cmake:73 (GET_PROPERTY):
  get_property could not find TARGET /home/XXXXXXX/hdf5/lib/libhdf5.so.
  Perhaps it has not yet been created.
Call Stack (most recent call first):
  CMakeLists.txt:110 (FIND_PACKAGE)


-- HDF5 was compiled with MPI:
-- Check for medfile ...
-- Variable MPI_ROOT_DIR was not explicitly defined. An installation was found anyway: /usr
-- Looking for MPI_Publish_name
-- Looking for MPI_Publish_name - found
-- Your mpi implementation is compatible with mpi2 ... adding -DHAVE_MPI2
-- Variable PYTHONINTERP_ROOT_DIR was not explicitly defined. An installation was found anyway: /usr/bin
-- Variable PYTHONLIBS_ROOT_DIR was not explicitly defined. An installation was found anyway: /usr
-- Python libs and interpreter versions are matching: 3.5.3
-- NumPy found : /usr/lib/python3/dist-packages/numpy/core/include
-- Scipy found : Version 0.18.1
-- Variable SWIG_ROOT_DIR was not explicitly defined. An installation was found anyway: /usr
-- Using Python 3
--
--   Optional packages - Detection report
--   ====================================
--
--   * PythonInterp             ->  Found
--   * PythonLibs               ->  Found
--   * SWIG                     ->  Found
--
--
-- Creation of /home/XXXXXXX/medcoupling/medcoupling_build/MEDCoupling_version.h
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.10")
-- Configuring incomplete, errors occurred!
See also "/home/XXXXXXX/medcoupling/medcoupling_build/CMakeFiles/CMakeOutput.log".

Thank ou in advance for any help...

regards, Pierre

Powered by Ploneboard
Document Actions