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

Build failed #2926

Closed Dmi3yLitvinov closed 4 months ago

Dmi3yLitvinov commented 4 months ago

I am trying to build the TDLib library on Ubuntu 24.

The error occurs when I execute the following command sequence:

...
php SplitSource.php
cd build
cmake --build . --target install
...

This is the error log printed in the console:

[ 51%] Building CXX object CMakeFiles/tdcore.dir/td/telegram/MessagesManager22.cpp.o
/home/ubuntu/td/td/telegram/MessagesManager22.cpp:332:69: error: member access into incomplete type 'td::InlineQueriesManager'
  332 |   const InlineMessageContent *content = td_->inline_queries_manager_->get_inline_message_content(query_id, result_id);
      |                                                                     ^
/home/ubuntu/td/td/telegram/Td.h:72:7: note: forward declaration of 'td::InlineQueriesManager'
   72 | class InlineQueriesManager;
      |       ^
/home/ubuntu/td/td/telegram/MessagesManager22.cpp:360:54: error: member access into incomplete type 'td::InlineQueriesManager'
  360 |     m->via_bot_user_id = td_->inline_queries_manager_->get_inline_bot_user_id(query_id);
      |                                                      ^
/home/ubuntu/td/td/telegram/Td.h:72:7: note: forward declaration of 'td::InlineQueriesManager'
   72 | class InlineQueriesManager;
      |       ^
2 errors generated.
gmake[2]: *** [CMakeFiles/tdcore.dir/build.make:2554: CMakeFiles/tdcore.dir/td/telegram/MessagesManager22.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:501: CMakeFiles/tdcore.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Could you help me deal with this problem?

levlam commented 4 months ago

Thank you. Fixed in master.