Thanks.

I showed my colleague the spectrum demo. He was impressed. He is UI
designer. We want to try it out.

One question, since spectrum is not part of the royale sdk, is there an as
doc for spectrum  ?

I like looking api doc to understand how to use ui components (properties,
beads, e.t.c )

On Fri, 7 Jan 2022, 08:26 Harbs, <[email protected]> wrote:

> That’s right. There’s only one swc. Spectrum does not support swf.
>
> Spectrum.swc is for js.
>
> You need to manually copy the css files and use an html template files
> like you have in the SpecturmBrowser project.
>
> The easiest way to do that is to just copy the assets and template from
> there.
>
> On Jan 7, 2022, at 8:53 AM, Roman Isitua <[email protected]> wrote:
>
> Harbs I have been able to build the Spectrum project using ant. I used the
> binary release of 0.9.8 to achieve this.
>
> I have a question, in the target folder I can see only one file
> (Spectrum.swc). I was expecting to see three files. One Spectrum.swc and
> two others namely. One for js and another for swf.
>
> Can I use the Spectrum.swc in my js project ? Or is there a problem with
> the build process ?
>
>
>
> On Wed, 5 Jan 2022, 17:39 Harbs, <[email protected]> wrote:
>
>> Sorry for the trouble. I don’t use Maven, so I don’t have a Maven build
>> in Spectrum.
>>
>> You can feel free to make a PR with a Maven config to build it.
>>
>> Thanks,
>> Harbs
>>
>> On Jan 5, 2022, at 4:33 PM, Roman Isitua <[email protected]> wrote:
>>
>> I commented it out. It did not work. I had to comment on another area
>> with a similar message.
>>
>> The current error
>>
>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum>ant
>> Buildfile: C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\build.xml
>>      [echo] ROYALE_HOME: C:\ROYALE\apache-royale-0.9.8
>>
>> check-compiler-home:
>>
>> check-transpiler-home:
>>
>> check-compiler:
>>
>> BUILD FAILED
>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\build.xml:78:
>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\${ROYALE_COMPILER_HOME}\lib
>> does not exist.
>>
>>
>> Note: I built the royale sdk using maven.
>>
>> I have compared this maven built royale 0.9.8 sdk with the 0.9.7 binary
>> distribution I downloaded months ago when I started learning royale. I
>> noticed the 0.9.7 binary has a lib folder
>> (C:\ROYALE\apache-royale-0.9.7-bin-js-swf\royale-asjs\js\lib)  where the
>> compc.jar and mxmlc.jar files are located. But the maven built 0.9.8 does
>> not have a lib folder in that location. (Even after executing mvn clean
>> install)
>>
>> I guess I should consider building the 0.9.8 with ant ? I hope there will
>> be no issues building the same sdk with maven and then ant ?
>>
>>
>>
>>
>> On Wed, Jan 5, 2022 at 7:41 AM Yishay Weiss <[email protected]>
>> wrote:
>>
>>> I don’t know why that check was necessary in the original build, but it
>>> seems it isn’t for the spectrum one. Roman, you can just remove this line
>>> [1] from build.xml and I think it should work.
>>>
>>>
>>>
>>> [1]
>>>
>>> <fail message="ROYALE_SWF_COMPILER_HOME must be set to a folder with a
>>> lib sub-folder containing compiler-mxmlc.jar such as the compiler folder in
>>> royale-compiler repo or the root of a Royale SDK"
>>>
>>>         unless="ROYALE_SWF_COMPILER_HOME"/>
>>>
>>>
>>>
>>> *From: *Harbs <[email protected]>
>>> *Sent: *Wednesday, January 5, 2022 12:07 AM
>>> *To: *[email protected]
>>> *Subject: *Re: Setting up spectrum
>>>
>>>
>>>
>>> It’s checking for compiler-mxmlc.jar in the lib directory in
>>> ROYALE_HOME. Are you missing that for some reason?
>>>
>>> I’m not sure why it’s checking for that instead of compc.jar which is
>>> what it should actually be using.
>>>
>>> It was copied from the build.xml files used in the framework compile.
>>>
>>> Maybe Alex or Josh (or Greg?) can comment on that.
>>>
>>> > On Jan 4, 2022, at 11:54 PM, Roman Isitua <[email protected]>
>>> wrote:
>>> >
>>> > I am trying to build royale spectrum from source using ant.
>>> >
>>> > I get the below error
>>> >
>>> > C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum>ant
>>> > Buildfile:
>>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\build.xml
>>> >      [echo] ROYALE_HOME: C:\ROYALE\apache-royale-0.9.8
>>> >
>>> > check-compiler-home:
>>> >
>>> > BUILD FAILED
>>> > C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\build.xml:90:
>>> ROYALE_SWF_COMPILER_HOME must be set to a folder with a lib sub-folder
>>> containing compiler-mxmlc.jar such as the compiler folder in
>>> royale-compiler repo or the root of a Royale SDK
>>> >
>>> > Total time: 0 seconds
>>> >
>>> >
>>> > I have set the ROYALE_HOME correctly.
>>> >
>>> > How can I set ROYALE_SWF_COMPILER_HOME ? What is the correct path ?
>>> >
>>> > I built my royale sdk from source.
>>> >
>>> > Regards,
>>> >
>>> >
>>>
>>>
>>>
>>
>>
>

Reply via email to