Code Monkey home page Code Monkey logo

tdlib-build's Introduction

tdlib-build

使用Github Actions编译TDLib库. 支持Java/C#及使用TDLib库json接口的全部开发语言, 当前仅支持windows及linux系统下的TDLib库编译.

Release说明

release中只提供Windows和linux系统下的TDLib库, 其中

  1. 带有java的表示该压缩包是提供给使用jni调用TDLib库的Java开发者使用的
  2. 带有csharp的是提供给使用C++/CLI调用TDLib库(windows下开发,不含uwp)的开发者使用的
  3. 带有through-json-interface的是提供给使用json接口调用TDLib库的开发者使用的

只有Java和C#是需要下载上面符合1,2说明的库, 其他语言根据系统直接下载带有through-json-interface的库即可. .net core开发者请使用带有through-json-interface的库

常见问题

Ubuntu下运行tdlib java示例程序如果报java.lang.UnsatisfiedLinkError: /home/**/tdlib/bin/libtdjni.so: libc++.so.1: cannot open shared object file: No such file or directory 请先安装libc++-dev

sudo apt-get install libc++-dev

出现如下错误请检查你使用的TdApi.java是不是和下载的release中org目录下的TdApi.java一致. 请在更新依赖库时尽量使用release包中的TdApi.java

java.lang.UnsatisfiedLinkError: org.drinkless.tdlib.Client.nativeClientExecute(Lorg/drinkless/tdlib/TdApi$Function;)Lorg/drinkless/tdlib/TdApi$Object;
   at org.drinkless.tdlib.Client.nativeClientExecute(Native Method)
   at org.drinkless.tdlib.Client.execute(Client.java:84)

参考资料

https://github.com/tdlib/td

https://tdlib.github.io/td/build.html

https://www.arloor.com/posts/tdlib-java-telegram-client/

workflows目前是手动触发启动的,如果你用的时候发现release不是最新的请提issues给我

tdlib-build's People

Contributors

xkaers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tdlib-build's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.