JDK-8172219 : Allow compiling without GTK 3.0 being installed
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2017-01-03
  • Updated: 2017-01-04
  • Resolved: 2017-01-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Fixed
Related Reports
Relates :  
Description
After JDK-8163496 on Linux GTK 3.0 must be installed despite there being conditionals in the scripts to compile if it is not. There is a simple fix:

diff -r d59805c7ee03 buildSrc/linux.gradle
--- a/buildSrc/linux.gradle	Tue Jan 03 10:39:05 2017 -0800
+++ b/buildSrc/linux.gradle	Tue Oct 20 09:23:23 2015 -0700
@@ -181,7 +181,7 @@
     logger.info("Building libglassgtk3")
     LINUX.glass.variants += "glassgtk3"
 } else {
-    logger.warning("NOT Building libglassgtk3")
+    logger.info("NOT Building libglassgtk3")
 }
 
 FileTree ft_gtk_launcher = fileTree("${project(":graphics").projectDir}/src/main/native-glass/gtk/") {
Comments
Changeset: 2177a9efce05 Author: ddhill Date: 2017-01-04 12:32 -0500 URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/2177a9efce05 8172219: Allow compiling without GTK 3.0 being installed Reviewed-by: kcr, cbensen ! buildSrc/linux.gradle
04-01-2017

+1
04-01-2017

+1
04-01-2017

All that testing I did and when I changed the type of the logger I spelled it wrong :-) I don't think I will switch it to info, I really do want to print it out without a --info flag diff --git a/buildSrc/linux.gradle b/buildSrc/linux.gradle --- a/buildSrc/linux.gradle +++ b/buildSrc/linux.gradle @@ -181,7 +181,7 @@ logger.info("Building libglassgtk3") LINUX.glass.variants += "glassgtk3" } else { - logger.warning("NOT Building libglassgtk3") + logger.warn("NOT Building libglassgtk3") } FileTree ft_gtk_launcher = fileTree("${project(":graphics").projectDir}/src/main/native-glass/gtk/") {
04-01-2017