1 Reply Latest reply on Sep 26, 2014 1:20 AM by g_fields80

    Using OpenCV inside an Adobe Native Extension for IOS

    g_fields80

      I'm trying to use OpenCV.framework inside an Adobe Native Extension that I'm developing to use on an IOS application made in Flex.

       

      The problem is that I get errors while packaging the application:

       

       

          Undefined symbols for architecture armv7:

            "__ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv", referenced from:

                __ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm in opencv2(smooth.o)

                __ZNSt3__16vectorIN2cv6Point_IiEENS_9allocatorIS3_EEE21__push_back_slow_pathIKS3_EEvRT_ in opencv2(hough.o)

                __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)

                ...

          ld: symbol(s) not found for architecture armv7

          Compilation failed while executing : ld64

       

       

      and this is the platformoptions.xml I use to compile the ANE:

       

          <platform xmlns="http://ns.adobe.com/air/extension/4.0">

              <sdkVersion>8.0</sdkVersion>

              <linkerOptions>

             <option>-framework opencv2</option>

             <option>-framework UIKit</option>

             <option>-framework Foundation</option>

             <option>-framework CoreGraphics</option>

             <option>-framework Accelerate</option>

             <option>-framework AssetsLibrary</option>

             <option>-framework AVFoundation</option>

             <option>-framework CoreImage</option>

             <option>-framework CoreMedia</option>

             <option>-framework CoreVideo</option>

             <option>-framework QuartzCore</option>

          </linkerOptions>

          </platform>

       

      Any idea?