Cmake solves the warning problem of compiling opencv_contrib library under opencv

At the beginning, I used opencv4.5.5 and the corresponding contrib library plus cmake3.25. I encountered the following problems:
insert image description here
When this kind of problem occurs, pay attention to see the specific problem, but most of them can't connect to server. This situation is normal It is because the download address is blocked and cannot connect to the server, so my suggestion is to find the CMakeDownloadLog text file in the opencv_bulid cuda folder created by myself, and download the file that has not been downloaded in the specific problem separately, and put it in the corresponding folder. For example: In this kind of problem, you have to download the ffmpeg file. GitHub proxy proxy speeds up downloads here. Note when downloading: Note: 1. https://raw.githubusercontent.com/opencv/opencv_3rdparty/759a23e24ab787a0979f8a93103dcc3105ec10c1/ffmpeg/ffmpeg_version.cmake" cannot be downloaded directly, but directly opened ffmpeg_version.cmake, you can right click on the web page and select save as ffmpeg_version.cmake.txt, and then change it to ffmpeg_version.cmake. If you create a new txt here, then directly copy the content on the web page, and then change the suffix to .cmake, it will not work, and it will prompt that md5 does not match. (I The suggestion is to save as, use VS to open the corresponding file that was empty before, and then use VS to open the file saved as, copy the content of the file saved as directly to the empty file, save the empty file, so that the properties of the file will not change)

insert image description here







2. The md5 signatures of missing files such as opencv_ffmpeg.dll corresponding to different versions of OpenCV are different (you can directly rename them to the name of the original empty file)

If you encounter the following problem:
insert image description here
the prompt is not python2.7 version, but if you have installed python3 version on your computer, you can click Configure again to solve it.

If the first problem has been solved, but the following error is still reported during Configure:
insert image description hereAccording to the error message, the file does not exist, and the file cannot be found even if you look for it. The possible reason is the problem of the cmake version. I used 3.25 before. version, this error occurred. After changing to version 3.24, the problem is solved. cmake download domestic image
insert image description here

Guess you like

Origin blog.csdn.net/m0_56895840/article/details/127966052