tdlib / td

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

'td/telegram/td_json_client.h' file not found #276

Closed takasurazeem closed 6 years ago

takasurazeem commented 6 years ago

Hi, I have followed all the instructions in the swift example readme file and have built the tdlib as well but I get this error when I try to build the Xcode project.

levlam commented 6 years ago

Have you run

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../example/swift/td ..
cmake --build . --target install

? After that there a folder example/swift/td should be created, containing all needed files.

pytimer commented 6 years ago

I have this problem, on my OSX, this is cause by cmake -DCMAKE_BUILD_TYPE=Release .. error, you can check your log.

I cmake follow installing-dependencies on macOS, this problem solved.

levlam commented 6 years ago

@takasurazeem I hope that your issue was resolved. Please reopen the issue and provide additional details if it isn't a case.