From 33adb7ad7ef98b89126bd45017477d366f6ca072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pereda?= Date: Wed, 18 Sep 2024 10:23:34 +0200 Subject: [PATCH] Add warnings on Windows and Linux AArch64 (#1279) --- .../substrate/target/LinuxTargetConfiguration.java | 2 ++ .../substrate/target/WindowsTargetConfiguration.java | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gluonhq/substrate/target/LinuxTargetConfiguration.java b/src/main/java/com/gluonhq/substrate/target/LinuxTargetConfiguration.java index 58248818..7ab4be7a 100644 --- a/src/main/java/com/gluonhq/substrate/target/LinuxTargetConfiguration.java +++ b/src/main/java/com/gluonhq/substrate/target/LinuxTargetConfiguration.java @@ -113,6 +113,8 @@ public LinuxTargetConfiguration(ProcessPaths paths, InternalProjectConfiguration public boolean compile() throws IOException, InterruptedException { if (isAarch64) { projectConfiguration.setUsePrismSW(true); // for now, when compiling for AArch64, we should not assume hw rendering + Logger.logSevere("Error: Building a native image is not yet supported on Linux AArch64 with this version.\nPlease use GluonFX plugin version 1.0.23 instead."); + return false; } return super.compile(); } diff --git a/src/main/java/com/gluonhq/substrate/target/WindowsTargetConfiguration.java b/src/main/java/com/gluonhq/substrate/target/WindowsTargetConfiguration.java index 0c8378c6..f9e585cb 100644 --- a/src/main/java/com/gluonhq/substrate/target/WindowsTargetConfiguration.java +++ b/src/main/java/com/gluonhq/substrate/target/WindowsTargetConfiguration.java @@ -205,6 +205,12 @@ private List asListOfWholeArchiveLinkFlags(List libraries) { return linkFlags; } + @Override + public boolean compile() throws IOException, InterruptedException { + Logger.logSevere("Error: Building a native image is not yet supported on Windows with this version.\nPlease use GluonFX plugin version 1.0.23 instead."); + return false; + } + @Override public boolean link() throws IOException, InterruptedException { createIconResource(); @@ -319,7 +325,7 @@ List getAdditionalSourceFiles() { @Override public boolean createStaticLib() throws IOException, InterruptedException { - Logger.logSevere("Error: building a static image is not supported on Windows"); + Logger.logSevere("Error: building a static image is not supported on Windows yet"); return false; }