Skip to main content
Inspiring
Feb 23, 2012 4:28 AM UTC
Answered

ANE packaging succeeds under Windows but fails for Mac, Linux

I am building an air native extension (ANE). It packages successfully on a windows machine using the "adt" command. The same command using the same binary files (.swc, .swf, .a) fails on both a Mac and Linux machine. The command is basically identical for all platforms, apart from the different paths for the path to the adt command. I am using the same binary files for all platforms, checked out of a subversion system.

/path/to/adt -package -target ane SMS.ane extension.xml -swc SMSActionScriptLibrary.swc -platform iPhone-ARM -C "SMSExtensioniOS" .

The problem appears to be with recognizing the contents of the iOS directory. The error is:

no such file /otherpath/to/SMSExtension/SMSExtensioniOS/.

The SMSExtensioniOS directory does exist with the same name (including upper/lower case). It also builds fine on windows. Does anyone have ideas?

The adt -version returns 3.1.0.4880 on Linux. I will check the windows version later.

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Feb 29, 2012 7:58 AM UTC

The permissions on the Mac machine are correct.

For Linux, I used the "adt" command that comes in the bin directory of the Flex SDK.

I will email you the files.


bash -x buildSMS will tell you the problem.

All you need is to do a dos2unix to your buildSMS script. Or create a new one on your mac machine.

Hope that solves your problem.

-Neha

6 replies

Feb 23, 2012 6:36 AM UTC

I think your folder SMSExtensioniOS is missing the execute permission.

Try doing chmod +x SMSExtensioniOS

And then try packaging your ANE.

Hope that helps.

Neha

Translate
mmah-umdAuthor
Inspiring
Feb 23, 2012 3:45 PM UTC

Neha,

Thanks for the response, but that is not the problem. The SMSExtensioniOS directory has global read and execute permissions.

If it matters, the Windows "adt -version" command returns "3.0.0.4080".

Translate
Feb 24, 2012 6:33 AM UTC

I'd ask you to please check your folder permissions again on your Mac machine. If that doesn't work out, can you share your files with me at neh@adobe.com?

And Adobe does not provide AIR SDK for Linux anymore, where did you get that from!

-Neha

Translate