Robert Lichtenberger
2018-09-18 13:51:58 UTC
I am trying (again) to get my toes wet with building OpenJFX myself.
Here are some things I am wondering about:
https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Gradle
says:
Gradle is the primary build tool for building OpenJFX. We currently use
Gradle 4.8 <https://gradle.org/gradle-download/> for jfx-dev
but a few lines down it says:
add gradle-4.3/bin to your PATH
I assume it should say gradle-4.8/bin here too.
Other than that, I was able to build OpenJFX on Windows 64-bit without
web and media. So after that I tried to build with web and media, where
module) (@INC contains:
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts
/usr/local/lib/perl5/site_perl/5.26/x86_64-cygwin-threads
/usr/local/share/perl5/site_perl/5.26
/usr/lib/perl5/vendor_perl/5.26/x86_64-cygwin-threads
/usr/share/perl5/vendor_perl/5.26
/usr/lib/perl5/5.26/x86_64-cygwin-threads /usr/share/perl5/5.26) at
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts/VCSUtils.pm
line 37.
BEGIN failed--compilation aborted at
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts/VCSUtils.pm
line 37.
Compilation failed in require at
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts/webkitdirs.pm
line 48.
BEGIN failed--compilation aborted at
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts/webkitdirs.pm
line 48.
Compilation failed in require at
C:\openjfx\rt\modules\javafx.web/src/main/native/Tools/Scripts/set-webkit-configuration
line 33.
BEGIN failed--compilation aborted at
C:\openjfx\rt\modules\javafx.web/src/main/native/Tools/Scripts/set-webkit-configuration
line 33.
FAILURE: Build failed with an exception.
I then upgraded perl from the cygwin setup to revision 5 version 26
subversion 2, then the build was able to continue. Maybe the build
instructions could mention the exact minimum perl version required?
The build then took about an hour but otherwise completed successfully,
which is a pretty smooth experience considering the complexity of JavaFX
and WebKit ;-).
What about Windows 32-bit though? There will be no Oracle JDK from
JDK-11 onwards, however https://adoptopenjdk.net/ have said they are
willing to produce a JDK for Windows-32 bit. But will OpenJFX be
buildable for that platform? If yes, how?
Robert Lichtenberger
Here are some things I am wondering about:
https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Gradle
says:
Gradle is the primary build tool for building OpenJFX. We currently use
Gradle 4.8 <https://gradle.org/gradle-download/> for jfx-dev
but a few lines down it says:
add gradle-4.3/bin to your PATH
I assume it should say gradle-4.8/bin here too.
Other than that, I was able to build OpenJFX on Windows 64-bit without
web and media. So after that I tried to build with web and media, where
Task :web:compileNativeWin FAILED
Can't locate English.pm in @INC (you may need to install the Englishmodule) (@INC contains:
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts
/usr/local/lib/perl5/site_perl/5.26/x86_64-cygwin-threads
/usr/local/share/perl5/site_perl/5.26
/usr/lib/perl5/vendor_perl/5.26/x86_64-cygwin-threads
/usr/share/perl5/vendor_perl/5.26
/usr/lib/perl5/5.26/x86_64-cygwin-threads /usr/share/perl5/5.26) at
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts/VCSUtils.pm
line 37.
BEGIN failed--compilation aborted at
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts/VCSUtils.pm
line 37.
Compilation failed in require at
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts/webkitdirs.pm
line 48.
BEGIN failed--compilation aborted at
/cygdrive/c/openjfx/rt/modules/javafx.web/src/main/native/Tools/Scripts/webkitdirs.pm
line 48.
Compilation failed in require at
C:\openjfx\rt\modules\javafx.web/src/main/native/Tools/Scripts/set-webkit-configuration
line 33.
BEGIN failed--compilation aborted at
C:\openjfx\rt\modules\javafx.web/src/main/native/Tools/Scripts/set-webkit-configuration
line 33.
FAILURE: Build failed with an exception.
I then upgraded perl from the cygwin setup to revision 5 version 26
subversion 2, then the build was able to continue. Maybe the build
instructions could mention the exact minimum perl version required?
The build then took about an hour but otherwise completed successfully,
which is a pretty smooth experience considering the complexity of JavaFX
and WebKit ;-).
What about Windows 32-bit though? There will be no Oracle JDK from
JDK-11 onwards, however https://adoptopenjdk.net/ have said they are
willing to produce a JDK for Windows-32 bit. But will OpenJFX be
buildable for that platform? If yes, how?
Robert Lichtenberger