Ask Your Question
0

Win Build error cv::sqrt ambiguous call

asked 2015-12-21 08:39:34 -0600

Terry gravatar image

Hi, I downloaded opencv for windows from here - http://opencv.org/downloads.html

I did cmake. And then building with visual studio 2010. I get a build error in opencv_text

........\opencv_contrib\modules\text\src\ocr_beamsearch_decoder.cpp(569): error C2668: 'cv::sqrt' : ambiguous call to overloaded function

Is this a known problem.Have I got the wrong source? Or is there some compiler setting I should specify?.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-12-22 01:42:41 -0600

berak gravatar image

hmm support for vs2010 seems to be fading ..

do the following:

  • cd (from cmdline) into opencv_contrib
  • make a new branch: git checkout -b text-sqrt-fix (you want the master branch to stay clean)
  • change line 569 to : patch_size = (int)sqrt((float)kernels.cols);
  • rebuild
  • eventually make a pull request
edit flag offensive delete link more

Comments

Oh I see. will do that.

Terry gravatar imageTerry ( 2015-12-22 10:00:25 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-12-21 08:39:34 -0600

Seen: 390 times

Last updated: Dec 22 '15