Setting up a Linux build configuration is fairly straightforward. These build instructions were used for Ubuntu 1618.04.
First, run the following command to install all the required development packages:
TODO: verify and update this (I think many are unused)
sudo apt-get update sudo apt-get install ksh libasound2libavformat-devffmpeg57 libgl1-mesa-dev \ libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libjpeg-dev \ libpng-dev libx11-dev libxml2-dev libxslt1-dev libxt-dev \ libxxf86vm-dev pkg-config x11proto-core-dev \mercurial x11proto-xf86vidmode-dev libavcodec-dev mercurial git \
libgtk2.0-dev libgtk-3-dev \ libxtst-dev libudev-dev libavformat-dev
If you build WebKit (it is not built by default) you will need the following additional tools:
- Cmake 3.813.2 3 or later, available from the Cmake download site
We use Oracle Linux 7 to build the javafx.* modules that we ship with the Oracle JDK releases. Here are the packages you will need:
TODO: verify and update this
yum install mercurial git bison flex gperf ksh pkgconfig \
libpng12-devel libjpeg-devel libxml2-devel \
libxslt-devel systemd-devel glib2-devel gtk2-devel gtk3-devel \
libXtst-devel pango-devel freetype-devel
The javafxports/openjdk-jfx mirror on GitHub is used a development sandbox, so we encourage developrers to become familiar with Git. We are in the process of transitioning to Git as part of Project Skara. The OpenJFX repo is: https://github.com/openjdk/jfx. That is currently a read-only mirror, but we will likely transition to it in the not-too-distant future.
Gradle is the primary build tool for building OpenJFX. Since the repository includes a Gradle wrapper that will download the correct Gradle version when needed, you do not need to manually install Gradle. We currently use Gradle 5.3 for jfx-dev (IMPORTANT: Only this version is regularly tested). If you want to generate a wrapper yourself (for example, you want to build OpenJFX with a different Gradle version), then you will need to install Gradle.