问题描述
我正在尝试使用在http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/opencv上找到的opencv_4.4.0.bb配方将OpenCV 4.4.0包含在我的Yocto构建中 我的Yocto版本是2.2.0(Morty)。
构建opencv_3.4.3时没有任何问题。但是,使用bitbake构建4.4.0时遇到错误:
bitbake opencv
。
这是错误日志的一部分:
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp: In function 'cv::Mat cv::intensity_transform::solveLinearEquation(const cv::Mat_<float>&,cv::Mat_<float>&,float)':
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp:136:10: error: 'Index' is not a member of 'Eigen'
for (Eigen::Index i = 0; i < tempx.rows(); i++)
^~~~~
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp:136:30: error: 'i' was not declared in this scope
for (Eigen::Index i = 0; i < tempx.rows(); i++)
^
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp:145:10: error: 'Index' is not a member of 'Eigen'
for (Eigen::Index j = 0; j < tempy.cols(); j++)
^~~~~
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp:145:30: error: 'j' was not declared in this scope
for (Eigen::Index j = 0; j < tempy.cols(); j++)
^
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp:158:10: error: 'Index' is not a member of 'Eigen'
for (Eigen::Index j = 0; j < W_h.cols(); j++)
^~~~~
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp:158:30: error: 'j' was not declared in this scope
for (Eigen::Index j = 0; j < W_h.cols(); j++)
^
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp:160:14: error: 'Index' is not a member of 'Eigen'
for (Eigen::Index i = 0; i < W_h.rows(); i++)
^~~~~
/media/phyvm/dubuk/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabI/Opencv/4.4.0-r0/contrib/modules/intensity_transform/src/bimef.cpp:160:34: error: 'i' was not declared in this scope
for (Eigen::Index i = 0; i < W_h.rows(); i++)
我试图在线搜索这些错误,但是找不到类似的东西。似乎头文件可能丢失或不是最新的,但我不确定。有人遇到过Opencv4这些问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)