mirror of
https://github.com/mautrix/signal.git
synced 2025-03-14 14:15:36 +00:00
1.1 KiB
1.1 KiB
libsignalgo
Go bindings for libsignal.
Installation
- Install Rust. You may also need to install libclang-dev and cbindgen manually.
- Clone libsignal somewhere.
- Run
./update-ffi.sh <path to libsignal>
(this builds the library, regenerates the header, and copies them both here) - Copy
libsignal_ffi.a
to/usr/lib/
.- Alternatively, set
LIBRARY_PATH
to the directory containinglibsignal_ffi.a
. Something like this:LIBRARY_PATH="$LIBRARY_PATH:./pkg/libsignalgo" ./build.sh
- Alternatively, set
- Use like a normal Go library.
Precompiled
You can find precompiled libsignal_ffi.a
's on
mau.dev/tulir/gomuks-build-docker.
Direct links: