Skip to main content
Inspiring
February 23, 2012
Answered

ANE packaging succeeds under Windows but fails for Mac, Linux

  • February 23, 2012
  • 6 replies
  • 970 views

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 has been closed for replies.
Correct answer

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

February 23, 2012

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

mmah-umdAuthor
Inspiring
February 23, 2012

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".

February 24, 2012

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