Building OpenJFX on clean install of CentOS 7

Michael Franz mvfranz at
Thu Oct 17 03:47:10 UTC 2019


I did a clean install of CentOS 7, updated, added the necessary tools and
then cloned the repo and ran the default build.  I get the following errors:
error: unused parameter ‘event’ [-Werror=unused-parameter]
 glass_gdk_master_pointer_grab(GdkEvent *event, GdkWindow *window,
GdkCursor *cursor) {
error: unused parameter ‘event’ [-Werror=unused-parameter]
 glass_gdk_master_pointer_ungrab(GdkEvent *event) {
cc1plus: all warnings being treated as errors

> Task :graphics:ccLinuxGlassGlassgtk2 FAILED

Is this expected?  I have not found any documentation specifing the minimum
version of gcc/g++ and wonder if I need to upgrade? I am using g++ (GCC)
4.8.5 20150623 (Red Hat 4.8.5-39).  Also, other native code in the build
are treating the unused-parameter as a warning.  Why is this module
warning: unused parameter ‘that’ [-Wunused-parameter]
     (JNIEnv *env, jclass that, jlong arg0)

Here are the detailed steps I followed:
0. sudo yum update
1. sudo yum install git bison flex pkgconfig gtk2-devel gtk3-devel
pango-devel freetype-devel libXtst-devel java-11-openjdk-devel ant gcc-c++
2. sudo alternatives --config java
  - specify Java 11
3. git clone
4. cd jfx
5. bash ./gradelw

Any suggestions is appreciated.


More information about the openjfx-dev mailing list