tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

The compiled static library file does not work properly #2946

Closed yg66 closed 1 week ago

yg66 commented 4 months ago

Hello, brethren! I have a question to consult you, I want to use docker to compile tdlib locally to build a base image, I am not sure whether it is an environment or a dependency version problem, the compiled static library can never be used in other images, I have tried to use buildpack-deps:bullseye-scm, alpine:3.15, ubuntu:18.04 base image to compile, the compiled code is the latest code of the main branch, I also tried the code submitted by v1.8.31, the compilation can be successful, but the compiled static library file cannot be correctly referenced, I would like to consult you locally in the development or compilation of which tools or dependencies are used, what is the version? Note: Before compilation, the tools required by tdlib in ReadME have been installed, and the versions meet the requirements

levlam commented 4 months ago

Binaries aren't portable between different OS versions. You may encounter a lot of issues, trying to use a binary, including static library, on a different OS.

yg66 commented 4 months ago

The environment is consistent, and the operating system and version used to compile tdlib are consistent with the operating system and version used by the application that rebuilds the static library file compiled by tdlib, because they all use the same docker base image

levlam commented 4 months ago

Then, what exactly doesn't work for you?