Closed osp54 closed 1 year ago
Thanks for reporting! No, I don't think loading external native libraries is supported now (although implementing it should be quite straightforward).
On Linux (or POSIX systems), JVM loads external libraries with dlopen
without the RTLD_GLOBAL
flag, causing the undefined symbol
error. To fix this, we will need to load the library with that flag at some point, which might require tweaking the jnigen library (the library we use for multi-platform JNI) a bit. (See https://stackoverflow.com/a/54698767/17780636 .) I will try to implement it if I find the time.
Thanks for reporting! No, I don't think loading external native libraries is supported now (although implementing it should be quite straightforward).
On Linux (or POSIX systems), JVM loads external libraries with
dlopen
without theRTLD_GLOBAL
flag, causing theundefined symbol
error. To fix this, we will need to load the library with that flag at some point, which might require tweaking the jnigen library (the library we use for multi-platform JNI) a bit. (See https://stackoverflow.com/a/54698767/17780636 .) I will try to implement it if I find the time.
No time at all? :(
Thanks you
When I try to load this code:
It gives an error:
But when I run it in a normal lua interpreter, it's fine:
Additional information: Dist: luajit Luajava version: v3.4.0