Tag Archives: #OpenCVConfiguration VS

Error resolution-“Error in configuration process, project files may be invalid” appears when Cmake compiles openCV


error occurs when cmake compiles opencv

error paste as follows:
` `
A wrong
Can’t detect runtime and/or arch
FP16: Compiler support is available
CMake Warning at cmake/OpenCVUtils.cmake:1020 (message):
Download: Local copy of opencv_ffmpeg.dll has invalid MD5 hash:
6048172a1d2ebdc53194abc93c0e7c4a (expected:
f081abd9d6ca7e425d340ce586f9c090)
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:219 (include)
CMakeLists.txt:557 (include)

Downloading opencv_ffmpeg. DLL…
CMake Error at cmake/OpenCVUtils.cmake:1043 (file):
file DOWNLOAD HASH mismatch

for file: [E:/Files/openCV/opencv/sources/3rdparty/ffmpeg/downloads/f081abd9d6ca7e425d340ce586f9c090/opencv_ffmpeg.dll]
expected hash: [f081abd9d6ca7e425d340ce586f9c090]
actual hash: D97fa2ee09c8ee442db07b6367ca [3108]
the status: [28; “Timeout was reached”]
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:219 (include)
CMakeLists.txt:557 (include)
CMake Error at cmake/OpenCVUtils.cmake:1047 (message):
Failed to download opencv_ffmpeg.dll. Status=28; “The Timeout was reached”
the Call Stack (the most recent Call first) :
3 rdparty/ffmpeg/ffmpeg. Cmake: 10 (ocv_download)
cmake/OpenCVFindLibsVideo cmake: 219 (include)
CMakeLists. TXT: 557 (include)

Configuring incomplete, errors occurred!
See also “E:/Files/openCV/openCV/newbuild CMakeFiles/CMakeOutput log”.
See also “E:/Files/openCV/openCV/newbuild/CMakeFiles/CMakeError log”.
This is because FFMpeg did not download successfully
Open path E: \ Files \ openCV, openCV, sources, 3 rdparty \ ffmpeg \ ffmpeg cmake in the download address (openCV download address before half save position may be different)
here it is important to note that the download address to converted (yellow parts are replaced with another yellow box) box last green added to the end of the
as a convenience to see clearly, my download address as follows, slightly more than once to see:
https://raw.githubusercontent.com/opencv/opencv_3rdparty/2a19d0006415955c79431116e4634f04d5eb5a74/ffmpeg/opencv_ffmpeg.dll
https://raw.githubusercontent.com/opencv/opencv_3rdparty/2a19d0006415955c79431116e4634f04d5eb5a74/ffmpeg/opencv_ffmpeg_64.dll
https://raw.githubusercontent.com/opencv/opencv_3rdparty/2a19d0006415955c79431116e4634f04d5eb5a74/ffmpeg/opencv_ffmpeg_64.dll
In addition also need to know what the hash value of the three files downloaded: query tool https://download.csdn.net/download/xubuhui/12032166
tool to use: click the exe after installation to find need query file right click -> properties can see the corresponding MD5

opencv_ffmpeg. DLL MD5: F081ABD9D6CA7E425D340CE586F9C090
MD5 opencv_ffmpeg_64. DLL: A423363A6EB76D362CA6C406C96C8DB6
A44febe61bd47e404aacd746ff ffmpeg_version. Cmake MD5:216942
Place the downloaded file into the appropriate folder

E:\Files\openCV\opencv\sources\3rdparty\ffmpeg\downloads\F081ABD9D6CA7E425D340CE586F9C090

  
  

1

E:\Files\openCV\opencv\sources\3rdparty\ffmpeg\downloads\A423363A6EB76D362CA6C406C96C8DB6

  
  

1

E:\Files\openCV\opencv\sources\3rdparty\ffmpeg\downloads\216942A44FEBE61BD47E404AACD746FF

  
  

1
Configure
. Configure
. Configure
.

Can't detect runtime and/or arch
FP16: Compiler support is available
Downloading ffmpeg_version.cmake...
Downloading ffmpeg_version.cmake... Done
ICV: Downloading ippicv_windows_20151201.zip...
CMake Error at 3rdparty/ippicv/downloader.cmake:73 (file):
file DOWNLOAD HASH mismatch

for file: [E:/Files/openCV/opencv/sources/3rdparty/ippicv/downloads/windows-04e81ce5d0e329c3fbc606ae32cad44d/ippicv_windows_20151201.zip]
expected hash: [04 e81ce5d0e329c3fbc606ae32cad44d]
actual hash: e31e3fa2b51979a82c654e0b05c376 [72]
the status: [28; "Timeout was reached"]
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:243 (include)
cmake/OpenCVFindLibsPerf.cmake:37 (include)
CMakeLists.txt:558 (include)
CMake Error at 3rdparty/ippicv/downloader.cmake:77 (message):
ICV: Failed to download ICV package: ippicv_windows_20151201.zip.
Status=28; "The Timeout was reached"
the Call Stack (the most recent Call first) :
3 rdparty/ippicv/downloader. Cmake: 110 (_icv_downloader)
cmake/OpenCVFindIPP cmake: 243 (include)
cmake/OpenCVFindLibsPerf.cmake:37 (include)
CMakeLists.txt:558 (include)
Configuring incomplete, errors occurred!
See also "E:/Files/openCV/openCV/newbuild CMakeFiles/CMakeOutput log".
See also "E:/Files/openCV/openCV/newbuild/CMakeFiles/CMakeError log".

1234567891011121314151617181920212223242526272829
Ippicv did not download successfully
E:\Files\openCV\ openCV\ sources\3rdparty\ippicv\downloader. Cmake

https://raw.githubusercontent.com/opencv/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_windows_20151201.zip
https://raw.githubusercontent.com/opencv/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_macosx_20151201.tgz
https://raw.githubusercontent.com/opencv/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_linux_20151201.tgz
use MD5 hash query tools inquires at this time
the file save my computer is Windows have to I will not show other
Into the path of the E: \ Files \ openCV, openCV, sources, 3 rdparty \ ippicv \ downloads \ Windows - 04 e81ce5d0e329c3fbc606ae32cad44d
cmake returns again after the file into the corresponding directory
Error 2
There is another error

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
linked by target "opencv_cudev" in directory E:/Files/openCV/opencv/sources/modules/cudev
linked by target "opencv_cudev" in directory E:/Files/openCV/opencv/sources/modules/cudev
linked by target "opencv_test_cudev" in directory E:/Files/openCV/opencv/sources/modules/cudev/test
linked by target "opencv_core" in directory E:/Files/openCV/opencv/sources/modules/core
linked by target "opencv_core" in directory E:/Files/openCV/opencv/sources/modules/core
linked by target "opencv_test_core" in directory E:/Files/openCV/opencv/sources/modules/core
linked by target "opencv_perf_core" in directory E:/Files/openCV/opencv/sources/modules/core
linked by target "opencv_test_cudaarithm" in directory E:/Files/openCV/opencv/sources/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory E:/Files/openCV/opencv/sources/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory E:/Files/openCV/opencv/sources/modules/cudaarithm
linked by target "opencv_perf_cudaarithm" in directory E:/Files/openCV/opencv/sources/modules/cudaarithm
linked by target "opencv_flann" in directory E:/Files/openCV/opencv/sources/modules/flann
linked by target "opencv_flann" in directory E:/Files/openCV/opencv/sources/modules/flann
linked by target "opencv_test_flann" in directory E:/Files/openCV/opencv/sources/modules/flann
linked by target "opencv_imgproc" in directory E:/Files/openCV/opencv/sources/modules/imgproc
linked by target "opencv_imgproc" in directory E:/Files/openCV/opencv/sources/modules/imgproc
linked by target "opencv_test_imgproc" in directory E:/Files/openCV/opencv/sources/modules/imgproc
linked by target "opencv_perf_imgproc" in directory E:/Files/openCV/opencv/sources/modules/imgproc
linked by target "opencv_test_ml" in directory E:/Files/openCV/opencv/sources/modules/ml
linked by target "opencv_ml" in directory E:/Files/openCV/opencv/sources/modules/ml
linked by target "opencv_ml" in directory E:/Files/openCV/opencv/sources/modules/ml
linked by target "opencv_test_video" in directory E:/Files/openCV/opencv/sources/modules/video
linked by target "opencv_video" in directory E:/Files/openCV/opencv/sources/modules/video
linked by target "opencv_video" in directory E:/Files/openCV/opencv/sources/modules/video
linked by target "opencv_perf_video" in directory E:/Files/openCV/opencv/sources/modules/video
linked by target "opencv_cudabgsegm" in directory E:/Files/openCV/opencv/sources/modules/cudabgsegm
linked by target "opencv_cudabgsegm" in directory E:/Files/openCV/opencv/sources/modules/cudabgsegm
linked by target "opencv_test_cudabgsegm" in directory E:/Files/openCV/opencv/sources/modules/cudabgsegm
linked by target "opencv_perf_cudabgsegm" in directory E:/Files/openCV/opencv/sources/modules/cudabgsegm
linked by target "opencv_cudafilters" in directory E:/Files/openCV/opencv/sources/modules/cudafilters
linked by target "opencv_cudafilters" in directory E:/Files/openCV/opencv/sources/modules/cudafilters
linked by target "opencv_test_cudafilters" in directory E:/Files/openCV/opencv/sources/modules/cudafilters
linked by target "opencv_perf_cudafilters" in directory E:/Files/openCV/opencv/sources/modules/cudafilters
linked by target "opencv_cudaimgproc" in directory E:/Files/openCV/opencv/sources/modules/cudaimgproc
linked by target "opencv_cudaimgproc" in directory E:/Files/openCV/opencv/sources/modules/cudaimgproc
linked by target "opencv_test_cudaimgproc" in directory E:/Files/openCV/opencv/sources/modules/cudaimgproc
linked by target "opencv_perf_cudaimgproc" in directory E:/Files/openCV/opencv/sources/modules/cudaimgproc
linked by target "opencv_perf_cudawarping" in directory E:/Files/openCV/opencv/sources/modules/cudawarping
linked by target "opencv_cudawarping" in directory E:/Files/openCV/opencv/sources/modules/cudawarping
linked by target "opencv_cudawarping" in directory E:/Files/openCV/opencv/sources/modules/cudawarping
linked by target "opencv_test_cudawarping" in directory E:/Files/openCV/opencv/sources/modules/cudawarping
linked by target "opencv_imgcodecs" in directory E:/Files/openCV/opencv/sources/modules/imgcodecs
linked by target "opencv_imgcodecs" in directory E:/Files/openCV/opencv/sources/modules/imgcodecs
linked by target "opencv_test_imgcodecs" in directory E:/Files/openCV/opencv/sources/modules/imgcodecs
linked by target "opencv_perf_imgcodecs" in directory E:/Files/openCV/opencv/sources/modules/imgcodecs
linked by target "opencv_perf_photo" in directory E:/Files/openCV/opencv/sources/modules/photo
linked by target "opencv_photo" in directory E:/Files/openCV/opencv/sources/modules/photo
linked by target "opencv_photo" in directory E:/Files/openCV/opencv/sources/modules/photo
linked by target "opencv_test_photo" in directory E:/Files/openCV/opencv/sources/modules/photo
linked by target "opencv_test_shape" in directory E:/Files/openCV/opencv/sources/modules/shape
linked by target "opencv_shape" in directory E:/Files/openCV/opencv/sources/modules/shape
linked by target "opencv_shape" in directory E:/Files/openCV/opencv/sources/modules/shape
linked by target "opencv_test_videoio" in directory E:/Files/openCV/opencv/sources/modules/videoio
linked by target "opencv_videoio" in directory E:/Files/openCV/opencv/sources/modules/videoio
linked by target "opencv_videoio" in directory E:/Files/openCV/opencv/sources/modules/videoio
linked by target "opencv_perf_videoio" in directory E:/Files/openCV/opencv/sources/modules/videoio
linked by target "opencv_cudacodec" in directory E:/Files/openCV/opencv/sources/modules/cudacodec
linked by target "opencv_cudacodec" in directory E:/Files/openCV/opencv/sources/modules/cudacodec
linked by target "opencv_perf_cudacodec" in directory E:/Files/openCV/opencv/sources/modules/cudacodec
linked by target "opencv_test_cudacodec" in directory E:/Files/openCV/opencv/sources/modules/cudacodec
linked by target "opencv_highgui" in directory E:/Files/openCV/opencv/sources/modules/highgui
linked by target "opencv_highgui" in directory E:/Files/openCV/opencv/sources/modules/highgui
linked by target "opencv_test_highgui" in directory E:/Files/openCV/opencv/sources/modules/highgui
linked by target "opencv_perf_objdetect" in directory E:/Files/openCV/opencv/sources/modules/objdetect
linked by target "opencv_objdetect" in directory E:/Files/openCV/opencv/sources/modules/objdetect
linked by target "opencv_objdetect" in directory E:/Files/openCV/opencv/sources/modules/objdetect
linked by target "opencv_test_objdetect" in directory E:/Files/openCV/opencv/sources/modules/objdetect
linked by target "opencv_ts" in directory E:/Files/openCV/opencv/sources/modules/ts
linked by target "opencv_ts" in directory E:/Files/openCV/opencv/sources/modules/ts
linked by target "opencv_test_features2d" in directory E:/Files/openCV/opencv/sources/modules/features2d
linked by target "opencv_features2d" in directory E:/Files/openCV/opencv/sources/modules/features2d
linked by target "opencv_features2d" in directory E:/Files/openCV/opencv/sources/modules/features2d
linked by target "opencv_perf_features2d" in directory E:/Files/openCV/opencv/sources/modules/features2d
linked by target "opencv_calib3d" in directory E:/Files/openCV/opencv/sources/modules/calib3d
linked by target "opencv_calib3d" in directory E:/Files/openCV/opencv/sources/modules/calib3d
linked by target "opencv_test_calib3d" in directory E:/Files/openCV/opencv/sources/modules/calib3d
linked by target "opencv_perf_calib3d" in directory E:/Files/openCV/opencv/sources/modules/calib3d
linked by target "opencv_cudafeatures2d" in directory E:/Files/openCV/opencv/sources/modules/cudafeatures2d
linked by target "opencv_cudafeatures2d" in directory E:/Files/openCV/opencv/sources/modules/cudafeatures2d
linked by target "opencv_test_cudafeatures2d" in directory E:/Files/openCV/opencv/sources/modules/cudafeatures2d
linked by target "opencv_perf_cudafeatures2d" in directory E:/Files/openCV/opencv/sources/modules/cudafeatures2d
linked by target "opencv_cudalegacy" in directory E:/Files/openCV/opencv/sources/modules/cudalegacy
linked by target "opencv_cudalegacy" in directory E:/Files/openCV/opencv/sources/modules/cudalegacy
linked by target "opencv_test_cudalegacy" in directory E:/Files/openCV/opencv/sources/modules/cudalegacy
linked by target "opencv_perf_cudalegacy" in directory E:/Files/openCV/opencv/sources/modules/cudalegacy
linked by target "opencv_cudaobjdetect" in directory E:/Files/openCV/opencv/sources/modules/cudaobjdetect
linked by target "opencv_cudaobjdetect" in directory E:/Files/openCV/opencv/sources/modules/cudaobjdetect
linked by target "opencv_perf_cudaobjdetect" in directory E:/Files/openCV/opencv/sources/modules/cudaobjdetect
linked by target "opencv_test_cudaobjdetect" in directory E:/Files/openCV/opencv/sources/modules/cudaobjdetect
linked by target "opencv_cudaoptflow" in directory E:/Files/openCV/opencv/sources/modules/cudaoptflow
linked by target "opencv_cudaoptflow" in directory E:/Files/openCV/opencv/sources/modules/cudaoptflow
linked by target "opencv_test_cudaoptflow" in directory E:/Files/openCV/opencv/sources/modules/cudaoptflow
linked by target "opencv_perf_cudaoptflow" in directory E:/Files/openCV/opencv/sources/modules/cudaoptflow
linked by target "opencv_perf_cudastereo" in directory E:/Files/openCV/opencv/sources/modules/cudastereo
linked by target "opencv_cudastereo" in directory E:/Files/openCV/opencv/sources/modules/cudastereo
linked by target "opencv_cudastereo" in directory E:/Files/openCV/opencv/sources/modules/cudastereo
linked by target "opencv_test_cudastereo" in directory E:/Files/openCV/opencv/sources/modules/cudastereo
linked by target "opencv_test_stitching" in directory E:/Files/openCV/opencv/sources/modules/stitching
linked by target "opencv_stitching" in directory E:/Files/openCV/opencv/sources/modules/stitching
linked by target "opencv_stitching" in directory E:/Files/openCV/opencv/sources/modules/stitching
linked by target "opencv_perf_stitching" in directory E:/Files/openCV/opencv/sources/modules/stitching
linked by target "opencv_superres" in directory E:/Files/openCV/opencv/sources/modules/superres
linked by target "opencv_superres" in directory E:/Files/openCV/opencv/sources/modules/superres
linked by target "opencv_test_superres" in directory E:/Files/openCV/opencv/sources/modules/superres
linked by target "opencv_perf_superres" in directory E:/Files/openCV/opencv/sources/modules/superres
linked by target "opencv_videostab" in directory E:/Files/openCV/opencv/sources/modules/videostab
linked by target "opencv_videostab" in directory E:/Files/openCV/opencv/sources/modules/videostab
linked by target "opencv_traincascade" in directory E:/Files/openCV/opencv/sources/apps/traincascade
linked by target "opencv_createsamples" in directory E:/Files/openCV/opencv/sources/apps/createsamples
linked by target "opencv_annotation" in directory E:/Files/openCV/opencv/sources/apps/annotation
linked by target "opencv_visualisation" in directory E:/Files/openCV/opencv/sources/apps/visualisation
linked by target "opencv_version" in directory E:/Files/openCV/opencv/sources/apps/version
Configuring incomplete, errors occurred!
See also "E:/Files/openCV/opencv/newbuild/CMakeFiles/CMakeOutput.log".
See also "E:/Files/openCV/opencv/newbuild/CMakeFiles/CMakeError.log".

 
 

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210 3104105106107108109110111112113114115116117118
Look at this article, it's good, just do it.
https://stackoverflow.com/questions/46584000/cmake-error-variables-are-set-to-notfound
How do I download the Protobuf-CPP file?
Open the path E:\Files\openCV\opencv_contrib-3.2.0\ modules\ DNN \cmake\download_protobuf. Cmake
and open
to put the two together for download: my download is
https://github.com/google/protobuf/releases/download/v3.1.0/protobuf-cpp-3.1.0.tar.gz
Error of three

CMake Error at CMakeLists.txt:98 (project):
  No CMAKE_CXX_COMPILER could be found.

CMake Error at CMakeLists.txt:98 (project):
No CMAKE_C_COMPILER could be found.

1234567