- Loading...
You can build the embedded OpenJFX sources for a Linux/x86 desktop. This has slightly different behavior to the regular OpenJFX for Linux:
/dev/fb0
or an X11 window. Note that accelerated rendering to the framebuffer using EGL is generally not supported on desktop platforms. Accelerated rendering to an X11 window with EGL usually is supported, as long as you have the correct EGL and OpenGL ES 2.0 librariesTo build, prepare an Ubuntu build machine as you would for a desktop build. Then install the following additional packages:
libdirectfb-dev
libudev-dev
libegl1-mesa-dev
libgles2-mesa-dev
Build with
gradle -PCOMPILE_TARGETS=x86egl sdk
Run Java using the OpenJFX binaries that are created in the output directory build/x86egl-sdk/rt. The easiest way to do this is to run a regular Java 8 JRE with the command-line parameter:
-Djava.ext.dirs=build/x86egl-sdk/rt/lib/ext
To run using accelerated rendering to an X11 window, use the flags:
-Djavafx.platform=monocle -Dmonocle.platform=X11 -Dembedded=monocle
To run using software rendering to a framebuffer, use the flags:
-Djavafx.platform=monocle -Dmonocle.platform=Linux -Dprism.order=sw