can not build on VS2010/VS2012 (Bug #2463)


Added by Yasuhiro Yoshimura over 12 years ago. Updated over 12 years ago.


Status:Done Start date:2012-10-20
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:build/install
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

I got the latest OpenCV's code from OpenCV GitHub Mirror(https://github.com/Itseez/opencv).
And, I tried to build OpenCV on VS 2010/VS2012.
But, the build error occurs. Here is a error message.

2> featurepyramid.cpp
2>..\..\..\modules\objdetect\src\featurepyramid.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(82): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(83): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(92): error C2065: 'x' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(93): error C2065: 'y' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(95): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(95): error C2065: 'x' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(95): error C2065: 'y' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(96): error C2065: 'ch' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(98): error C2065: 'tx' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(98): error C2065: 'ch' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(99): error C2065: 'ty' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(99): error C2065: 'ch' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(100): error C2065: 'magnitude' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(100): error C2065: 'tx' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(100): error C2065: 'ty' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(101): error C2065: 'magnitude' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(101): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(103): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(103): error C2065: 'magnitude' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(104): error C2065: 'ch' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(105): error C2065: 'x' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(105): error C2065: 'tx' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(106): error C2065: 'y' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(106): error C2065: 'ty' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(110): error C2065: 'x' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(110): error C2065: 'y' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(114): error C2065: 'x' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(114): error C2065: 'y' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(129): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(130): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(178): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(179): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(180): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(181): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(185): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(186): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(187): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(188): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(193): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(194): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(195): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(196): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(203): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(204): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(205): error C2065: 'alfa' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(206): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(221): error C2065: 'r' : undeclared identifier
2>..\..\..\modules\objdetect\src\featurepyramid.cpp(222): error C2065: 'alfa' : undeclared identifier

I checked "featurepyramid.cpp".
So, I found that some code is referred to as "comment".
I think that this code contains the prolem of linefeed code.

I attached the screenshot.
2.4.2: featurepyramid.cpp.old.png
the latest: featurepyramid.cpp.new.png

And, I think that this error is related to the following changes.
https://github.com/Itseez/opencv/commit/81f826db2b3945854a87cf7ceb1b2244103dbed9


featurepyramid.cpp.old.png (17.7 kB) Yasuhiro Yoshimura, 2012-10-20 05:41 pm

featurepyramid.cpp.new.png (22.8 kB) Yasuhiro Yoshimura, 2012-10-20 05:41 pm


Associated revisions

Revision fd8f2c8d
Added by Roman Donchenko almost 12 years ago

Merge pull request #2463 from ziyangli:master

History

Updated by Andrey Kamaev over 12 years ago

  • Assignee deleted (Andrey Kamaev)

Updated by Andrey Kamaev over 12 years ago

Fix is pushed to 2.4

  • Target version set to 2.4.3
  • Status changed from Open to Done
  • Assignee set to Andrey Kamaev

Also available in: Atom PDF