native-lib-loader icon indicating copy to clipboard operation
native-lib-loader copied to clipboard

Extract all native dependencies together with target library

Open pkozelka opened this issue 1 year ago • 1 comments

I am trying to work with a native library which depends on another (native) library. But only the "toplevel" library gets extracted, and therefore the whole load fails.

Is there a way to resolve this native dependency problem?

If not, I suggest one of the following approaches:

  1. extract all the files (for given platform) when any of them is requested
  2. use a dependency mapping (perhaps somewhere in META-INF) to extract the required minimum of libraries to load

Any comments? I am going to implement any of these approaches, please LMK if there is any existing solution to this problem.

pkozelka avatar Sep 19 '22 15:09 pkozelka