View unanswered posts | View active topics



Reply to topic  [ 2 posts ] 
Changing swf-version : Additionnal Comp. Options not passed? 
Author Message
Member

Joined: Sun Oct 04, 2015 10:53 pm
Posts: 4
Location: Montreal, Quebec, Canada
Reply with quote
Greetings!

I'm currently making a test Native Extension for Air 3.1. Doing so requires a SWC file, which I have already compiled (Yes, I have changed build.xml so that compc loads the air-config.xml file).

When I use the AIR SDK command below to build the extension, I get an error.

Code:
$ adt -package -target ane NativeExtHelloWorld.ane descriptor.xml -swc NativeExtHelloWorld.swc -platform Windows-x86 -C platforms\Windows-x86 .
Invalid swc file: [Path to my SWC Library]


Though I'm not sure, after searching, I found that a probable cause of this is that the library.swf file inside my SWC Library has the wrong swf-version. However, the Additionnal Compiler Options do not seem to work with compc, since adding this following line...
Code:
-MyRandomOption helloWorld
...does not result in a compile error. I don't know if this is a FD bug or if I'm just doing something wrong.


Does anyone know how I can change the swf-version? All of this is new to me, so I don't really know what information is relevant to send.


Thanks in advance!

Anthony Dentinger

_________________
____________________________________________
| As Monty Python would say : NO TIME TOULOUSE! |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯


Wed Aug 10, 2016 1:14 am
Profile
Member

Joined: Sun Oct 04, 2015 10:53 pm
Posts: 4
Location: Montreal, Quebec, Canada
Reply with quote
OK, I think I understood why the Additional Compiler Options didn't have any effect.

Since my project uses ant, the compiler is configured via the build.xml file, NOT via a command line. The Additional Compiler Options are thus never passed.

I still have the same error, but I guess I'll try building the SWC straight from a command line (or a batch file) instead of using ant.

_________________
____________________________________________
| As Monty Python would say : NO TIME TOULOUSE! |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯


Thu Aug 11, 2016 11:07 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.