royale-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Zarzycki <piotrzarzyck...@gmail.com>
Subject Re: library Project in Moonshine IDE
Date Mon, 26 Feb 2018 10:40:22 GMT
Alina,

Understand now. We are mixing two different things.

1) Creating library with Apache Flex SDK usage - everything what I wrote
above apply with it.
2) Request from Alex create API report using Royale compiler - (Royale
SDK). - Start new thread with that attempt. Maybe in that case it would be
better if you do this through the console.

Your are attempting to make API report, so let's make it in the console,
because this is something not usual and probably Moonshine is not prepared
to do such things. I will respond to the Alex email in order to understand
what is going on. We need to simple scenario and later go with the harder
one.

Thanks, Piotr





2018-02-26 11:12 GMT+01:00 Alina Kazi <alina.kazi@d-bz.com>:

> Hi Piotr,
>
>
>
> Sorry !
>
> I am a programmer with 2 years experience. I don’t know much about these
> configurations and Settings.
>
> What I am trying to do is :
>
> 1. Compiling flex Library App with apache-flex-sdk-4.16.0
>
> 2. Compiling flex Library App with royale sdk and
>
>
>
> additional config pointed to flex-config.xml due to :
>
>
>
> Hi Alina,
>
>
>
> Piotr might be better at helping you use Moonshine.  The IDEs sort of
> expect that the libraries/SWCs that your code needs is in the same folder
> as the compiler.  That's why it might be easier to work from the command
> line.
>
>
>
> I remembered this morning that the Royale SWF Compiler doesn't have
> embedded font support.  However the goal isn't so much to make a runnable
> SWF but to have the compilation and linking complete so we can determine
> the full set of Flex APIs used in your app.
>
>
>
> If your code has two projects, then we will want you to compile both
> projects with the Royale compiler and get two API reports.  The Library
> project would be compiled with js/bin/compc and the main app would be
> compiled with js/bin/mxmlc.
>
>
>
> I think you will want to use the compiler option:
>
>    -load-config="path to a Flex SDK flex-config.xml"
>
> and also use
>
>   –compiler.targets=SWF
>
>
>
> HTH,
>
> -Alex
>
>
>
> *From: *Alex Harui <aharui@adobe.com>
> *Reply-To: *"users@royale.apache.org" <users@royale.apache.org>
> *Date: *Tuesday, February 20, 2018 at 10:30 AM
> *To: *"users@royale.apache.org" <users@royale.apache.org>
> *Subject: *Re: Substitutes in Apache Royale
>
>
>
> In fact, I went and tried it just now to build a Flex Hello World.
>
>
>
> I had Apache Flex 4.16.0 installed in /Users/aharui/ApacheFlex4.16.0.
> Then I:
>
>
>
> - took the apache-royale-0.9.1-bin-js-swf package from [1]  (you must use
> the bin-js-swf and not just bin-js).
>
> - unzipped the package
>
> - ran in the package's royale-asjs folder: ant –f InstallAdobeSDKs.xml
>
>
>
> That results in a working Royale SDK with SWF Support.
>
>
>
> Then I ran from the royale-asjs folder:
>
>
>
>   bin/mxmlc <path to app's .mxml file> -load-config=/Users/aharui/
> ApacheFlex4.16.0/frameworks/flex-config.xml
>
>
>
> The compile finished successfully.  I think I'm going to work on the API
> report now and deal with the * selector after.  If you can get a SWF build
> via this technique, this is the technique you will use to generate the API
> report.
>
>
>
> Thanks,
>
> -Alex
>
>
>
>
>
>
>
> I have one more question that the Project is Flex Library Project(in
> Moonshine IDE) . Can we compile it with Royale Compiler using Royale Src?
> Or It will only work for Flex Source Only?
>
>
>
>
>
> Thanks ,
>
> Alina
>
> *From:* Piotr Zarzycki [mailto:piotrzarzycki21@gmail.com]
> *Sent:* Monday, February 26, 2018 2:59 PM
>
> *To:* users@royale.apache.org
> *Subject:* Re: library Project in Moonshine IDE
>
>
>
> Alina,
>
>
>
> I don't understand in that case what are you trying to achieve. Why do you
> have additional config pointed to flex-config.xml. The things are working
> in the following way. If you create project which is using Flex/Adobe AIR
> SDK you can "say" to that project which config will be used.
>
>
>
> In your case you are seems to create Library project which you wanted to
> have inside Adobe Air resources - like manipulation on Files etc.
>
>
>
> If in "Additional compiler options" you have +configname=flex - it means
> that compiler will automatically search for flex-config.xml and will use
> it.
>
> If in "Additional compiler options" you have +configname=air - it meants
> that compiler will automatically search air-config.xml and will use it.
>
>
>
> Probably there is no need to point directly that flex-config.xml
>
>
>
> If you raise an issue on the GitHub other Moonshine Team members will have
> view on that. I didn't write support for libraries.
>
>
>
> Thanks, Piotr
>
>
>
> 2018-02-26 10:34 GMT+01:00 Alina Kazi <alina.kazi@d-bz.com>:
>
> Hi,
> I haven't change the output path in Settings.
>
> Custom SDK in Setting :
> Try 1. Using Apache Flex 4.16 with AIR 16.0
>
> Try 2. Using Royale 0.9.0 / 0.9.1 / 0.9.2
> With Additional Compiler Settings:
> -config=D:/apache-flex-sdk-4.16.0-bin/frameworks/flex-config.xml
>
> In Both cases When I build (Project->build Project ) compilation to console
> output is:
> Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
> And Default SDK Path.
>
>
> -----Original Message-----
> From: devsena [mailto:devsena@yahoo.com]
> Sent: Monday, February 26, 2018 1:18 PM
> To: users@royale.apache.org
> Subject: Re: library Project in Moonshine IDE
>
> Alina Kazi wrote
> > I am trying to create and build a sample flex library Project in
> Moonshine
> > IDE.
> > No .swc output file generated and no error occurred.
> >
> > Settings screenshot:
> >
> https://www.dropbox.com/s/gz5m8f2t63x625y/libraryProjectbuildissue.png?
> dl=0
>
> Thank you for reporting this, Alina. (on a separate note, you can also
> report issues to Moonshine at
> https://github.com/prominic/Moonshine-IDE/issues)
>
> Usually Moonshine compiles the project's SWC file to its 'bin-debug' folder
> (unless you changed the output path at project/Settings/Run). However, in
> sample project run the usual output is different than yours:
>
> <http://apache-royale-users.20374.n8.nabble.com/file/t32/Untitled.png>
>
> There is some differences I'm confused about, though -
> 1. The compiler output shown in your image seems using Royale SDK but in
> project's custom SDK selection you've shown its Apache Flex 4.16 with AIR
> 16.0
> 2. I couldn't seen any reference of attempt compilation to console output,
> either (Project > Build Project)
>
> Can you share screen of your project's Settings/Paths and Settings/Run
> section?
>
> Thanks!
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>



-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Mime
View raw message