Skip to main content
This topic has been closed for replies.

4 replies

Participant
February 21, 2013

Hi,

I am trying to create a native extension for MAC.

i am getting the following error in xcode.

i included flashruntime.h and imported the .h file also.

other FRE functions are working fine..i am getting error only after adding FREAcquireByteArray.

Undefined symbols for architecture x86_64:

"_FREAcquireByteArray", referenced from:

_saveFile in save.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

February 22, 2013

Seems like the save.o file you have created doesn't contain the required architecture for a Mac Native Extension, x86_64.

You can see the architectures for which this save.o file is valid using

file save.o

on the terminal.

You will need to recreate the .o to include the architecture x86_64.

Participant
November 29, 2012

i can't use native function in a .so library

.so exits in libs/armeabi-v7a/ but occured error like this

W/dalvikvm(18062): No implementation found for native (function name)...

java.lang.UnsatisfiedLinkError: Native method not found...

please help me..

February 20, 2013

I have the same problem. Did you solve it?

Known Participant
November 12, 2012

Can anyone please provide an example of a complete script to produce an ANE for Android.

I have my extension.xml, library.swf and SWC in the same folder.

I seem to be having trouble with the relative directory platform/Android

I have tried using the following:

adt -package -target ane Notifications.ane extension.xml -swc Notifications.swc -platform Android-ARM -C /Program Files (x86)/Android/android-sdk

with no success as it does not like the space between Program Files

Any advice welcome.

chris.campbell
Legend
November 16, 2012

@DachFlach - can you try putting your path in quotes?

Known Participant
November 17, 2012

Thanks Chris.

I eventually got it..  but was not a quotes issue.

Well, I can compile an ANE, it doesn't work yet..  but it compiled!

Participant
September 18, 2012

Android Native Extension cannot find implementation for .so functions

please refer to http://forums.adobe.com/message/4707884#4707884

Participant
November 8, 2012

Make sure you have your .so files built into the ANE. You can add them to your .jar location in a libs folder described above.

I have them added in a build script just before compiling the .ANE file:

<copy file="$" todir="$/Android"/> <copy todir="$/Android/libs/armeabi-v7a">

<fileset dir="$/armeabi-v7a" /> </copy> <copy todir="$/Android/libs/armeabi"> <fileset dir="$/armeabi" />

</copy>

</target>