如何绑定 OpenCV 进行 GNAT?
谁能告诉我如何为 GNAT 查找或创建到 OpenCV 的绑定? 我想使用Ada2005用OpenCV(1.0或2.X)实现一些程序, 但我不知道怎么做。有人可以教我怎么做吗?
Can anybody tell me how to find or create a binding to OpenCV for GNAT?
I want to use Ada2005 to implement some program with OpenCV (1.0 or 2.X),
but I don't know how. Can anybody teach me how to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
教您如何创建到复杂库的绑定超出了 StackOverflow 的范围,但您可以从这个 教程。然后研究相关的GNAT库源,例如
Ada.Numerics
,以及其他现有 Ada 绑定。其中包括Ada 2005 数学扩展 和 Ada 绑定到GNU GMP 和 MPFR 多精度库 是示例性的且易于访问。Teaching you how to create a binding to a complex library is beyond the scope of StackOverflow, but you might start with this tutorial. Then study the relevant GNAT library sources, e.g.
Ada.Numerics
, and other existing Ada bindings. Among others, Ada 2005 Math Extensions and An Ada binding to the GNU GMP and MPFR Multiple Precision libraries are exemplary as well as accessible.如果您有 Gnat Pro(大概还有 ACT 的支持合同),我想您可以获得 绑定生成器 来自它们。
在评论中,Simon Wright 指出您可以从 GCC 4.6.0.,这是官方的(尽管有时有点落后)GCC 发行版。我通常建议那些不向 ACT 客户付费的人从 GCC 获取编译器,而不是从 ACT 获取 GNAT GPL 版本。
If you have Gnat Pro (and presumably a support contract from ACT), I think you can get a binding generator from them.
In the comments, Simon Wright pointed out that you can get this binding generator from GCC 4.6.0., which is the official (although sometimes a bit behind) GCC distribution. I generally suggest folks who aren't paying ACT customers get their compiler from GCC, rather than the GNAT GPL version from ACT.