• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. OpenJFX
  4. Building OpenJFX

Page History

Versions Compared

Old Version 138

changes.mady.by.user Nir Lisker

Saved on Aug 03, 2019

compared with

New Version 139

changes.mady.by.user Nir Lisker

Saved on Oct 10, 2019

  • Previous Change: Difference between versions 137 and 138
  • Next Change: Difference between versions 139 and 140
  • View Page History

Key

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

...

  • Cygwin. Some packages to make sure are installed are:
    • mercurial (hg)
    • openssh
    • zip
    • unzip
    • make (needed to compile media)
    • makedepend (needed for media)
    • Optional: git
  • Microsoft Visual Studio 2017, either Professional or Community edition. The Desktop development with C++ workload is required at most, but it may be possible to install individual components to satisfy the requirements.
  • Microsoft DirectShow header files – If you build media you will need the DirectShow header files from the Microsoft Windows SDK v7.1, installed in its default location of "C:\Program Files\Microsoft SDKs\Windows\v7.1".

...

  • Cmake 3.8.2 or later, available from the Cmake download site
  • Additional cygwin Cygwin tools:
    • bison
    • flex
    • g++
    • gperf
    • perl
    • python
    • ruby

All commands on this page are ran inside Cygwin (and not in Windows CMD).

...

sudo apt-get update
sudo apt-get install libavformat-ffmpeg57 libgl1-mesa-dev \
    libx11-dev pkg-config x11proto-core-dev mercurial git \
libgtk2.0-dev libgtk-3-dev

...

Common Prerequisites

OpenJDK

Download OpenJDK 11 12 or later to use as the boot JDK to build and test OpenJFX. We recommend JDK 12.0.213.

...

Git

OpenJFX

...

(and OpenJDK) transitioned to Git as part of Project Skara. The OpenJFX repo is hosted on GitHub at openjdk/jfx. We encourage developers to become familiar with Git and GitHub.

Many (if not all) IDEs include built in support

...

. For example, Eclipse uses EGit, which can be downloaded through the built-in update site http://download.eclipse.org/releases/latest/ under Collaboration > Java implementation of Git.

For Linux,

...

the git package is included in the list of required packaged that were installed.

...

 On Windows, you can also install

...

git 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 futurePopular GUI options include SourceTree for Windows or Mac from Atlassian and TortoiseGit for Windows.

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). The current and minimum Gradle versions are defined in the source code. 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.

...

  • set JAVA_HOME and JDK_HOME to point to the root of your jdk-N release.
  • add $JAVA_HOME/bin to your PATH
  • if you do not use the wrapper, add gradle-5x.3y/bin to your PATH where x.y is the version
  • add apache-ant-1.10.5/bin to your PATH

...

All OpenJFX sources are held in mercurial repositories. As mentioned in Repositories and Releases, we have several different repositories for you to choose from, although most developers should use the mainline jfx-def repo. in https://github.com/openjdk/jfx (see Repositories and Releases). To clone the repo from the command line, use:

Code Block
languagebash
# for the active development stream, currently targeted for JDK 1314
hggit clone httphttps://hggithub.com/openjdk.java.net/openjfx/jfx-dev/rtjfx.git

Other tools will have a clone option(Note: Historically you also had to clone the top "jfx" repository in the forest that you cared about. However we have modified our approach, such that we no longer promote the use of a forest, and instead are putting all of our sources in a single repository, named "rt").

Using Gradle on The Command Line

Before diving directly into building OpenJFX, lets get our feet wet by learning what kinds of things we can call from the command line, and how to get help when we need it. The first command you should execute is tasks:

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 317, "requestCorrelationId": "123589925431c72b"}