Ray, It seems you are correct. I have :
~> locate H5pubconf.h
/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/include/H5pubconf.h
/usr/include/H5pubconf.h
But I guess the problem is connected to the fact that HDF5_INCLUDE_DIRS
is not set by cmake:
~> cmake .; cmake -LA | grep HDF5
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- Found HDF5:
/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/lib/libhdf5.a
(found suitable version "1.8.15", minimum required is "1.8")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/houssen/Téléchargements
HDF5_CXX_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5c++
HDF5_C_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5cc
HDF5_C_LIBRARY:PATH=/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/lib/libhdf5.a
HDF5_DIFF_EXECUTABLE:FILEPATH=/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/bin/h5diff
HDF5_DIR:PATH=/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/share/cmake
HDF5_Fortran_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5fc
Franck
Le 2015-08-06 11:49, Raymond Wan a écrit :
Hi Franck,
On Wed, Aug 5, 2015 at 8:10 PM, houssen <[email protected]> wrote:
Hello Peter,
I run Ubuntu-14.04 (that provides CMake-2.8). I use CMake-3.3.0 that
I had
to build from source. I use modules.
Is there a specific feature to turn on when building CMake ? HDF5 ?
Or some
missing commands (prepend-path) in module files ? Or any other
suggestions ?
Franck
I'm not much of an expert with CMake and even less with HDF5, but
CMake's HDF5 module is called FindHDF5.cmake . On my Ubuntu 15.04
installation, it is located here:
/usr/share/cmake-3.0/Modules/FindHDF5.cmake
Some suggestions might be:
1) Make sure you are loading your v3.3 FindHDF5.cmake and not the
v2.8 one.
2) Throw in the CMake equivalent of print-statements
[http://www.cmake.org/cmake/help/v3.0/command/message.html] to see
how
things are set.
On my version of CMake (3.0.2), the relevant section in
FindHDF5.cmake
seems to be:
# If the HDF5 include directory was found, open H5pubconf.h to
determine if
# HDF5 was compiled with parallel IO support
set( HDF5_IS_PARALLEL FALSE )
foreach( _dir IN LISTS HDF5_INCLUDE_DIRS )
if( EXISTS "${_dir}/H5pubconf.h" )
file( STRINGS "${_dir}/H5pubconf.h"
HDF5_HAVE_PARALLEL_DEFINE
REGEX "HAVE_PARALLEL 1" )
if( HDF5_HAVE_PARALLEL_DEFINE )
set( HDF5_IS_PARALLEL TRUE )
endif()
endif()
endforeach()
I don't know HDF5 well enough to understand this. It seems to
indicate HDF5 PARALLEL is true if H5pubconf.h is found?
Ray
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5