Closed BenoitDuffez closed 3 years ago
The on_load
function is used here:
https://github.com/jlouis/enacl/blob/master/src/enacl_nif.erl#L207-L219
I'd check if there's a .so
in there (this is the NIF part, it should dynamically load libsodium
when it is loaded into the VM.
It seems there was a mismatch of the sodium versions. I was using the 18, I switched to 17 and it has solved the problem. It was indeed a .so
load error.
Thanks!
Hello,
I am new to Erlang so this is not likely a bug. I have cross compiled this to enacl_nif.so, after having cross compiled libsodium-1.0.18.
The generated lib references libsodium:
which is available on the target:
However when I run my erlang app that uses enacl, here's what I get:
It seems it fails to load enacl_nif. Does that ring a bell? Did I do something wrong?
Build machine: x86_64 (linux, ubuntu, elementary os) Target machine: armv7hf (linux, busybox)