Building OpenJFX on clean install of CentOS 7
Michael Franz
mvfranz at gmail.com
Thu Oct 17 03:47:10 UTC 2019
Hi,
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:
/home/test00/Source/jfx/modules/javafx.graphics/src/main/native-glass/gtk/glass_general.cpp:598:1:
error: unused parameter ‘event’ [-Werror=unused-parameter]
glass_gdk_master_pointer_grab(GdkEvent *event, GdkWindow *window,
GdkCursor *cursor) {
^
/home/test00/Source/jfx/modules/javafx.graphics/src/main/native-glass/gtk/glass_general.cpp:628:1:
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
different?
/home/test00/Source/jfx/modules/javafx.graphics/src/main/native-font/pango.c:429:26:
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++
libstdc++-static
2. sudo alternatives --config java
- specify Java 11
3. git clone https://github.com/openjdk/jfx.git
4. cd jfx
5. bash ./gradelw
Any suggestions is appreciated.
Michael
More information about the openjfx-dev
mailing list