Skip to main content
Inspiring
May 6, 2010
Answered

Compile TLF

  • May 6, 2010
  • 2 replies
  • 1334 views

Hi,

I need to compile TLF from  sources and I'm missing some compile arguments.

I know I must use Ant and build.xml.

Any one has the arguments of  working example?

(Flash Builder - sdk 4)

Thanks.

This topic has been closed for replies.
Correct answer GordonSmith

The build.xml file for TLF in the Flex open source repository

    http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/textLayout/build.xml

should be all you need. If you are set up to build the Flex SDK, just cd to the frameworks/projects/textLayout directory and execute

    ant compile

If you aren't set up to buidl the Flex SDK, instructions are available at

    http://opensource.adobe.com/wiki/display/flexsdk/Setup

Gordon Smith

Adobe Flex SDK Team

2 replies

Participant
October 29, 2011

Hello,

I'm trying to execute mxmlc ant task to compile my flex project (flex  sdk 3.2).

I'm using TLF within the project and having following issues during compilation.

My question is if it possible to have working mxmlc under sdk 3.2 with TLF?

Thanks,

Denis

make:

    [mxmlc] Loading configuration file D:\dist\flex\SDK_3.2\frameworks\flex-config.xml

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_conversion.swc(flashx/textLayout/conversion/ITextImporter)

    [mxmlc] Error: Type was not found or was not a compile-time constant: Vector.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_edit.swc(flashx/textLayout/edit/SelectionManager)

    [mxmlc] Error: Type was not found or was not a compile-time constant: TextLine.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/container/IInternalContainerController)

    [mxmlc] Error: Type was not found or was not a compile-time constant: TextLine.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowGroupElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: ContentElement.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowGroupElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: GroupElement.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowGroupElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: ContentElement.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: FontMetrics.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: ElementFormat.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: TextElement.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: ContentElement.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: TextLine.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: TextLine.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: FontMetrics.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: FontMetrics.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: ElementFormat.

    [mxmlc] C:\JAVA_WORKSPACE\App\flex\vtono\libs\textLayout_core.swc(flashx/textLayout/elements/FlowLeafElement)

    [mxmlc] Error: Type was not found or was not a compile-time constant: ContentElement.

Adobe Employee
October 31, 2011

According to the error messages, I think the problem is the playerGlobals.swc you are compiling with, which is, I guess, for FP 9.

playerGlobals.swc is a "rule" when compiling, which includes the "fake" api of a specific player for syntax checking. TLF is based on FTE, so no FTE in FP 9.

Copy a 10.0 playerGlobals.swc from SDK 4.0 and modify the configuration in flex-config.xml.

Participant
November 1, 2011

Hi,

Replacing playerGlobal.swc solves the problem,

Thanks you,

Denis.

GordonSmithCorrect answer
Participating Frequently
May 7, 2010

The build.xml file for TLF in the Flex open source repository

    http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/textLayout/build.xml

should be all you need. If you are set up to build the Flex SDK, just cd to the frameworks/projects/textLayout directory and execute

    ant compile

If you aren't set up to buidl the Flex SDK, instructions are available at

    http://opensource.adobe.com/wiki/display/flexsdk/Setup

Gordon Smith

Adobe Flex SDK Team