Issue with FindHDF5.cmake on Gentoo system
I am facing following issue with hdf5 on Gentoo system:
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find HDF5 (missing: HDF5_INCLUDE_DIRS) (found version "1.8.18")
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindHDF5.cmake:839 (find_package_handle_standard_args)
cmake/Dependencies.cmake:46 (find_package)
CMakeLists.txt:46 (include)
Here is a list of installed files on my system for hdf5 package:
nunik /var/lib/layman/archenroot/dev-libs/caffe # equery f hdf5
* Searching for hdf5 ...
* Contents of sci-libs/hdf5-1.8.18:
/usr
/usr/bin
/usr/bin/h5cc
/usr/bin/h5copy
/usr/bin/h5debug
/usr/bin/h5diff
/usr/bin/h5dump
/usr/bin/h5import
/usr/bin/h5jam
/usr/bin/h5ls
/usr/bin/h5mkgrp
/usr/bin/h5perf_serial
/usr/bin/h5redeploy
/usr/bin/h5repack
/usr/bin/h5repart
/usr/bin/h5stat
/usr/bin/h5unjam
/usr/include
/usr/include/H5ACpublic.h
/usr/include/H5Apublic.h
/usr/include/H5Cpublic.h
/usr/include/H5Dpublic.h
/usr/include/H5Epubgen.h
/usr/include/H5Epublic.h
/usr/include/H5FDcore.h
/usr/include/H5FDdirect.h
/usr/include/H5FDfamily.h
/usr/include/H5FDlog.h
/usr/include/H5FDmpi.h
/usr/include/H5FDmpio.h
/usr/include/H5FDmulti.h
/usr/include/H5FDpublic.h
/usr/include/H5FDsec2.h
/usr/include/H5FDstdio.h
/usr/include/H5Fpublic.h
/usr/include/H5Gpublic.h
/usr/include/H5Ipublic.h
/usr/include/H5Lpublic.h
/usr/include/H5MMpublic.h
/usr/include/H5Opublic.h
/usr/include/H5PLextern.h
/usr/include/H5PLpublic.h
/usr/include/H5Ppublic.h
/usr/include/H5Rpublic.h
/usr/include/H5Spublic.h
/usr/include/H5Tpublic.h
/usr/include/H5Zpublic.h
/usr/include/H5api_adpt.h
/usr/include/H5overflow.h
/usr/include/H5pubconf.h
/usr/include/H5public.h
/usr/include/H5version.h
/usr/include/hdf5.h
/usr/lib64
/usr/lib64/libhdf5.settings
/usr/lib64/libhdf5.so -> libhdf5.so.10.2.1
/usr/lib64/libhdf5.so.10 -> libhdf5.so.10.2.1
/usr/lib64/libhdf5.so.10.2.1
/usr/share
/usr/share/doc
/usr/share/doc/hdf5-1.8.18
/usr/share/doc/hdf5-1.8.18/README.txt.bz2
Note, that Gentoo uses USE flags to enable specific package features. In case of HDF5 I have lots of them disabled (by Gentoo default config):
nunik /var/lib/layman/archenroot/dev-libs/caffe # equery u hdf5
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for sci-libs/hdf5-1.8.18:
U I
- - cxx : Build support for C++ (bindings, extra libraries, code generation, ...)
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
- - examples : Install examples, usually source code
- - fortran : Add support for fortran
- - fortran2003 : Enable new features that require Fortran 2003
(http://www.hdfgroup.org/HDF5/doc/fortran/NewFeatures_F2003.pdf)
- - hl : Enable high level API (https://support.hdfgroup.org/HDF5/doc/HL/index.html)
- - mpi : Add MPI (Message Passing Interface) layer to the apps that support it
- - static-libs : Build static versions of dynamic libraries as well
- - szip : Use the szip compression library
+ + threads : Add threads support for various packages. Usually pthreads
+ + zlib : Add support for zlib (de)compression
Not sure if one or more are required to make it working, maybe the hl to enable high level API? Any suggestions welcomed.