From d5972fcaa2f0cf6d682fa1c022051871521f9190 Mon Sep 17 00:00:00 2001 From: AsamK Date: Tue, 15 Dec 2020 23:03:42 +0100 Subject: [PATCH] Created Provide native lib for libsignal (markdown) --- Provide-native-lib-for-libsignal.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Provide-native-lib-for-libsignal.md diff --git a/Provide-native-lib-for-libsignal.md b/Provide-native-lib-for-libsignal.md new file mode 100644 index 0000000..47a00c2 --- /dev/null +++ b/Provide-native-lib-for-libsignal.md @@ -0,0 +1,6 @@ +For the new v2 groups libsignal-service requires [libzkgroup](https://github.com/signalapp/zkgroup), a native (rust) library. The library needs to be compiled separately for each CPU architecture and operating system. +The `.dylib` for macOS and the `.so` for unix systems can be bundled in the root of the `zkgroup-java-*.jar` file (but only for one architecture at a time). Only if there is no bundled file will libsignal search the library path (`java.library.path`) for the `.dylib`/`.do`/`.dll` file. + +The linux x86_64 version is bundled by default, for other systems, you need to remove the bundled lib from the jar file, download or compile the latest [libzkgroup](https://github.com/signalapp/zkgroup/releases) for your system and put it in the library path. + +`zip -d lib/zkgroup-java-*.jar libzkgroup.so` \ No newline at end of file