Comment 23 for bug 1799946

Revision history for this message
Reuben Firmin (reubenf) wrote :

I attempted to compile JFX 8 from source manually, but it errors out. Can somebody try this and see if you can get any further? (I'm on 19.10).

```
# based on https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX, with updated gstreamer deps
sudo apt-get install ksh bison flex gperf libasound2-dev libgl1-mesa-dev \
    libgstreamer1.0-dev libgstreamer-plugins-base1.0-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 \
    libgtk2.0-dev libgtk-3-dev \
    libxtst-dev libudev-dev libavformat-dev cmake ruby

# most recent openjfx 8 build. theoretically openjfx 9 is compatible with jdk N-1 (https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-OpenJDK), but their gradle build blocks 9 from compiling on openjdk 8

git clone --branch 8u51-b09 https://github.com/openjdk/jfx.git

# their build requires gradle 1.8, which is from 2013 :(

# download 1.8 from: https://gradle.org/releases/

cd jfx
~/Downloads/gradle-1.8/bin/gradle
```

After doing this, I get:

```
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':graphics:ccLinuxGlass'.
> Could not call NativeCompileTask.compile() on task ':graphics:ccLinuxGlass'
```

Googling for this error takes me to: http://mail.openjdk.java.net/pipermail/openjfx-dev/2015-April/017156.html

I have a much more recent version of gcc than the answer references, so it _seems_ like this shouldn't be an issue. But it appears that OpenJDK 8 that's installed on Ubuntu 19.10 was probably built using an older version of gcc without this header? Is there a workaround short of compiling OpenJDK 8?