tdlib / td

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

unable to locate tdlib after build #2650

Closed rdataforge closed 11 months ago

rdataforge commented 1 year ago

I am building tdlib into my Arch linux to be available for telega (telegram emacs implementation) but I dont know where tdlib is located and telega keeps saying there is no tdlib in /usr/lib

where is tdlib located?

levlam commented 1 year ago

Did you follow https://tdlib.github.io/td/build.html?language=Other and checked the option "Install built TDLib to /usr/local instead of placing the files to td/tdlib"? Did you install all the mentioned development dependencies "Git, g++ >= 4.9.2, make, CMake >= 3.0.2, OpenSSL-dev, zlib-dev, gperf, PHP"?

rdataforge commented 1 year ago

Yes, all dependencies are in place and followed the link to generate commands. Missed the check option referring to /usr/local, my bad. Thanks for pointing it out

GuidoBelluomo commented 1 year ago

Getting a similar issue for C# UWP, "cp build-uwp/vsix/tdlib.vsix ../../../tdlib" fails because it cannot find tdlib.vsix Looking into the td folder tdlib.vsix is literally nowhere to be found even if I wanted to fix the path myself

EDIT: Turns out I get a cmake error saying it cannot find gperf.

EDIT 2: Installed gperf on my system, now it complains that No CMAKE_CXX_COMPILER could be found:

-- Building for: Visual Studio 17 2022 CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0. -- The CXX compiler identification is unknown -- The C compiler identification is unknown CMake Error at CMakeLists.txt:9 (project): No CMAKE_CXX_COMPILER could be found.

CMake Error at CMakeLists.txt:9 (project): No CMAKE_C_COMPILER could be found.

levlam commented 1 year ago

@GuidoBelluomo Follow the build instructions at https://tdlib.github.io/td/build.html?language=C%23.

The first step is "Download and install Microsoft Visual Studio. Enable C++ and Windows 10 SDK support while installing." Hence, recheck that UWP support is enabled. Also, don't forget to "Close and re-open PowerShell if the PATH environment variable was changed."

GuidoBelluomo commented 1 year ago

@GuidoBelluomo Follow the build instructions at https://tdlib.github.io/td/build.html?language=C%23.

The first step is "Download and install Microsoft Visual Studio. Enable C++ and Windows 10 SDK support while installing." Hence, recheck that UWP support is enabled. Also, don't forget to "Close and re-open PowerShell if the PATH environment variable was changed."

I "enabled C++", in fact I enabled a whole bunch of C++ add-ons just to be safe. I also enabled UWP, thing is that it seems to compile a lot of things but still fails at some point.

levlam commented 1 year ago

How does it fail?

GuidoBelluomo commented 1 year ago

How does it fail?

Just like I showed earlier, I'll do the whole thing again on my home computer and see how that goes to also get a full log if possible

levlam commented 1 year ago

No CMAKE_CXX_COMPILER could be found.

The error means that compiler/UWP support installation isn't complete.

GuidoBelluomo commented 1 year ago

@levlam

log.txt

Are you sure that is it? It's finding the compiler three times before failing at the fourth time, whatever it is doing there.

Also, it's installed image

levlam commented 1 year ago

It fails to find UWP toolset for ARM.

dchmelik commented 3 months ago

This problem still exists; can you please add these instructions on github.com/tdlib/td to go to that HTML file?

levlam commented 3 months ago

@dchmelik What problem still exists?