tdlib / td

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

error: use `emcmake` rather then `emconfigure` for cmake projects #955

Closed gasabr closed 4 years ago

gasabr commented 4 years ago

I'm trying to patch tdlib with proxies doing this.

I've compiled tdlib itself, but encountered a problem while building tdweb: installed emsdk 1.39.10 from source files following instruction on the official site, built openssl using ./build-openssl.sh just fine. But the ./build-tdlib.sh produces error from issue title. Log of the installation can be found here build-tdlib.log

Folder containing emconfig and emcmake is in $PATH and both commands are available from the shell I'm running ./build-tdlib.sh in.

I've looked at #18, but it does not look like the same problem.

levlam commented 4 years ago

Build with Emscripten breaks every few patch Emscripten versions, so we don't recommend to use the latest Emscripten compiler and SDK anymore. You can use emsdk 1.39.5, which is known to work, as documented in https://github.com/tdlib/td/blob/master/example/web/README.md#building-tdweb-npm-package.

Build instuctions and build scripts will be updated to support the latest emsdk version before the next stable release.

gasabr commented 4 years ago

Oh, thank you! I thought that minor release won't break the build. Will try 1.39.5 and report back

gasabr commented 4 years ago

1.39.5 has worked just fine, thank you!

isopen commented 4 years ago

@levlam https://github.com/tdlib/td/pull/1092/files#diff-99e17a2c3b9d8e59751cf14205ea9cce