Very, very confused about properly sourcing libsignal-client JAR during native build process #1431
Replies: 2 comments 6 replies
-
nevermind- found the JAR, was looking a directory too deep. it's at java/client/build/libs/libsignal-client-0.36.1.jar |
Beta Was this translation helpful? Give feedback.
-
Just to clarify: If you're referring to a native binary (built using GraalVM), then you do not need to deploy the system-specific dynamic |
Beta Was this translation helpful? Give feedback.
-
I've followed all the threads about this, and I've also got a native build working some time ago by just copying a dylib into the lib structures when I did the build on my mac. I can't for the life of me figure out, if I am building the native image, where do I source or build the JAR for libsignal-client that is referenced all over? i see it in the release tarball, but how does it even get there?
when you run the build_jni script in libsignal (as directed in the wiki article about building your own lib) you just get the shared object. All the instructions in the various threads discussing this then say to delete the .so from the JAR, then replace it with your custom built one. As if the JAR just exists...
So I looked for the JAR in the repo, would be weird for it to be checked in but who knows. Unsurprisingly, it wasn't there. So then I thought, maybe the only thing inside this JAR is for some reason this shared object, so i downloaded the release tarball, looked at jar tvf and that told me indeed there is actually compiled java too. So, where on earth do I actually get/build this JAR file? If the answer is 'get it from the release tarball' i'm still just as confused because how does it get there?
Furthermore, it looks like you still need to copy this into the java libs on the target system, which is exactly what I was hoping to avoid with a native image build, assuming it would be static minus its glibc linking...
Beta Was this translation helpful? Give feedback.
All reactions