的本机扩展中包含

的本机扩展中包含

本文介绍了在 IOS 的本机扩展中包含 OpenCv 框架时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在为实现 OpenCV 框架的 IOS 创建 ANE,但是当我在 Flash Builder 上编译应用程序时,我收到此错误:

I'm creating an ANE for IOS that implements the OpenCV framework, but when I compile the app on Flash Builder I get this error:

Error occurred while packaging the application:

Undefined symbols for architecture armv7:
  "__ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv", referenced from:
      __ZNSt3__16vectorIN2cv3VecIiLi128EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
      __ZNSt3__16vectorIN2cv3VecIiLi64EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
      __ZNSt3__16vectorIN2cv3VecIiLi32EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
      __ZNSt3__16vectorIN2cv3VecIiLi16EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
      __ZNSt3__16vectorIN2cv3VecIiLi12EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
      __ZNSt3__16vectorIN2cv3VecIiLi9EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
      __ZNSt3__16vectorIN2cv3VecIiLi8EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
      ...
ld: symbol(s) not found for architecture armv7
Compilation failed while executing : ld64

添加此行后发生错误

<option>-framework opencv2</option>

到 platformOptions.xml 上的 linkerOption

to the linkerOption on the platformOptions.xml

有什么想法吗?

推荐答案

问题已解决.我已经添加了这一行

Problem solved.I've added this line

<option>-lc++</option>

到platformOptions.xml.

to the platformOptions.xml.

现在 OpenCV 在我的 actionscript 原生扩展中运行良好.

Now OpenCV works great in my actionscript native extension.

这篇关于在 IOS 的本机扩展中包含 OpenCv 框架时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 14:35