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

亲测有效。

posted @ 2017-08-14 10:04  sonwying  阅读(683)  评论(0编辑  收藏  举报