Provide native lib for libsignal with GraalVM #689
Replies: 3 comments
-
Some news here, I read more about GraalVM and I was able to get it working. Writing here if it can help someone else:
One thing not working tho is the Anyway, performance is great now! Thanks a lot for your time. |
Beta Was this translation helpful? Give feedback.
-
I Compiled as you described and Got an native build but IT says that lib misssing required native library dependency: libsignal-client. How can i fix that? Got IT Workin with v0.8.1 |
Beta Was this translation helpful? Give feedback.
-
@mericon do you have the |
Beta Was this translation helpful? Give feedback.
-
Hi everyone 👋 thank you for your amazing work!
I'm facing an issue when I try to include
signal-client-java-0.2.3.jar
&zkgroup-java-0.7.0.jar
modified using compiled versions oflibsignal-client-java-0.2.3
&zkgroup-0.7.2
AND GraalVM native image for aarch64 (Raspberry Pi 4 thru a docker image).If I use the "usual" way without GraalVM everything works like a charm!.. except that starting a JVM every time we need to send a message is a no-go to me in terms of performance.
So I decided to try to include GraalVM in the process of building this library;
It works! But not for the modified versions of
signal-client-java-0.2.3.jar
&zkgroup-java-0.7.0.jar
.Here is what I've done so far (sorry if it doesn't make sense, I absolutely don't know how Gradle, GraalVM.. works):
libsignal-client-java-0.2.3
&zkgroup-0.7.2
signal-cli-0.8.1
signal-cli-0.8.1
withgradle build && gradle installDist
BUT notgradle distTar
... which doesn't seem related to GraalVMsignal-client-java-0.2.3.jar
&zkgroup-java-0.7.0.jar
with the results oflibsignal-client-java-0.2.3
&zkgroup-0.7.2
compilationssignal-cli-0.8.1
withgradle assembleNativeImage
Unfortunately
gradle assembleNativeImage
doesn't seem to use the result ofgradle build && gradle installDist
to perform his tasks..I hope @AsamK or/and @michaelkebe could take a look into this issue.
I'm ready to perform tests if you need me to.
Thanks a lot for your time.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions