realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Apache License 2.0
958 stars 61 forks source link

Add support for Desktop (JVM) Linux ARM64 #1551

Open iXPert12 opened 1 year ago

iXPert12 commented 1 year ago

How frequently does the bug occur?

Always

Description

I'm developing a jetbrains compose desktop application for raspberry pi. When testing on Debian ARM64 , the application always crashes because of wrong librealmc.so

image

The issue is that the linked librealm is for x64, nor ARM64

image

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

1.11.1

What Atlas App Services are you using?

-- select --

Are you using encryption?

No

Platform OS and version(s)

Debian Bookworm ARM64

Build environment

Android Studio version: 2022.3.1 Patch 2 for library publishing that includes realm Android Build Tools version: 33 Gradle version: 7.6.2 IntelliJ Idea Community: 2023.2.3 for desktop UI

cmelchior commented 1 year ago

Hi @iXPert12

Yes, unfortunately, this is a gap in our documentation. I thought we had this covered at https://www.mongodb.com/docs/realm/sdk/kotlin/install/#supported-environments but I can see that we do not mention which platforms JVM actually supports.

Currently, we only build for Linux x64 due to limitations in our CI infrastructure. It has been something we wanted to address for a while but we haven't had the time to fully finish it.

Note, it is possible to build the binary for ARM 64 yourself by using the same logic defined here: https://github.com/realm/realm-kotlin/blob/main/Jenkinsfile#L710

I'll also convert this issue to track adding linux arm64 support, so it is more explicit.

cmelchior commented 1 year ago

Note, this issue is also tracking build natively for these platforms: https://github.com/realm/realm-kotlin/issues/617