You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you had any problem in building the tdlib library it can be for one of the below reasons
wrong visual studio components were installed
you need a proxy for downloading the dependencies (especially for Iranians)
then copy the directory ( the whole tdlib directory ) into the same drive that you want to execute your app, dont need to be in the exact directory just on the same drive
The command cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake .. in build instruction should be added with -G "Visual Studio 17 2022", specifically the parameters should be queried on CMake Generator according to your version of Visual Studio.
for building and executing on windows it can be a little bit tricky, so I'll post my solution for anyone that wants to run it on windows
step 1: building the tdlib
first, install visual studio and build the binaries using this instruction
build instruction
if you had any problem in building the tdlib library it can be for one of the below reasons
then copy the directory ( the whole tdlib directory ) into the same drive that you want to execute your app, dont need to be in the exact directory just on the same drive
step 2: Installing GCC
install msys64 for MinGW and
GCC
set a new path environment to point to MinGW and its bins
note replace it with your bin folder ( default is this )
C:\msys64\mingw64\bin
step 3: set needed environment variables
set this environment variables
replace
C:\td
with your td installation paththen set td path built bins to your environment paths
again replace the path with your build directory
after that, you can execute your app and use the go-tdlib library
The text was updated successfully, but these errors were encountered: