A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nativelibs4java/nativelibs4java/issues/424 below:

Cannot embed linux libraries ending with .so.1.0.0 · Issue #424 · nativelibs4java/nativelibs4java · GitHub

It seems you cannot embed libraries which have a name containing .so.1.0.0

For example I have a transitive dependency on libcrypto.so.1.0.0, which I cannot embed for now.

Platform.getEmbeddedLibraryResource() assumes all libraries end with ".so"

 if (path != null) {
        ret.add(path + "lib" + name + ".so");
        ret.add(path + name + ".so");
 }

An untested suggestion is:

 if (path != null) {
   if(name.contains(".so.")) {
       ret.add(path + name);
   } else {
        ret.add(path + "lib" + name + ".so");
        ret.add(path + name + ".so");
   }
 }

I'll see if there are more bits which need fixing than this for a library name like "libcrypto.so.1.0.0"


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4