You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I loaded the pre-compiled libmylib.so including the libc++_shared.so in flutter android.
Inside the main.cpp
I have a variable defined like the following.
pthread_mutex_t stratum_work_lock;
I created the ffi for main only. int main(int argc, char *argv[])
When running the .so file, I got this error dlopen failed: cannot locate symbol "stratum_sock_lock"
I wonder what's causing the error or if I'm missing something.
I only need to exposed the main method as it's all I need to call.
Any pointers would be appreciated.
The text was updated successfully, but these errors were encountered:
pangz-lab
changed the title
[ffi] pthread_mutex_t vairable defined in main causing dlopen failed: cannot locate symbol error
[ffi] pthread_mutex_t variable defined in main causing dlopen failed: cannot locate symbol error
Apr 4, 2024
Thank you for the response. The variable is declared and defined.
The binary was working as expected using the Process library but the equivalent .so file is not. At first the DynamicLibrary complained that the libc++_shared.so cannot be found. Then I added the one from Android NDK, after running again, this is the error I got.
I loaded the pre-compiled libmylib.so including the libc++_shared.so in flutter android.
Inside the main.cpp
I have a variable defined like the following.
pthread_mutex_t stratum_work_lock;
I created the ffi for main only.
int main(int argc, char *argv[])
When running the .so file, I got this error
dlopen failed: cannot locate symbol "stratum_sock_lock"
I wonder what's causing the error or if I'm missing something.
I only need to exposed the main method as it's all I need to call.
Any pointers would be appreciated.
The text was updated successfully, but these errors were encountered: