https://kotlinlang.org logo
Title
m

miguelsesma

05/10/2022, 1:14 PM
I'm trying to create a deb package for installing in Linux Arm64 (Nvidia jetson nano) from a M1 macbook. I know that I can't do it directly so I have installed a linux vm using Canonical Multipass. Once Java nad Gradle are configures I have this environment:
ubuntu@primary:~/Home/IdeaProjects/untitled$ uname -a
Linux primary 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:12:14 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@primary:~/Home/IdeaProjects/untitled$ gradle -version

------------------------------------------------------------
Gradle 7.4.2
------------------------------------------------------------

Build time:   2022-03-31 15:25:29 UTC
Revision:     540473b8118064efcc264694cbcaa4b677f61041

Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          16.0.1 (Private Build 16.0.1+9-Ubuntu-120.04)
OS:           Linux 5.4.0-109-generic aarch64
Now I try to create the package but gradle complains about not having `skiko`:
ubuntu@primary:~/Home/IdeaProjects/untitled$ gradle createDistributable

> Task :run FAILED
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/ubuntu/.skiko/301a4ed732d2008e05d036470d72b8c7a7df9df1b3cc0d356615c8129124eae2/libskiko-linux-arm64.so: libGL.so.1: cannot open shared object file: No such file or directory
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
I cannot install intellij idea
ubuntu@primary:~/Home/IdeaProjects/untitled$ sudo snap install intellij-idea-community --classic
error: snap "intellij-idea-community" is not available on stable for this architecture (arm64) but
       exists on other architectures (amd64).
So I need to somewhat configure skiko, skia or whatever is need, but I'm lost. After reading everythinh in this channel related to raspberry pi, I'm even more confused. Perhaps trying to install intellij as explained here https://youtrack.jetbrains.com/articles/IDEA-A-48/JetBrains-IDEs-on-AArch64 will provide me the skia / skiko needed dependencies? Any help is welcomed.
Finally managed to build a deb package on a macbook M1 using multipass, but I had to install ubuntu-desktop and intellij idea. the good part is that now I can create the app in ida under macOS, and then, with only a command, start a multipass VM, and compile a deb package.