Hi, I am getting this error when i try to load the...
# general
p
Hi, I am getting this error when i try to load the libpact_ffi.so in erlang vm that i got from pact_ffi release page:
Copy code
"No driver init in dynamic library"
I have tried multiple ways to load the pact ffi shared library but getting errors similar to the above one, any help would be appreciated. Thanks in advance!
u
a quick Google turns up: https://stackoverflow.com/questions/54371108/error-opening-c-shared-library-as-erlang-port-driver
From the documentation erl_dll,
erl_dll:load_driver
is to load a linked in driver. Linked driver's are libraries built with a specific set of interfaces...which I guess the shared library would not have implemented.
One option is to create a NIF's using the shared library and call the NIF's from erlang. The NIF's just need to wrap the functions you would like to use from the shared library
👍 1
m
mind sharing how you’re setting up / loading the library?
ah, let’s avoid the cross post and continue here 👉 https://pact-foundation.slack.com/archives/C02BXLDJ7JR/p1683440950514139
👍 1