Embarcadero C++ 中的 OpenCV 2.3建设者
在 Builder 中编译 OpenCV 2.3 项目时,我收到多个错误,以“_fm_atan2l 不是‘std’的成员”开头,并继续以该形式出现其他与数学相关的错误。我还得到“'_Ctraits::_Isnan(double)'的多重声明”和其他类似的错误。这种情况发生在我简单地包含 OpenCV 头文件之后,因此似乎与我在应用程序本身中所做的任何事情无关。
我拥有的唯一文件到目前为止,OpenCV 的包含目录中包含的是“cv.h”。我是否已经做错了,或者是否需要先设置其他内容?
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 wrong already or is there maybe something else I have to set up first?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以从我的网站下载结合 2.3.2 和 c++ builder xe2 的简单项目:
http://www.compvision.ru/forum/index.php?showtopic=763
存档中有用于构建器和 lib 转换器的固定标头。
存档中也有 .lib 文件,但如果您使用 LibConverter.exe 实用程序从 opencv 发行版中包含的原始 .lib 文件自己制作它们会更好。
还有一些奇怪的事情:一些 dll 文件需要重命名为 .dl 或 .d 之类的名称。编译好的程序会提示你。
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.
您可以使用
bcc32
纠正OCV
atan2 问题,包括 std 命名空间中的 fastmath(有关详细信息,请参阅:https://forums.embarcadero.com/message.jspa?messageID=363384 [^])....但之后还有更多其他问题...到目前为止,我无法使用 CBuilder XE2 构建 OCV 2.3.1 :(
you can correct
OCV
atan2 issue withbcc32
, 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 :(