Allow OpenJFX to be built on unknown architectures

Glavo zjx001202 at gmail.com
Thu Mar 30 18:17:26 UTC 2023


Thank you for your contribution!

I compiled OpenJFX for RISC-V and MIPS64el platforms with reference to your
patch, thereby porting our JavaFX applications to these platforms, and it
worked well.

Glavo

On Fri, Mar 31, 2023 at 1:59 AM John Neffenger <john at status6.com> wrote:

> On 3/30/23 10:44 AM, Kevin Rushforth wrote:
> > No, I didn't see this. Yes, this seems a reasonable request.
>
> Actually, I was going to submit a pull request to get my patch for this
> change integrated (after the reproducible builds PR is merged). I've
> tested JavaFX on all six architectures for Linux: amd64, arm64, armhf,
> i386, ppc64el, and even s390x! It works on all platforms except for the
> software rendering on an IBM mainframe (s390x), but even that could be
> fixed someday. The bug is due to the mainframe being big-endian instead
> of little-endian.
>
> My tests of Java and JavaFX on all Linux architectures are posted here:
>
> Status
> https://github.com/jgneff/openjdk/discussions/11
>
> The Java bug on an s390x virtual machine should be fixed by now, too,
> but I haven't yet had a chance to test the QEMU fix.
>
> John
>
> > On 3/30/2023 10:34 AM, Glavo wrote:
> >> Did I successfully send this email to the mailing list?
> >>
> >> On Wed, Mar 29, 2023 at 10:18 PM Glavo <zjx001202 at gmail.com> wrote:
> >>
> >>     Hi everyone,
> >>
> >>     Currently OpenJFX's build script asserts the CPU architecture and
> >>     does not allow building on unknown architectures.
> >>     But in fact OpenJFX is cross-platform, it can actually be built
> >>     and run on almost all architectures.
> >>     The only hurdle was the asserts in the build scripts, and John
> >>     made it compile on the s390x and ppc64el platforms with a simple
> >>     patch[1].
> >>
> >>     I'm working on some niche architectures (such as MIPS64el and
> >>     RISC-V) and I need to compile OpenJFX for them.
> >>     I understand the need to warn users that there may be unknown
> >>     issues building on these architectures,
> >>     and I don't have time to do regular testing to ensure that OpenJFX
> >>     works on these architectures.
> >>     But I wish it was simpler to build OpenJFX on these architectures.
> >>     So can we add a gradle property to have the build script skip the
> >>     assertion on the architecture,
> >>     thus allowing us to build OpenJFX on unknown architectures without
> >>     modifying any files?
> >>
> >>     Glavo
> >>
> >>     [1]:
> >>
> https://github.com/jgneff/openjfx/blob/candidate/snap/local/allow-armhf-i386-ppc64el-s390x.patch
> >>
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230331/e3075f27/attachment-0001.htm>


More information about the openjfx-dev mailing list