gluonhq / gluonfx-maven-plugin

Plugin that simplifies creating native images for Java/JavaFX maven projects
BSD 3-Clause "New" or "Revised" License
186 stars 38 forks source link

Linux-aarch64 Build failed #482

Open HaneneS opened 11 months ago

HaneneS commented 11 months ago

Hi Team,

I'm trying to generate a native image for Android profile using Linux with architecture aarch64 and I installed the GraalVM Version info: 'GraalVM 22.1.0 Java 17 CE' from this page https://github.com/gluonhq/graal/releases/tag/gluon-22.1.0.1-Final because the recommended one https://github.com/gluonhq/graal/releases/tag/gluon-22.1.0.1-Final seems not working for aarch64 but only for x86_64.

when I run: mvn -Pdesktop gluonfx:build -> linked failed and I receive many error library messages like this:

[INFORMATION] [SUB] /usr/bin/ld: eclipse-workspace/my-fx-gluon-application/target/gluonfx/aarch64-linux/gvm/tmp/SVM-1691492601948/com.mygluonfx.sample.main.o:(.data+0x6d0): undefined reference to Java_com_sun_pisces_PiscesRenderer_setRadialGradientImpl' undefined reference toJava_com_sun_pisces_PiscesRenderer_setCompositeRuleImpl'

when I run: mvn -Pandroid gluonfx:build -> compile failed

[Di. Aug. 08 12:03:31 UTC 2023][INFORMATION] We will now compile your code for aarch64-linux-android. This may take some time. java.io.IOException: You specified an android NDK, but it doesn't contain /ndk/toolchains/llvm/prebuilt/linux-aarch64/bin/ld.lld

Actually under /ndk/toolchains/llvm/prebuilt I see only linux-x86_64 folder.

Could you please recommend me which Graalvm and android ndk should I use?

Thanks.