View unanswered posts | View active topics



Reply to topic  [ 227 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16  Next
Build SWC from FD! "ExportSWC" plugin [beta] 
Author Message
Member

Joined: Fri Oct 16, 2009 12:35 am
Posts: 20
Reply with quote
Hi

For some reason your bat script didn't work for me, it could not find the compiler.
"'compc.exe' is not recognized as an internal or external command, operable program or batch file."

The following worked

Code:
set filename=ExportedSWC
set location=%~dp0
"c:\Program Files\FlashDevelop\Tools\flexsdk\bin\"compc.exe -source-path "%location%src" -include-sources "%location%src" -optimize -output "%location%bin\%filename%.swc"


/Dennis


Thu Nov 15, 2012 9:45 am
Profile
Member

Joined: Fri Dec 07, 2012 9:38 am
Posts: 8
Reply with quote
I can't start this bat because it says MSVCR71.dll is missing. I copied it everywhere, System32, in FD.exe folder....

Suggestions?

*EDIT: Nvm I got this one...


Fri Dec 07, 2012 3:17 pm
Profile
Member

Joined: Mon Jan 05, 2009 3:30 pm
Posts: 3
Reply with quote
Hey Everyone,

I got tired of having to manually add append="true" to the compc config so I forked the plugin and updated it. I added the option "Append Paths" which will add append="true" to source-path and library-path in the generated compc xml. If "Append Paths" is checked, it also switches -library-path to -external-library-path to resolve the asdoc issue Thorjelly and I were having.

ExportSWC 4.3: https://bitbucket.org/darkwingduck/exportswc/downloads/ExportSWC4.3.fdz
Repo: https://bitbucket.org/darkwingduck/exportswc/


Thu Feb 07, 2013 2:54 pm
Profile
Member

Joined: Fri Apr 12, 2013 1:18 pm
Posts: 3
Reply with quote
I've added some fixes to ExportSWC, such as support for Compiler Constants and Apache Flex. Additionally, fixed some annoying null reference exceptions

https://bitbucket.org/alexx999/exportswc/downloads/ExportSWC4.3-hotfix.fdz
(outdated - see below)


Last edited by Alexx999 on Fri May 17, 2013 10:21 am, edited 3 times in total.



Fri Apr 12, 2013 1:24 pm
Profile
Member

Joined: Sun May 01, 2011 6:34 pm
Posts: 9
Reply with quote
Hey this is very awesome guys!

The only thing still causing errors is that when the ExportSWC plugin triggers the AsDoc.exe, it doesn't pass it the Compiler Constants (so it causes compiler errors whenever it encounters CONFIG::debug, for example).

I think it just needs to pass the same *.flex.comp.xml file to gather the same Release vs. Debug configuration constants.

Would it be easy to integrate that in the ExportSWC plugin?


Wed Apr 24, 2013 12:15 am
Profile
Member

Joined: Fri Apr 12, 2013 1:18 pm
Posts: 3
Reply with quote
Thanks for feedback about AsDoc - I don't really use it myself :D
I've looked into it and done thing like described in Adobe docs
It now uses pretty much same config as compc and I was actually able to build my sample lib with it.

https://bitbucket.org/alexx999/exportswc/downloads/ExportSWC4.3-AsDoc.fdz

UPD:
Just noticed that ExportSWC4.3-AsDoc.fdz has broken installation. If notice any problems - report them! :wink:

And made new build, changes are:
- Fixed wrong exclude-classes command line parameter for AsDoc
- Initial attempt to make warnings display as warnings in FD (where errors previously). Also made some hacky assumptions about those new multiline errors and warnings - so I expect there may be some bugs on older sdks (please report if you see wrong "Build failed" reports and bad coloring).

https://bitbucket.org/alexx999/exportswc/downloads/ExportSWC4.3-warnings.fdz


Thu Apr 25, 2013 11:05 am
Profile
Member

Joined: Sat Jul 20, 2013 11:29 am
Posts: 9
Reply with quote
i have this errors :(

Code:
D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\FlashMovieClipImporter.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\FrameData.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\FrameData.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Effects\SQEffects.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Effects
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Graphic\SQBackdrop.as(16): col: 34 Errore: Impossibile trovare la definizione della classe base Sprite.

   public class SQBackdrop extends Sprite
                                   ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Graphic\SQBackdrop.as(92): col: 28 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      override public function render(support:RenderSupport, parentAlpha:Number):void
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\BitmapInfo.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ogmopunk\OgmoEntityDefinition.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Extensions.ogmopunk
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ogmopunk\OgmoLayer.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Extensions.ogmopunk
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\ConvertedMovieClip.as(17): col: 42 Errore: Impossibile trovare la definizione della classe base Sprite.

   public class ConvertedMovieClip extends Sprite implements IAnimatable
                                           ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\ConvertedMovieClip.as(17): col: 60 Errore: Impossibile trovare l'interfaccia IAnimatable.

   public class ConvertedMovieClip extends Sprite implements IAnimatable
                                                             ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\ConvertedMovieClip.as(53): col: 28 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      public override function dispose() : void
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\ConvertedMovieClip.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Entity.as(14): col: 30 Errore: Impossibile trovare la definizione della classe base Sprite.

   public class Entity extends Sprite
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Events\EngineEvent.as(8): col: 35 Errore: Impossibile trovare la definizione della classe base Event.

   public class EngineEvent extends Event
                                    ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Events\EngineEvent.as(25): col: 28 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      public override function toString():String
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ogmopunk\OgmoTileSet.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Extensions.ogmopunk
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Graphic\Background.as(15): col: 40 Errore: Impossibile trovare la definizione della classe base Sprite.

   public final class Background extends Sprite
                                         ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Behaviors\IBehavior.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Behaviors
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Effects\ShakeEffect.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Effects
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollTile.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Extensions.krecha
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\clippedsprite\ClippedSprite.as(13): col: 40 Errore: Impossibile trovare la definizione della classe base Sprite.

    public class ClippedSprite extends Sprite
                                       ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\clippedsprite\ClippedSprite.as(17): col: 34 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

        public override function render(support:RenderSupport, alpha:Number):void
                                 ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\clippedsprite\ClippedSprite.as(35): col: 34 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

        public override function hitTest(localPoint:Point, forTouch:Boolean=false):DisplayObject
                                 ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ogmopunk\OgmoValue.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Extensions.ogmopunk
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Camera.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\FlashMovieClipExporter.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Utils\Key.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Utils
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\PixelImageTouch.as(13): col: 39 Errore: Impossibile trovare la definizione della classe base Image.

   public class PixelImageTouch extends Image
                                        ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\PixelImageTouch.as(25): col: 28 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      override public function hitTest(localPoint:Point, forTouch:Boolean = false):DisplayObject
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\PixelImageTouch.as(35): col: 28 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      override public function dispose():void
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Graphic\SQTilemap.as(18): col: 33 Errore: Impossibile trovare la definizione della classe base Sprite.

   public class SQTilemap extends Sprite
                                  ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Console\Stats.as(27): col: 29 Errore: Impossibile trovare la definizione della classe base Sprite.

   public class Stats extends Sprite {   
                              ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Console\Stats.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Graphic\SpriteCanvas.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Graphic
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollImage.as(23): col: 35 Errore: Impossibile trovare la definizione della classe base DisplayObject.

   public class ScrollImage extends DisplayObject
                                    ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollImage.as(287): col: 28 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      public override function getBounds(targetSpace:DisplayObject, resultRect:Rectangle = null):Rectangle
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollImage.as(366): col: 28 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      public override function render(support:RenderSupport, alpha:Number):void
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollImage.as(652): col: 28 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      public override function dispose():void
                               ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollImage.as(739): col: 32 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      override public function get width ():Number
                                   ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollImage.as(747): col: 32 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      override public function set width (value:Number):void
                                   ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollImage.as(760): col: 32 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      override public function get height ():Number
                                   ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\ScrollImage.as(768): col: 32 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

      override public function set height (value:Number):void
                                   ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ogmopunk\ImageDefinition.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Extensions.ogmopunk
^

D:\Progetti\Flash\Square Engine Plus\src\engine\SQEngine.as(16): col: 32 Errore: Impossibile trovare la definizione della classe base Sprite.

   public class SQEngine extends Sprite
                                 ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\PixelHitArea.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Extensions.krecha
^

D:\Progetti\Flash\Square Engine Plus\src\engine\SQ.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Helpers\Alignment.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Helpers
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Utils\SQInput.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Utils
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\TextureList.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\TextureList.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\World.as(13): col: 29 Errore: Impossibile trovare la definizione della classe base Sprite.

   public class World extends Sprite
                              ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Helpers\ColorUtils.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Helpers
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Helpers\Primitives.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Helpers
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Behaviors\BehaviorManager.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Behaviors
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\TexturePacker.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\TexturePacker.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Helpers\SQMath.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Helpers
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Console\SQConsole.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Console
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ssmit\FlashMovieClipConverter.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

/**
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\filters\FreezFilter.as(12): col: 38 Errore: Impossibile trovare la definizione della classe base FragmentFilter.

    public class FreezFilter extends FragmentFilter
                                     ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\filters\FreezFilter.as(34): col: 34 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

        public override function dispose():void
                                 ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\filters\FreezFilter.as(43): col: 37 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

        protected override function createPrograms():void
                                    ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\krecha\filters\FreezFilter.as(54): col: 37 Errore: Il metodo contrassegnato come override deve sostituire un altro metodo.

        protected override function activate(pass:int, context:Context3D, texture:Texture):void
                                    ^

D:\Progetti\Flash\Square Engine Plus\src\engine\Mask.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine
^

D:\Progetti\Flash\Square Engine Plus\src\engine\Extensions\ogmopunk\OgmoProject.as(1): col: 1 Errore: Impossibile trovare la definizione della classe base Object.

package engine.Extensions.ogmopunk
^

Build failed (66).


all Object error is the first line of each class (the package .....) how can i fix it?


Sat Jul 20, 2013 11:32 am
Profile
Member

Joined: Mon Jan 20, 2014 5:06 pm
Posts: 5
Reply with quote
This looks pretty good, thanks for the work.

To compile a swc with support for the AIR components, it needs the argument +configname=air passed to compc.exe. Is it possible to have that option? Or better still, the option to manually add/edit the commandline parameters.

The other issue that took me a long time to work around was compc.exe not being able to find flex-config.xml or air-config.xml. It was throwing the error:
defaults: Error: unable to open './flex-config.xml'
Build failed (1).

I worked around this by copying the flex-config.xml and air-config.xml files to the project root, and editing them to specify absolute paths to the sdk libs instead of relative.

Can this be avoided?

Many thanks

James


Mon Jan 20, 2014 5:13 pm
Profile
Member

Joined: Fri Apr 12, 2013 1:18 pm
Posts: 3
Reply with quote
Since the plugin seems to be abandoned I think I'll take over as it's maintainer. For now I'm releasing version 4.4 with all my previous changes plus fix for FlashDevelop 4.5+

https://bitbucket.org/alexx999/exportsw ... SWC4.4.fdz


Tue Aug 05, 2014 2:36 pm
Profile
Member

Joined: Thu Apr 26, 2007 7:04 pm
Posts: 94
Reply with quote
grah, couldn't i have searched the forum before spending an hour hotfixing the code myself - i guess not :D

i guess i'll switch to your version since you clearly put more than an hour into this. thank you! and thanks to the original authors ofc!

_________________
http://krisrok.de


Sun Nov 23, 2014 10:54 pm
Profile
Member

Joined: Tue Apr 05, 2011 8:07 pm
Posts: 33
Reply with quote
Alexx999 wrote:
Since the plugin seems to be abandoned I think I'll take over as it's maintainer. For now I'm releasing version 4.4 with all my previous changes plus fix for FlashDevelop 4.5+

https://bitbucket.org/alexx999/exportsw ... SWC4.4.fdz


Can you open GitHub project?


Mon Nov 24, 2014 7:39 pm
Profile
Member

Joined: Thu Apr 10, 2014 7:51 am
Posts: 22
Reply with quote
So, is there any documentation on how to use this anywhere?


Sun Dec 07, 2014 2:49 am
Profile
Member

Joined: Wed Oct 23, 2013 9:51 pm
Posts: 6
Reply with quote
i have problems with the latest version of this plugin. Can anyone help ?
I have FD AIR Mobile project with one class (i'm trying to compile swc to create ANE)
and when i try to compile the swc it gives me this error:

"C:\Program Files\FlashDevelop-4.6.4\Tools\flexsdk\bin\compc.exe" -load-config+="C:\PROJECTS\ANE-LAB\WAKTI\AIRLib\obj\AIRLib.flex.compc.xml"
Error: could not find a JVM.
Build failed (5).

any clues ?
Thank you!


Thu Jan 22, 2015 5:21 pm
Profile
Member

Joined: Sun Mar 27, 2016 9:00 pm
Posts: 11
Reply with quote
Image

??? :(


Sun Mar 27, 2016 9:05 pm
Profile
Member

Joined: Sun Mar 27, 2016 9:00 pm
Posts: 11
Reply with quote
After 1 or 2 weeks of struggling, finally get it to work.

My first solution:

I used and old version once and didn't have any issues. With the latest file, I kept receiving an error. I came up with the idea of opening the ExportSWC4.2.fdz file with Notepad to see its content. For my susprise, instead of being binary code as it's always supposed to be, It was all HTML code o.O (strange) so then I said "well if it's HTML code, then let's open it with the browser to see what it shows. It showed a broken page, (like when a page is supposed to have CSS styles but the HTML is not loading the CSS and everything looks weird). So I explored and found a link to download the ExportSWC4.2.fdz file (again), clicked there, downloaded it, opened it and voilá! It installed without issues.

So my guess that the file of the latest version is corrupted? Or buggy? Or some "oops" from the devs?

My last solution:

So after installed successfully, I decided to test the file again, and strangely it worked... so my new guess is that when I downloaded it, DAP (my download manager) corrupted the file somehow or it didn't finished downloading, or I don't know. Well, that's all, thanks anyway and I hope anyone facing this can solve it.

Have a nice day.


Thu Mar 31, 2016 8:50 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 227 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16  Next

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.