Ask Your Question
0

Build error Open CV3.2 with Extra Libs.

asked 2017-05-12 04:38:51 -0600

Nicseo gravatar image

Hi all, I have a problem to build OpenCV with Extra Libs.

OS: Win 7 OpenCV: 3.2 Compile: VS2013

After set path of extra modules in OPENCV_EXTRA_MODULES_PATH, click "configure" The error messages are shown and stopped.

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

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)*

Any idea? Images are attached for your reference. image description image description

edit retag flag offensive close merge delete

Comments

with a screen I have to copy myself your error message : "file download cannot open file for write" cmake cannot save file . check your install ....

LBerger gravatar imageLBerger ( 2017-05-12 07:15:25 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2017-05-12 08:37:39 -0600

In fact, I was having the same problem. As mentioned before, it appears that OPENCV cannot download extra modules. I've solved it for protobuff by downloading remotely from their github, but you will find more errors on the way, probably.

My tip is: uncheck all unnecessary contrib modules. That will minimize the errors. Another option is trying to change the opencv installation location, but I don't know if that's going to work.

I'm using Ubuntu 16.04 and I'm currently with the same errors.

edit flag offensive delete link more

Comments

As soon as you download and configure protobuff, the Protobuf_LIBS will be updated with the currently installated location on your machine

TMiranda gravatar imageTMiranda ( 2017-05-12 08:41:50 -0600 )edit
0

answered 2017-05-12 08:38:44 -0600

mshabunin gravatar image

You have to use same version of opencv and opencv_contrib repositories. Both should be synced either to 3.2.0 tag, either to master branch.

After updating cmake scripts, you have to make a clean build (with empty build directory).

edit flag offensive delete link more

Comments

What do you mean by updating cmake scripts?

TMiranda gravatar imageTMiranda ( 2017-05-12 08:46:13 -0600 )edit

For example when you run git checkout, many files in repository will be updated, including cmake scripts.

mshabunin gravatar imagemshabunin ( 2017-05-12 08:49:43 -0600 )edit

Yep, you're right. I've just downloaded opencv-3.2.0-rc and opencv_contrib-3.2.0-rc and everything has been configurated and installed just fine.

TMiranda gravatar imageTMiranda ( 2017-05-12 10:02:09 -0600 )edit
0

answered 2017-05-12 07:08:59 -0600

kbarni gravatar image

If you don't need deep neural networks with Caffe support, just uncheck BUILD_PROTOBUF (and the DNN related stuff). The error message shows that it tried to download the Protobuf sources for local build, but it didn't succeed.

If you need DNN, it's probably better to install Protobuf and Caffe separately before building OpenCV. I had similar issues while trying to build OpenCV on Windows with DNN.

edit flag offensive delete link more

Comments

No problem with dnn and windows.

LBerger gravatar imageLBerger ( 2017-05-12 07:13:11 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-05-12 04:37:50 -0600

Seen: 1,434 times

Last updated: May 12 '17