Try to build OpenJFX

Since I take this OpenJFX for Embedded Devices [CON3307] session at JavaOne2014, I wanted to try to build OpenJFX. The session was about Building the OpenJFX embedded stack for Linux desktop,but I use Mac at first.
Building the OpenJFX embedded stack for Linux desktop - OpenJFX - OpenJDK Wiki
Thanks to this article, it is not difficult to build openjfx.Building OpenJFX - OpenJFX - OpenJDK Wiki

Environments

Prerequisites


I installed Gradle by using GVM before, but it's version is 1.12.But because Gradle 1.8 is required, I installed Gradle 1.8.(F.Y.R seesdkman the Software Development Kit Manager)

gvm install gradle 1.8
  • QT

I did not know about QT at that time, then downloaded the latest version 5.3.Qt - Developers

After trying qmake command, the below error occurred.

Amending the first line of qdevice.pri file(macosx10.8 ->macosx10.9) to resolve this error.

Building OpenJFX

  • add the following line to your ~/.gradle/gradle.properties file:

  • Getting the Sources

Making the openjfx folder, because I wanted to clone the source file in the openjfx folder.

mkdir openjfx
cd openjfx
hg clone http://hg.openjdk.java.net/openjfx/8u-dev/rt
  • Executing tasks command
cd rt
gralde tasks

It is takes time to execute tasks command for the first time.

  • clean
gradle clean
gradle projects

  • To know the build time by using profile command
gradle --profile

The error occurred.

Thanks to the article, the profile command worked.
Building OpenJFX on Mac OS X 10.9.2 / XCode 5.1 / XCode 4.3.3

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk

To check the html file under build/reports/profile directory.

gradle

The build succeeded!

  • test
gradle base:test

The test succeeded.
To check the html file under modules/base/build/reports/tests directory.

Anyway I am sooooooo happy to see how to build openJFX! ;-)