在编译opencv_contrib/modules/xfeatures2d时会提示找不到boostdesc_bgm.i,即boostdesc.cpp:653:37: fatal error: boostdesc_bgm.i: No such file or directory,解决方法是手动下载所需的*.i文件,然后将这些*.i文件拷贝到opencv_contrib/modules/xfeatures2d/src目录下,重新编译即可
Ubuntu18.04+OpenCV3.2.0进行源码编译安装时,可能会出现Failed to download vgg_generated_48.i等系列错误。现把相关文件通过zip打包下载,下载后解压,按需替换相应目录里面的同名文件即可,比如:把vgg_generated_48.i文件拷贝到/opencv_contrib-3.2.0/modules/xfeatures2d/cmake/.download/e8d0dcd54d1bcfdc29203d011a797179文件夹下面替换同名文件。
/home/pi/Downloads/opencv_contrib-4.1.1/modules/xfeatures2d/src/boostdesc.cpp:654:20:fatal error :boostdesc_bgm.i:No such file or directory
#include "boostdesc_bgm.i"