I have problems with compiling lib for java. Can anyone share prebuild lib for win/linux?
Thanks!
What a problem do you have when following instructions from example/java/README.md?
...
-- 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
Thanks I will try.
It should be much easier if there were prebuild binaries :)
@nikolakurtic Hi! Try to find binaries in our group:: https://t.me/joinchat/D1EEGBBIssaSbO0l81bF8w
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 馃憤
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.
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 Have you tried https://tdlib.github.io/td/build.html?
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 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.
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
Most helpful comment
...
-- 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