ForNeVeR / tdlib.native

Prebuilt binaries of TDLib distributed as a NuGet package.
Boost Software License 1.0
103 stars 24 forks source link

Error when creating a client, when moving from net 7.0 to net 8.0, on docker #95

Closed VadimAND closed 4 months ago

VadimAND commented 4 months ago

There was a problem when changing the version from .NET 7 to .NET 8

The error only appears when using Docker. The build file remains the same.

The error appears when creating a client: _client = new TdClient(); image

Package versions TDLib (1.8.21) TDLib.Api (1.8.21) tdlib.native(1.8.21)

libraries in the runtimes/linux-x64/native folder: libtdactor.a libtdapi.a libtdclient.a libtdcore.a libtddb.a libtdjson.so libtdjson.so.1.8.21 libtdjson_private.a libtdjson_static.a libtdnet.a libtdsqlite.a libtdutils.a 7.0 image 8.0 image

The error itself: Unable to load shared library 'tdjson' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /app/bin/Debug/net8.0/runtimes/linux-x64/native/tdjson.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.4/tdjson.so: cannot open shared object file: No such file or directory /app/bin/Debug/net8.0/tdjson.so: cannot open shared object file: No such file or directory libssl.so.1.1: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.4/libtdjson.so: cannot open shared object file: No such file or directory /app/bin/Debug/net8.0/libtdjson.so: cannot open shared object file: No such file or directory /app/bin/Debug/net8.0/runtimes/linux-x64/native/tdjson: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.4/tdjson: cannot open shared object file: No such file or directory /app/bin/Debug/net8.0/tdjson: cannot open shared object file: No such file or directory /app/bin/Debug/net8.0/runtimes/linux-x64/native/libtdjson: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.4/libtdjson: cannot open shared object file: No such file or directory /app/bin/Debug/net8.0/libtdjson: cannot open shared object file: No such file or directory

ForNeVeR commented 4 months ago

libssl.so.1.1: cannot open shared object file: No such file or directory

Do you have libssl.so.1.1 on that computer?

sanderwollaert commented 4 months ago

I have the same issue.

As a temporary fix, I made a fork of the code. Changed the build agents to ubuntu-22.04 and referenced the output files directly. https://github.com/sanderwollaert/tdlib.native/actions/runs/8875002559/artifacts/1455906780

image

I now have a working .net 8 application hosted on a linux azure app service.

Hoping for an official release

ForNeVeR commented 4 months ago

No answer in 2 weeks ⇒ closed.

Maybe this is a duplicate of #66.