Hi all,
I'm try to compile FlexJs on a Debian GNU/Linux Stretch, but I have the
following errors:
compile:
[echo] Compiling libs/Core.swc
[echo] FLEX_HOME: /home/flex/FlexJS/flex-asjs
[echo] FALCON_HOME: /home/flex/FlexJS/flex-asjs/../flex-falcon/compiler
[echo] playerglobal.version: 11.1
[echo] target:
/home/flex/FlexJS/flex-asjs/frameworks/projects/Core/target/Core.swc
[echo] copy to: /home/flex/FlexJS/flex-asjs/frameworks/libs/Core.swc
[compc] Loading configuration:
/home/flex/FlexJS/flex-asjs/frameworks/projects/Core/src/main/config/compile-as-config.xml
[compc]
[compc]
[compc]
/home/flex/FlexJS/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleValuesImpl.as(167):
col: 20 Error: Access of possibly undefined property JSON.
[compc]
[compc] return JSON.parse("{" + value + "}");
[compc] ^
[compc]
[compc]
/home/flex/FlexJS/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/geom/Rectangle.as(261):
col: 21 Error: Access of possibly undefined property JSON.
[compc]
[compc] var obj:Object = JSON.parse(str);
[compc] ^
[compc]
BUILD FAILED
/home/flex/FlexJS/flex-asjs/build.xml:499: The following error occurred while
executing this line:
/home/flex/FlexJS/flex-asjs/frameworks/build.xml:80: The following error
occurred while executing this line:
/home/flex/FlexJS/flex-asjs/frameworks/build.xml:186: The following error
occurred while executing this line:
/home/flex/FlexJS/flex-asjs/frameworks/projects/Core/build.xml:81: compc task
failed.
I have try to looking for a solution on internet, but I have failed :-(
I have try all the combination of the following:
* import com.adobe.serialization.json;
* return com.adobe.serialization.json.JSON.parse("{" + value + "}");
without success.
What can I do to resolve this problem?
I have "echo":
* playerglobal.version <- it is corrected installed
* target <- it is building the Core.swc
* where to copy
And I have see that there is a Core.swc here:
$ find -iname Core.swc
./flex-sdk/frameworks/libs/core.swc
Eventually I can use this core.swc?
Or, I have also installed the binary, and I have found these:
$ find -iname Core.swc
./apache-flex-flexjs-0.7.0-bin/frameworks/libs/Core.swc
./apache-flex-flexjs-0.7.0-bin/frameworks/projects/Core/target/Core.swc
./AirSDK/frameworks/libs/core.swc
Eventually I can use one of these?
I prefer to solve the problem and have a successfully compilation.
Thanks
Davide