diff --git a/README.md b/README.md index 657017c..fd9f4e9 100644 --- a/README.md +++ b/README.md @@ -86,11 +86,11 @@ If you are using Maven, edit your `pom.xml` file as below: - + it.tdlight tdlight-natives - linux_amd64_ssl1 + linux_amd64_gcc_ssl1 @@ -124,8 +124,8 @@ dependencies { // do not specify the versions on the dependencies below! implementation group: 'it.tdlight', name: 'tdlight-java' // Java 8 is supported if you use the following dependency classifier: `jdk8` - implementation group: 'it.tdlight', name: 'tdlight-natives', classifier: 'linux_amd64_ssl1' - // Include other native classifiers, for example linux_amd64_ssl3, macos_amd64, ... --> + implementation group: 'it.tdlight', name: 'tdlight-natives', classifier: 'linux_amd64_gcc_ssl1' + // Include other native classifiers, for example linux_amd64_ssl1, linux_amd64_ssl3, macos_amd64, ... --> } ``` @@ -138,6 +138,8 @@ To use TDLight Java you need to include the native libraries, by specifying one - `linux_amd64_ssl1` - `linux_amd64_ssl3` +- `linux_amd64_gcc_ssl1` +- `linux_amd64_gcc_ssl3` - `linux_arm64_ssl1` - `linux_arm64_ssl3` - `linux_ppc64le_ssl3` diff --git a/bom/pom.xml b/bom/pom.xml index 49cd70d..934bbbf 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -8,8 +8,8 @@ TDLight Java BOM 3.0.0.0-SNAPSHOT - 4.0.427 - 4.0.397 + 4.0.436 + 4.0.406 1.8 1.8 @@ -90,6 +90,18 @@ ${tdlight.natives.version} linux_amd64_ssl3 + + it.tdlight + tdlight-natives + ${tdlight.natives.version} + linux_amd64_gcc_ssl1 + + + it.tdlight + tdlight-natives + ${tdlight.natives.version} + linux_amd64_gcc_ssl3 + it.tdlight tdlight-natives diff --git a/example/pom.xml b/example/pom.xml index d580cf0..2aeafb2 100644 --- a/example/pom.xml +++ b/example/pom.xml @@ -46,7 +46,21 @@ tdlight-natives linux_amd64_ssl1 - diff --git a/tdlight-java/src/main/java/it/tdlight/util/Native.java b/tdlight-java/src/main/java/it/tdlight/util/Native.java index 54e9f41..9c6e7a3 100644 --- a/tdlight-java/src/main/java/it/tdlight/util/Native.java +++ b/tdlight-java/src/main/java/it/tdlight/util/Native.java @@ -58,8 +58,12 @@ public final class Native { NativeLibraryLoader.load(staticLibName, cl); logger.debug("Failed to load {}", String.join(", ", sharedLibNames), e1); } catch (UnsatisfiedLinkError e2) { - e1.addSuppressed(e2); - throw new UnsupportedNativeLibraryException(e1); + if (e2.getMessage().contains("libc++.so.1: cannot open shared")) { + throw new UnsupportedNativeLibraryException("Install \"libc++\" to use TDLight Java!"); + } else { + e1.addSuppressed(e2); + throw new UnsupportedNativeLibraryException(e1); + } } } }