Question:
When configuring Caffe-SSD today, I was ready to compile Caffe when I encountered:
When configuring Caffe-SSD today, I was ready to compile Caffe when I encountered:
fatal error: hdf5.h: No such file or directory compilation terminated.
Such problems are shown in the following figure:
The reason is that the header file for HDF5.h was not found.
Solutions:
1. Modify makefile.config file
Go to the download directory for Caffe
In the makefile.config file, hold down CRTL + F to search: INCLUDE_DIRS
Note that it’s not makefile.config. example!!
Add/usr/include/hdf5/serial/to INCLUDE_DIRS
Namely, the original:
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
Now it’s:
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
2. Modify the Makefile file
In the Makefile file, press and hold CRTL + F to search: LIBRARIES +=
Note that this is not the makefile.config from step 1 above!!
Change HDF5_HL and HDF5 to HDF5_SERIal_HL and HDF5_serial.
Namely, the original:
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
Now it’s:
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial
Results:
Read More:
- fatal error: Python.h: No such file or directory compilation terminated.
- [Caffe] fatal error: hdf5.h: No such file or directory error solution
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- fatal error: Python.h: No such file or directory
- fatal error: Python.h: No such file or directory
- [C]fatal error: mysql.h: No such file or directory
- Install python’s C extension compilation environment under windows (solve “error: command’cl.exe’ failed: No such file or directory”)
- Fatal error in CentOS: Python. H: no that file or directory
- fatal error: openssl/bio.h: No such file or directory settlement programme
- Compiling the pi_kernel source code appears: fatal error: openssl/opensslv.h: No such file or directory
- [Solved] Docker ubuntu swoole fatal error: openssl/ssl.h: No such file or directory
- Linux QT download / usr / include / C + + / 7/ cstdlib:75 : 15: fatal error: stdlib. H: no such file or directory error
- Cannot open include file: ‘io.h‘: No such file or directory
- RCurl error-fatal error: curl/curl.h: No such file or directory
- A fatal error C1083 occurred when compiling C + + code under. Net: unable to open the include file: “xuhk”_ Jnihelloworld. H “: solution to no such file or directory error.
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- 【linux】error: stdio.h: No such file or directory
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio