td icon indicating copy to clipboard operation
td copied to clipboard

Prebuild lib?

Open nikolakurtic opened this issue 8 years ago • 14 comments

I have problems with compiling lib for java. Can anyone share prebuild lib for win/linux? Thanks!

nikolakurtic avatar Feb 25 '18 22:02 nikolakurtic

https://github.com/tdlib/td/issues/98

for fast build

isopen avatar Feb 26 '18 00:02 isopen

What a problem do you have when following instructions from example/java/README.md?

levlam avatar Feb 26 '18 07:02 levlam

... -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) CMake Warning at CMakeLists.txt:206 (message): Not found OpenSSL: skip TDLib, tdactor, tdnet, tddb

-- Configuring done -- Generating done -- Build files have been written to: D:/Downloads/tdlib/td-master/jnibuild

but nothing get's written to jnibuild

nikolakurtic avatar Feb 26 '18 10:02 nikolakurtic

should help

isopen avatar Feb 26 '18 10:02 isopen

Thanks I will try. It should be much easier if there were prebuild binaries :)

nikolakurtic avatar Feb 26 '18 10:02 nikolakurtic

Prebuilt https://t.me/joinchat/D1EEGBBIssaSbO0l81bF8w

PeyTy avatar Mar 07 '18 17:03 PeyTy

@nikolakurtic Hi! Try to find binaries in our group:: https://t.me/joinchat/D1EEGBBIssaSbO0l81bF8w

OleksiyMoroz avatar Mar 08 '18 12:03 OleksiyMoroz

The chat link above seems to have expired -- is there any way I could join this group? I've been trying to use VM's to build, but keep running into (out of) memory issues. Any pre-built binaries would be appreciated 👍

cmckn avatar May 08 '18 21:05 cmckn

Please consider again providing prebuild libs. Building this lib is easy, but people use all kinds of sources just to avoid compiling. This is security critical.

x2bool avatar May 17 '18 17:05 x2bool

Building this lib is easy

No it's not. What I meant supposed to do with OpenSSL absence anyway? The "should help" medium link gone and now got to go through this cmake trickery somehow. @levlam can u plz provide some instructions on how to build for humble windows 10 users?

im-infamou5 avatar Jul 28 '19 12:07 im-infamou5

@im-infamou5 Have you tried https://tdlib.github.io/td/build.html?

levlam avatar Jul 28 '19 13:07 levlam

The whole point was to make it to work in clion "as is". I'd almost managed to get it to work my way (except some zlib linkage problems), however the given tutorial lead to this on my box:

cmake : Get-Command : The term 'cmake' is not recognized as the name of a cmdlet, function, script file, or operable program.
line:1 token:1
+ cmake
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (cmake:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

At the line cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake ..

im-infamou5 avatar Jul 28 '19 14:07 im-infamou5

@im-infamou5 There is no installed CMake, or the path to it is not in your PATH environment variable, or you didn't restarted console application after the PATH environment varible was changed.

levlam avatar Jul 28 '19 14:07 levlam

I fix it because I was following the instructions wrong, specific here:

cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake ..

As the way it is show in the browser it looks like it's two separate commands:

  1. cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -
  2. DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake ..

or others could argue it's :

  1. cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib - DCMAKE_TOOLCHAIN...the rest (notice the space between "-" and "DCMAKE_TOOLCHAIN"

but it turns out all that line it's the same line NOT SEPARATE so

IT'S NOT "- DCMAKE_TOOLCHAIN" but "-DCMAKE_TOOLCHAIN" without the space between "-" and "DCMAKE_TOOLCHAIN" the reason it shows in that way it's because the word it's too long, so the browser breaks it to a new line.

If you do it like this "- DCMAKE_TOOLCHAIN" it will shows the OpenSSL error

johnbalvin avatar Aug 06 '19 16:08 johnbalvin