Cross-compiling JavaFX for Apple ARM64

Kevin Rushforth kevin.rushforth at oracle.com
Mon Nov 29 18:34:37 UTC 2021


Not currently. I admit it would be nice, but there are some challenges 
that make this difficult. One of the main ones that Johan discovered is 
that the WebKit build system builds some tools (executable binaries) 
that are then used in later stages of the build. This means that those 
tools need to be built using the host architecture and not the target 
architecture, but at least one of them (LLIntOffsetsExtractor) depends 
on one of the WebKit modules, so then that would need to be built 
initially using the host architecture so that the tool could be built, 
and then rebuilt using the target arch. I have no idea how much work it 
would be to solve this.

-- Kevin


On 11/25/2021 9:03 PM, Michael Strauß wrote:
> JavaFX can be cross-compiled for Apple ARM64 on an Intel Mac by
> specifying TARGET_ARCH=arm64 for the Gradle build.
> This works for all native libraries except for WebKit, because
> TARGET_ARCH is not passed to WebKit's cmake script. Are there any
> plans to support this particular scenario?



More information about the openjfx-dev mailing list