开发者

OpenCV 2.3 in Embarcadero C++ Builder

开发者 https://www.devze.com 2023-04-08 04:29 出处:网络
When compiling a OpenCV 2.3 project in Builder I get multiple errors starting with \"_fm_atan2l is not a member of \'std\'\" and continuing with other math related errors in that form.I also get \"Mul

When compiling a OpenCV 2.3 project in Builder I get multiple errors starting with "_fm_atan2l is not a member of 'std'" and continuing with other math related errors in that form. I also get "Multiple declaration of '_Ctraits::_Isnan(double)' and other similar errors. This happens after I simply include the OpenCV header files and thus seems unrelated to anything I have done in the application itself.

The only file I have included so far is "cv.h" in OpenCV's include directory. Am I doing it wron开发者_开发问答g already or is there maybe something else I have to set up first?


You can download simple project combining 2.3.2 and c++ builder xe2 from my site: http://www.compvision.ru/forum/index.php?showtopic=763 There are fixed headers for builder, and lib converter in archive. There are also .lib files in archive, but it'll be better if you make them by yourself from original .lib files contained in your opencv distribution using LibConverter.exe utility. And there is some strange thing: some dll files need to be renamed to something like .dl or .d. Compiled program will prompt you about it.


you can correct OCV atan2 issue with bcc32, including fastmath in std namespace (for more info see: https://forums.embarcadero.com/message.jspa?messageID=363384 [^]).... but more other issues are there after ... Until now I'm unable to build OCV 2.3.1 with CBuilder XE2 :(

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号