tdlight-team/tdlight-telegram-bot-api

build error

mugavri opened this issue · 9 comments

i get building error on windows 10

error message:
C:\test\tdlight-telegram-bot-api\td\td\generate\tl-parser\tl-parser.c(43,10): fatal error C1083: Cannot open include fi le: 'zlib.h': No such file or directory [C:\test\tdlight-telegram-bot-api\td\td\generate\tl-parser\contrib\vs\tl-parser .vcxproj] [C:\test\tdlight-telegram-bot-api\build\td\td\generate\build_tl_parser.vcxproj]

on run
cmake --build . --target install --config Release
command

Do this error appear also using the official telegram bot api?

Do this error appear also using the official telegram bot api?

no

seems that you need to install zlib, follow the instruction on https://tdlib.github.io/td/build.html?language=Other
from what i see you should execute the following

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg.exe install openssl:x64-windows zlib:x64-windows
cd ..

before building the bot-api

Of course I've done this before

Oh now I see that the problem is related to tl-parser. You must add the directory vcpkg/installed/x64-windows/include into the PATH environment variable before building

thanks i wiil try

@mugavri Did it work?

Is this solved?

I'm closing the issue since the build with the correct path should work, and who opened the issue isn't replying anymore