当前作者各软件的版本:QT5.14.2 + CMAKE 3.29.0 +openCV 4.5.4

Qt配置OpenCV教程,亲测已试过(详细版)_qt opencv-CSDN博客

配置的时候主要参考了以上文章

1.卡FFMPEG: Downloading ffmpeg_version.cmake

出现的第一个问题是在cmake configure的时候卡在
FFMPEG: Downloading ffmpeg_version.cmake from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/ffmpeg_version.cmake
Try 1 failed

这个时候参考这篇文章:
(不用手动下文件)opencv用CMake编译下载失败解决_cmakelists.txt:931 (ocv_register_modules)-CSDN博客

 相当于是换了一个下载的源,实测可以解决

2.mingw32-make: *** [Makefile:165: all] Error 2

这个问题的现象就是在进行mingw32-make -j 8的时候,会到29%,31%,34%这种类似的数字卡住,然后一直重复运行mingw32-make -j 8最终会到66%无法继续往后进行,解决问题时我也有一些发现。

首先是我configue的时候会出现QT6DIR NOTFOUND,这个可能是QT版本的问题,实测这个不影响最终的配置

其次是出现标题这个原因的根本问题一般都是opencv的版本太高了,我测了其余的版本,从上往下一直测,到了当前的4.5.4版本才能直接成功

3.期待大家配置成功,不要放弃,我搞了10多次才搞好

GitHub 加速计划 / opencv31 / opencv
238
21
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:4 个月前 )
6950bedb Use Mat::total() in Darknet IO 6 天前
105a7747 doc: update image codec configuration reference (add AVIF, fix JPEG XL) #28393 This PR updates the build configuration documentation to: - Add AVIF to the supported format list (it was missing). - Clarify that some codecs (AVIF, JPEG XL) do not support BUILD_* options because OpenCV does not bundle their source code. - Update the description to include "write" capabilities for these formats. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake 7 天前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐