我是靠谱客的博主 生动小松鼠,最近开发中收集的这篇文章主要介绍error: ‘cvLoadImage’ was not declared in this scope | 已解决,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

搬砖人:墨理三生

error: ‘cvLoadImage’ was not declared in this scope 已解决

    • 错误梳理
    • 解决方法


错误梳理


在执行 编译 安装 make 时遇到如下报错:

// 运行代码
   98 |         IplImage* img = cvLoadImage(file_path, 1);
// 报错:
error: ‘cvLoadImage’ was not declared in this scope

0-1


解决方法


安装编译 3.4.x 版本的 OpenCV

  • 最简洁的基础版 opencv-3.4.x Linux 下安装教程
  • Win10下VS2019 C++ opencv3.4.x 环境搭建过程

如果博文对您有用,请好看的你多多点赞,谢谢

9-9


最后

以上就是生动小松鼠为你收集整理的error: ‘cvLoadImage’ was not declared in this scope | 已解决的全部内容,希望文章能够帮你解决error: ‘cvLoadImage’ was not declared in this scope | 已解决所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部