I don't mind building royale with ant even if it is for the purpose of
building spectrum.

Once I have the spectrum swc file, I can install it locally with maven then
register it as a dependency in my maven based project.


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