【问题标题】:Error when including OpenCv framework in a Native Extension for IOS在 IOS 的本机扩展中包含 OpenCv 框架时出错
【发布时间】:2014-09-24 16:31:42
【问题描述】:

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

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

有什么想法吗?

【问题讨论】:

    标签: ios apache-flex opencv ane


    【解决方案1】:

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

    <option>-lc++</option>
    

    到platformOptions.xml。

    现在 OpenCV 在我的 actionscript 本机扩展中运行良好。

    【讨论】:

      猜你喜欢
      • 2017-02-13
      • 2018-05-11
      • 1970-01-01
      • 2014-06-06
      • 2013-10-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多