You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Andy Dufilie <an...@gmail.com> on 2016/01/20 19:16:30 UTC

Re: Building FlexJS from source

I've been struggling for a while trying to find the right settings that
will let me build FlexJS from the git repositories on Windows. I've
documented my steps here now that I've managed to get the
flex-asjs/build.xml/binary-release ant target to work:
https://github.com/adufilie/flex-dev-setup.

I had to change the flex-asjs build script a little because there was a
conflict in the way GOOG_HOME was used in different places. I'd like
someone to review this change before it gets incorporated:
https://github.com/adufilie/flex-asjs/commit/e677c9c07309c9729749df76edb179c43c355494

Is flex-asjs/build.xml/binary-release the correct target for getting the
same output we get from the FlexJS nightly build?  I haven't figured out
how to test the build output on my own project in the same way I can test
the nightly build. Any advice on how to do that?

Also, I recently fixed some errors in the flex-falcon/compiler.jx/bin
scripts:
https://github.com/apache/flex-falcon/commit/945449549ed91914193db852e17014cafb440c5d
but it seems that these files aren't even included in the FlexJS nightly
build.  Should that folder be removed?

Finally, the flex-asjs "all" target still doesn't work:
compile-asjs:
     [echo] Cross-compiling Core
     [echo] FALCONJX_HOME: C:\asf\flex-asjs/../flex-falcon/compiler.jx
     [java] command line
     [java] unable to open 'C:\asf\flex-falcon\externs\js\out\bin\js.swc'.
     [java]
     [java]
     [java] command line
     [java] unable to open 'C:\asf\flex-falcon\externs\GCL\out\bin\GCL.swc'.
     [java]
     [java]
     [java] Java Result: 5

BUILD FAILED
C:\asf\flex-asjs\build.xml:431: The following error occurred while
executing this line:
C:\asf\flex-asjs\frameworks\build.xml:79: The following error occurred
while executing this line:
C:\asf\flex-asjs\frameworks\build.xml:166: The following error occurred
while executing this line:
C:\asf\flex-asjs\frameworks\projects\Core\build.xml:120: Replace: source
file
C:\asf\flex-asjs\frameworks\projects\Core\js\out\org\apache\flex\events\IEventDispatcher.js
doesn't exist

Re: Building FlexJS from source

Posted by Andy Dufilie <an...@gmail.com>.
On Wed, Jan 20, 2016 at 1:35 PM, Alex Harui <ah...@adobe.com> wrote:

> The FlashPlayerDebugger can be downloaded from
> http://www.adobe.com/support/flashplayer/downloads.html
> (it says so in our READme ;-))
>
>
That's where I get the debugger for the browser, but I wasn't sure
specifically where FlashPlayerDebugger.exe comes from.  I guess it's the
"Flash Player projector content debugger"?

Thanks for the clarification. I'll update my flex-dev-setup project when I
have everything running smoothly.

Andy

Re: Building FlexJS from source

Posted by Alex Harui <ah...@adobe.com>.

On 1/20/16, 10:16 AM, "Andy Dufilie" <an...@gmail.com> wrote:

>I've been struggling for a while trying to find the right settings that
>will let me build FlexJS from the git repositories on Windows. I've
>documented my steps here now that I've managed to get the
>flex-asjs/build.xml/binary-release ant target to work:
>https://github.com/adufilie/flex-dev-setup.

Pretty good.  The FlashPlayerDebugger can be downloaded from
http://www.adobe.com/support/flashplayer/downloads.html
(it says so in our READme ;-))

>
>I had to change the flex-asjs build script a little because there was a
>conflict in the way GOOG_HOME was used in different places. I'd like
>someone to review this change before it gets incorporated:
>https://github.com/adufilie/flex-asjs/commit/e677c9c07309c9729749df76edb17
>9c43c355494

Ideally, developers like us should be able to point to different versions
of Google Closure Library and not assume it is downloaded into js/lib.  So
maybe a better set of changes is to see if env.GOOG_HOME is set and if
not, default to js/lib/...

>
>Is flex-asjs/build.xml/binary-release the correct target for getting the
>same output we get from the FlexJS nightly build?

The nightly build runs "ant release", not the "binary-release" target.

>  I haven't figured out
>how to test the build output on my own project in the same way I can test
>the nightly build. Any advice on how to do that?

1. Expand the apache-flex-flexjs-xxx-bin.zip into an empty folder.
2. From that folder, run ant -f installer.xml

That folder will now be an IDE-compatible Apache FlexJS SDK.  There is
also a way to hijack the Installer.  But most of the time, I just copy
swcs and jars into an existing folder and restart Flash Builder.


>
>Also, I recently fixed some errors in the flex-falcon/compiler.jx/bin
>scripts:
>https://github.com/apache/flex-falcon/commit/945449549ed91914193db852e1701
>4cafb440c5d
>but it seems that these files aren't even included in the FlexJS nightly
>build.  Should that folder be removed?

Ah, sorry, didn't notice that.  The flex-falcon repo has a copy of scripts
that are supposedly not as directly tied to FlexJS.  The flex-asjs repo
has its own copy of these scripts that make a few more assumptions (or
maybe those differences have gone away by now).  So you will need to make
your changes to flex-asjs/js/bin

>
>Finally, the flex-asjs "all" target still doesn't work:
>compile-asjs:
>     [echo] Cross-compiling Core
>     [echo] FALCONJX_HOME: C:\asf\flex-asjs/../flex-falcon/compiler.jx
>     [java] command line
>     [java] unable to open 'C:\asf\flex-falcon\externs\js\out\bin\js.swc'.
>     [java]
>     [java]
>     [java] command line
>     [java] unable to open
>'C:\asf\flex-falcon\externs\GCL\out\bin\GCL.swc'.
>     [java]
>     [java]
>     [java] Java Result: 5
>
>BUILD FAILED
>C:\asf\flex-asjs\build.xml:431: The following error occurred while
>executing this line:
>C:\asf\flex-asjs\frameworks\build.xml:79: The following error occurred
>while executing this line:
>C:\asf\flex-asjs\frameworks\build.xml:166: The following error occurred
>while executing this line:
>C:\asf\flex-asjs\frameworks\projects\Core\build.xml:120: Replace: source
>file
>C:\asf\flex-asjs\frameworks\projects\Core\js\out\org\apache\flex\events\IE
>ventDispatcher.js
>doesn't exist

Ugh.  Haven't tested this in a while.  Thanks for pointing it out.

-Alex


Re: Building FlexJS from source

Posted by Alex Harui <ah...@adobe.com>.

On 1/20/16, 6:47 PM, "lizhi" <sl...@qq.com> wrote:

>but i think the build.xml not good,bcs it need you set env path.
>i have a idea,not use the env path,it is good for me.
>just depand the dir of you flexjs sdk.
>
>hope someone find it,s good.
>bcs i do not want set some env path of my pc.

Yes, in the future, we will probably look in some relative folder paths
instead of requiring the environment variables.
We are going to invest in refactoring the folder structures to make it
more Maven-friendly before we address this issue.

-Alex


Re: Building FlexJS from source

Posted by lizhi <sl...@qq.com>.
but i think the build.xml not good,bcs it need you set env path.
i have a idea,not use the env path,it is good for me.
just depand the dir of you flexjs sdk.

hope someone find it,s good.
bcs i do not want set some env path of my pc.

https://github.com/matrix3d/spriteflexjs/blob/master/test/build.xml




--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-Building-FlexJS-from-source-tp51343p51347.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.