CMake Error at cmake/OpenCVUtils.cmake


CMake Error at cmake/OpenCVUtils.cmake:1047 (message): Failed to download . Status= Call Stack (most recent call first): ../opencv_contrib/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download) ../opencv_contrib/modules/dnn/CMakeLists.txt:5 (include)



解決:到/opencv_contrib/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake中,並打開編輯,
FILENAMEPACKAGE替代

uses FILENAME as the first parameter, but should be using PACKAGE instead.

同樣適用於其他的.cmake error

參考:
https://stackoverflow.com/questions/43081022/ubuntu-opencv-not-compiling


I think I've found the issue, though. I opened an issue in the opencv_contrib github. There is a call to ocv_download in the dnn and xfeatures2d cmake files that uses FILENAME as the first parameter, but should be using PACKAGE instead. When I changed the parameters to PACKAGE, CMake successfully configured opencv with the opencv_contrib modules.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM