Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Intel Caffe Compilation Error HDF5

CPati2
New Contributor III
1,467 Views

Hi All,

I am building Intel Caffe on my system, but I am getting following Could NOT find HDF5 error. I spent many hours figuring out work around this, but still no success. I didn't encounter such issue when I build Caffe for first time. Any suggestion will be helpful.

cmake -DCPU_ONLY=on -DBLAS=mkl -DUSE_MKL2017_AS_DEFAULT_ENGINE=o ..

-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- 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
-- 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
-- Boost version: 1.53.0
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   regex
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Found GFlags: /usr/local/include
-- Found gflags  (include: /usr/local/include, library: /usr/local/lib/libgflags.a)
-- Found Glog: /usr/local/include
-- Found glog    (include: /usr/local/include, library: /usr/local/lib/libglog.so)
-- Found PROTOBUF: /usr/lib64/libprotobuf.so
-- Found PROTOBUF Compiler: /usr/bin/protoc
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindHDF5.cmake:347 (find_package_handle_standard_args)
  cmake/Dependencies.cmake:42 (find_package)
  CMakeLists.txt:50 (include)

Thanks.

0 Kudos
1 Solution
CPati2
New Contributor III
1,467 Views

Hi All,

I solved this issue. Since, I had to re-install CentOS, a specific package repo was required:

sudo yum install –y epel-release
sudo yum-config-manager --enable epel
sudo yum install hdf5-devel

Thanks.

View solution in original post

0 Kudos
1 Reply
CPati2
New Contributor III
1,468 Views

Hi All,

I solved this issue. Since, I had to re-install CentOS, a specific package repo was required:

sudo yum install –y epel-release
sudo yum-config-manager --enable epel
sudo yum install hdf5-devel

Thanks.

0 Kudos
Reply