Closed motogon closed 2 months ago
Looks like something related to c++20 headers, I am not sure how to fix this on Debian. Complete working set of commands for Ubuntu can be found in .github/workflows/cmake-multi-platform.yml, maybe that will help.
Switched to ubuntu - but there are new problems :(
`[ 7%] Building CXX object src/CMakeFiles/CameraAiDetector.dir/telegram_messages_sender.cpp.o
/home/dend/video2tg/CameraAiDetector/src/telegram_messages_sender.cpp: In member function ‘void telegram::MessagesSender::operator()(const telegram::messages::TextMessage&)’:
/home/dend/video2tg/CameraAiDetector/src/telegram_messages_sender.cpp:90:65: error: cannot convert ‘bool’ to ‘TgBot::LinkPreviewOptions::Ptr’ {aka ‘std::shared_ptr |
if (!bot_->getApi().sendMessage(user, message.text, false, 0, nullptr, "HTML")) | ^~~~~ |
---|---|---|
bool |
In file included from /home/dend/video2tg/CameraAiDetector/3rdparty/tgbot-cpp/include/tgbot/tgbot.h:4,
from /home/dend/video2tg/CameraAiDetector/src/telegram_messages_sender.h:5,
from /home/dend/video2tg/CameraAiDetector/src/telegram_messages_sender.cpp:1:
/home/dend/video2tg/CameraAiDetector/3rdparty/tgbot-cpp/include/tgbot/Api.h:180:54: note: initializing argument 3 of ‘TgBot::Message::Ptr TgBot::Api::sendMessage(boost::variant<long int, std::__cxx11::basic_string<char, std::char_traits |
LinkPreviewOptions::Ptr linkPreviewOptions = nullptr, | if (!bot_->getApi().sendMessage(message.recipient, translation::menu::kCaption, false, 0, startmenu, "HTML")) | ^~~~~ | |
---|---|---|---|---|
bool |
/home/dend/video2tg/CameraAiDetector/3rdparty/tgbot-cpp/include/tgbot/Api.h:180:54: note: initializing argument 3 of ‘TgBot::Message::Ptr TgBot::Api::sendMessage(boost::variant<long int, std::__cxx11::basic_string<char, std::char_traits~~~~~~^~~~~~`
Maybe you've checked out tgbot-cpp manually, not with --recurse-submodules?
I don't think so, no. only 2 actions :)
cmake . make
Update from master, I just updated the code to reflect latest tgbot-cpp changes
without error thank
/1/CameraAiDetector/src/uid_utils.h:5:10: fatal error: format: No such file or directory 5 | #include
| ^
~~~ compilation terminated. make[2]: [src/CMakeFiles/CameraAiDetector.dir/build.make:90: src/CMakeFiles/CameraAiDetector.dir/core.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:98: src/CMakeFiles/CameraAiDetector.dir/all] Error 2 make: *** [Makefile:91: all] Error 2Debian GNU/Linux 12 (bookworm) cmake version 3.25.1 c++ (GCC) 13.3.0
please advise how to solve this problem thank you