2014-09-24 63 views
-3

我創造了IOS實現OpenCV的框架的ANE,但原生擴展OpenCV的框架,當我在編譯Flash Builder中的應用程序,我得到這個錯誤:錯誤的時候,包括在IOS

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> 

到linkerOption上platformOptions.xml

任何想法發生了錯誤?

回答

0

問題已解決。 我已經添加了這一行

<option>-lc++</option> 

到platformOptions.xml。

現在OpenCV在我的actionscript原生擴展中效果很好。