Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Setting up a Linux build configuration is fairly straightforward. These build instructions were used for Ubuntu 1618.04.

Ubuntu

...

18.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 \
    x11proto-xf86vidmode-dev libavcodec-dev mercurial 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:

...

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 \
    libXtstgtk2-devel gtk3-devel pango-devel freetype-devel

...

Popular options include SourceTree from Atlassian, TortoiseHg for Windows, or the command line tools from Mercurial. On Windows, you can also install Mercurial as a Cygwin package.

Git

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

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.

...