我在 2019 64 位版本中使用 MSVC 為帶有 Qt 的 Windows 編譯 openCV。
在啟動第一個配置時,我得到一些錯誤串列,如下所示:
Check size of size_t
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'C:/Users/alejandro/Downloads/opencv/build/CMakeFiles/CheckTypeSize/SIZEOF_SIZE_T.bin'
Recorded try_compile output location doesn't exist:
C:/Users/alejandro/Downloads/opencv/build/CMakeFiles/CMakeScratch/TryCompile-jglvcw/Debug/cmTC_e9d0b.exe
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libjpeg-turbo/CMakeLists.txt:25 (check_type_size)
有誰知道我該如何解決這個問題?
編輯 1
我已經看到另一個重要的錯誤是與 OpenMP 相關的:
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/FindOpenMP.cmake:420 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'C:/Users/alejandro/Downloads/opencv/build/CMakeFiles/FindOpenMP/ompver_C.bin'
Recorded try_compile output location doesn't exist:
C:/Users/alejandro/Downloads/opencv/build/CMakeFiles/CMakeScratch/TryCompile-q8quzk/Debug/cmTC_e2ecd.exe
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.25/Modules/FindOpenMP.cmake:560 (_OPENMP_GET_SPEC_DATE)
C:/Program Files/CMake/share/cmake-3.25/Modules/FindBLAS.cmake:768 (find_package)
C:/Program Files/CMake/share/cmake-3.25/Modules/FindLAPACK.cmake:247 (find_package)
C:/Program Files/CMake/share/cmake-3.25/Modules/FindLAPACK.cmake:283 (_lapack_find_dependency)
cmake/OpenCVFindLAPACK.cmake:176 (find_package)
CMakeLists.txt:733 (include)
uj5u.com熱心網友回復:
我遇到了同樣的問題,是 CMake-3.25.0-rc2 故障,將其更改為 3.24.2 即可。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/519706.html
標籤:C opencv制作
上一篇:pythonopencv我如何為具有不同顏色和亮度的相同形狀匹配模板
下一篇:(-215:斷言失敗)總計>=0&&(深度==CV_32F||深度==CV_32S)在函式'cv::convexHull'中
