Ask Your Question
0

Build Errors With OpenCV 3.0 - VS2012 - Win 8.1 - CUDA 7.0

asked 2015-11-22 21:26:38 -0600

jpistorino gravatar image

I am trying to build OpenCV 3.0 on the above platform (64 bit) and am running into an error doing what would seem to be the most straight forward approach.

First, I downloaded OpenCV 3.0 and OpenCV_contrib modules.

Second, using CMake 3.0.1, I edited the configuration to specify the OpenCV_contrib location and also turned off building:

BUILD_CUDA_STUBS
BUILD_EXAMPLES
BUILD_LIBPROTBUF_FROM_SOURCES
BUILD_TBB
BUILD_WITH_DYNAMIC_IPP
BUILD_opencv_contrib_world
BUILD_opencv_face
BUILD_opencv_line_descriptor
BUILD_opencv_saliency
BUILD_opencv_world

When I compile, I get ========== Rebuild All: 116 succeeded, 12 failed, 53 skipped ==========

The first project that fails reports:

123>  joint_bilateral_filter.cpp
123>  seeds.cpp
123>  sparse_match_interpolators.cpp
123>C:\opencv_contrib-master\modules\ximgproc\src\sparse_match_interpolators.cpp(173): error C2039: 'isVector' : is not a member of 'cv::_InputArray'
123>          C:\opencv\sources\modules\core\include\opencv2/core/mat.hpp(147) : see declaration of 'cv::_InputArray'
123>          C:\opencv\sources\modules\core\include\opencv2/core/mat.hpp(147) : see declaration of 'cv::_InputArray'
123>  structured_edge_detection.cpp
108>C:\opencv\sources\modules\core\include\opencv2/core/base.hpp(342): warning : function declared with "noreturn" does return
108>  
123>
123>Build FAILED.

Any ideas on how to fix this?

Thanks, James

edit retag flag offensive close merge delete

Comments

Are both repositories the latest master branch from github?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-23 04:54:59 -0600 )edit

I think so. I downloaded basic OpenCV through OpenCV.org and chose the Windows version as of Nov 6. The opencv_contrib module was downloaded from github on Nov. 20.

jpistorino gravatar imagejpistorino ( 2015-11-23 09:07:39 -0600 )edit

Then they do not match. Download both master branches from github please.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-24 02:50:24 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-12-14 20:57:51 -0600

jpistorino gravatar image

Steve had the answer. You have to download everything from Github and cannot use what is directly on the OpenCV website if you are using the contrib module. Once I did that, everything worked fine.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-22 21:26:38 -0600

Seen: 492 times

Last updated: Dec 14 '15