You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Tigran Najaryan <ti...@gmail.com> on 2013/04/08 10:20:57 UTC

FalconJX compilation steps + FalconJX generates incorrect paths in deps.js (was: FalconJX mxmlc error)

Erik, Alex, you are right, I was using the source from the SVN mirror (was
under impression they are in sync with git). 

Started anew and got everything from the git repos. This time the FalconJX
compiled successfully. I made notes of my build steps and attach my notes
below. You may want to use this to update the READMEs.

The FlexJSTest_again example compiled using FalconJX does not work out of
the box. The compilation went fine and finished with a message "The project
'FlexJSTest_again' has been successfully compiled and optimized.". 

When trying to open js-debug /index.html in Firefox I get a bunch of
JavaScript errors, the first being "SyntaxError: malformed Unicode character
escape sequence" at deps.js line 4. The error message is indeed correct, the
backlashes in the path are not escaped and hence result in incorrect string,
e.g.:

goog.addDependency('../../../../D:\WORK\Projects\ApacheFlex\repo\falcon\comp
iler.jx\bin/D:\WORK\Projects\ApacheFlex\repo\asjs\examples\FlexJSTest_again\
bin\js-debug\org\apache\flex\net\HTTPHeader.js',
['org.apache.flex.net.HTTPHeader'], ['org.apache.flex.FlexObject']);

After fixing the backslashes and making sure the paths are correct (there is
one too many .. parent directory in the relative path) all worked. The
example loads in the browser and works.

When trying to open js-release/index.html I get a different JavaScript
error: "TypeError: this.source is undefined" at FlexJSTest_again.js line 4.
The file is minified so it is impossible to tell what is wrong with the
code.

If the problem with paths is not known and nobody works on it I will go
ahead and try to fix it then supply a patch. 

Tigran.


========== Begin FalconJX build steps  ============
1. Create a working directory for Apache Flex ("repo" below).

2. cd repo

3. Get bleading-edge of SDK:
git clone https://git-wip-us.apache.org/repos/asf/flex-sdk.git sdk
cd sdk
git checkout develop
cd ..

4. Get TLF
git clone https://git-wip-us.apache.org/repos/asf/flex-tlf.git tlf

5. Get Falcon and switch to develop branch:
git clone https://git-wip-us.apache.org/repos/asf/flex-falcon.git falcon
cd falcon
git checkout develop
cd ..

6. Get ASJS
git clone https://git-wip-us.apache.org/repos/asf/flex-asjs.git asjs
cd asjs
git checkout develop
cd ..

7. Build SDK. Follow instructions in sdk/README, then:
cd sdk
ant main (Select all default answers when prompted, i.e. just hit ENTER
until the build finishes).
cd ..

8. Build Falcon compiler. Follow instructions in falcon/compiler/README,
then:

cd falcon/compiler
ant -Dsdk.branch=path-to-repo/sdk
cd ../..

(Note: the compiler/build.xml assumes Flex SDK is in ../flex-sdk dir, which
is not what we have created in step 3 above, so you need to supply correct
dir to Ant via sdk.branch parameter).


9. Build FalconJX. 

cd falcon/compiler.jx
ant
cd ../..


10. Build ASJS and FlexJSUI.swc:
cd asjs
ant
cd frameworks/as
ant
=========== End FalconJX build steps  =============


-----Original Message-----
From: Erik de Bruin [mailto:erik@ixsoftware.nl] 
Sent: Sunday, April 07, 2013 12:18 AM
To: dev@flex.apache.org
Subject: Re: FalconJX mxmlc error

Tigran,

You say "repo/falcon/trunk/compiler.jx/src/*": the 'trunk' in that path
makes me think you have used the SVN instead of the git repo...
Are you sure you are using the 'develop' branch in the git repository
at:

https://git-wip-us.apache.org/repos/asf/flex-falcon.git

EdB