royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com.INVALID>
Subject Re: compc compiler error
Date Fri, 17 Aug 2018 06:09:25 GMT
Hi Bhau,

A SWC needs to have a library.swf that contains the pre-compiled definitions for the platform
(Flash or JS).  That is the most efficient way for the compiler to determine the contents
of the SWC (as opposed to parsing hundreds of JS files).  So that's why Royale SWCs are built
with two targets.  What matters most is what libraries are used to compile the SWC.  For example,
for JS output, most of the time you will want to be using js.swc instead of playerglobal.swc.

If this is all of the output you are getting, then something is definitely wrong.  Normally
you would see "xxxxxx bytes written to <path to SWC".  Please try using the -diagnostics
flag I added about 3 weeks ago.  Try -diagnostics=14335 and see if you get more output between
the COMPC and COMPJSRoyale lines.

HTH,
-Alex


´╗┐On 8/16/18, 12:07 PM, "bhau" <bhau2005@gmail.com> wrote:

    Hi,
    
    It is still not generating swc file after adding targets option. If i am
    only interested in javascript generated classes then why should I specify
    swf option ?
    
    Here is the console output:
    ------------------------------------------------
    Using Royale Compiler codebase:
    D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs
    Using Royale SDK:
    D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs
    args:
    -sdk-js-lib=D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks\js\Royale\generated-sources
    -compiler.locale=en_US
    -warnings
    -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui
    -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui
    -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset
    -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui
    -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui
    -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset
    -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\res-flexui\locale/{locale}
    -library-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset.swc
    -library-path+=D:\Learn\MyFirstRoyaleApp\lib\flexuiplatform-asset.swc
    -compiler.targets=SWF,JSRoyale
    -output=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\FlexUIPlatformRoyale.swc
    target:SWF
    target:JSRoyale
    COMPC
    Loading configuration:
    D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks\royale-config.xml
    
    COMPCJSCRoyale
    12.675484837 seconds
    ----------------------------------------
    
    Thanks,
    --Bhau
    
    
    
    
    
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C86e3b73c980d49f8ac9f08d603ab8148%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636700432478379440&amp;sdata=nIkX5UvXAdfVbp8u5W3UdaigvKkiCGZJHRudPklubYk%3D&amp;reserved=0
    

Mime
View raw message