ubuntu16.04 安装Opencv 3.1.0 fatal error: hdf5.h: 没有那个文件或目录

安装时参考教程:http://www.pyimagesearch.com/2015/07/27/installing-opencv-3-0-for-both-python-2-7-and-python-3-on-your-raspberry-pi-2/

遇到问题

In file included from /home/snowying/opencv-3.1.0/build/modules/python2/pyopencv_generated_include.h:11:0,
                 from /home/snowying/opencv-3.1.0/modules/python/src2/cv2.cpp:12:
/home/snowying/opencv_contrib-3.1.0/modules/hdf/include/opencv2/hdf/hdf5.hpp:40:18: fatal error: hdf5.h: 没有那个文件或目录

解决方法:https://github.com/opencv/opencv/issues/6016

亲测有效。

转载于:https://www.cnblogs.com/snowying/p/7356280.html

你可能感兴趣的:(ubuntu16.04 安装Opencv 3.1.0 fatal error: hdf5.h: 没有那个文件或目录)