Ask Your Question
0

Cmake Errors

asked May 10 '17

Hi guys, I'm using CMAKE-GUI to configure and generate the files for installing OPENCV and link it with my Qt 5.8. I'm doing it on a Ubuntu 16.04 system, using opencv 3.2.0 and opencv_contrib 3.2.0

Apparently I'm having several errors related to the opencv_contrib usage. I've already Configurate OPENCV using CMAKE-GUI, without the CONTRIB modules and everything went all right. But I've tried to add the contrib modules a few times and was never able to do it. So, I've uninstalled everything and I'm doing it from the scratch.

I'm still having several errors and I didn't find any help to them so far. I'll be linking the several errors below.

CMake Error at .../opencv-3.2.0-source/cmake/OpenCVUtils.cmake:1005 (file): file MD5 failed to read file ".../opencv/opencv-3.2.0-debug/3rdparty/protobuf/": Sucess Call Stack (most recent call first): ../opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download) ../opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)

Downloading ... CMake Error at .../opencv-3.2.0-source/cmake/OpenCVUtils.cmake:1043 (file): file DOWNLOAD cannot open file for write. Call Stack (most recent call first): .../opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download) .../opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)

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

Preview: (hide)

Comments

I have same problem. are you resolve it?

anhnamxtanh gravatar imageanhnamxtanh (Jun 17 '17)edit

Is necessary to remove this from includes. I use OpenCV 3.1 and I removed it and now all is well :D That's my solution. For me was a good solution :D @anhnamxtanh

Laurentiu gravatar imageLaurentiu (Aug 3 '17)edit

1 answer

Sort by » oldest newest most voted
0

answered May 11 '17

Laurentiu gravatar image

Is necessary to remove this from includes. I use OpenCV 3.1 and I removed it and now all is well :D

Preview: (hide)

Comments

Thanks for the answer. In fact, I've downloaded protobuff from their github, but now I'm with errors on other downloads. It seems that my cmake+opencv cannot download dependencies. Anyway, I'll be unchecking all unnecessary modules from contrib.

TMiranda gravatar imageTMiranda (May 12 '17)edit

Question Tools

1 follower

Stats

Asked: May 10 '17

Seen: 1,142 times

Last updated: May 10 '17