Td: Maven Release with native libraries included

Created on 11 Feb 2018  路  2Comments  路  Source: tdlib/td

For Java it would be great to have a version with prebuilt libraries for most common systems (Linux 32/64bit, Windows 64bit, Mac) which will be automatically loaded to enable easy usage and deployment for Java developers.

Most helpful comment

The difference to e.g. building it for C++ development is, that for Java there is no dependency on the compiler version etc.
For C++, one wants to build tdlib with the same compiler and same dependencies as the main application. For java, one build of tdlib runs on all systems with same ABI not depending on exact JVM version etc.

So there can be one build that runs on all Windows with 32bit support and one for Linux AMD64.

Also with some additional logic it is possible to load the right library and package all of them in one jar. The goal should be to have a single jar file that "just works" on most systems.

All 2 comments

The difference to e.g. building it for C++ development is, that for Java there is no dependency on the compiler version etc.
For C++, one wants to build tdlib with the same compiler and same dependencies as the main application. For java, one build of tdlib runs on all systems with same ABI not depending on exact JVM version etc.

So there can be one build that runs on all Windows with 32bit support and one for Linux AMD64.

Also with some additional logic it is possible to load the right library and package all of them in one jar. The goal should be to have a single jar file that "just works" on most systems.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IRGC picture IRGC  路  4Comments

FJarvan picture FJarvan  路  3Comments

liaoyu1992 picture liaoyu1992  路  4Comments

hameda169 picture hameda169  路  3Comments

L11R picture L11R  路  4Comments