Skip to main content
Participant
February 10, 2012
Question

Native extension - compiler issue

  • February 10, 2012
  • 1 reply
  • 2267 views

Hi,

First, I compile an iOS app with a native extension developped by ADOBE : http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html#articlecontentAdobe_numberedheader_3

It's work well

Then, I made myself the iOS library on xcode. It's OK as well

Then, I made the ANE file following the tutorial http://custardbelly.com/blog/2011/09/21/air-native-extension-example-ibattery-for-ios/. It's seem OK

I create my air app with Flash Builder. I load ANE, SWC...everything seem ok

When I compile my Iphone Application with Flex, there is this error :

An erreor appears during the application packaging (my translation):

ld warning: in C:\\Users\\Tony\\AppData\\Local\\Temp\\c6468656-be35-4f05-8d51-0dd54063cefd/libcom.adobe.LEDTorch.a, file is not of required architecture

Undefined symbols:

  "_ExtFinalizer", referenced from:

      _g_com_adobe_air_fre_fmap in extensionglue.o

  "_ExtInitializer", referenced from:

      _g_com_adobe_air_fre_fmap in extensionglue.o

ld: symbol(s) not found

Compilation failed while executing : ld64

.

Someone could help me?

I'm working on this bug for 2 days

Thanks in advance !

Emmanuel

This topic has been closed for replies.

1 reply

February 10, 2012

Hi Emmanuel:

In extension xml you provide values for

<initializer>ExtInitializer</initializer>

<finalizer>ExtFinalizer</finalizer>

In such case make sure that your iOS Native code has functions with the name exactly "ExtInitializer" and "ExtFinalizer" and the exact signature expected (As you can see in Vibration Native code)

Regards,

Saumitra

Participant
February 13, 2012

Hi,

Thanks you very much !

I 'm going to try this.

Regards

E.F.

2012/2/10 Saumitra Bhave <forums@adobe.com>

**

Re: Native extension - compiler issue created by Saumitra Bhave<http://forums.adobe.com/people/SaumiB>in

Mobile Development - View the full discussion<http://forums.adobe.com/message/4198519#4198519>