telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.16k stars 5.19k forks source link

build error: no matching function for call to rtc::Thread::PostTask #24637

Closed milahu closed 2 years ago

milahu commented 2 years ago

Steps to reproduce

build tdesktop 3.7.6 (45caa25e5518c8b0bece8cdfc9be22aed17858d3) with qt 6.3.1 in nixpkgs

nixpkgs branch: https://github.com/milahu/nixpkgs/tree/qt6-631 tdesktop: pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix

Expected behaviour

build

Actual behaviour

/build/source/Telegram/ThirdParty/tgcalls/tgcalls/ThreadLocalObject.h:22:34: error: no matching function for call to 'rtc::Thread::PostTask(tgcalls::ThreadLocalObject<tgcalls::Manager>::ThreadLocalObject<tgcalls::InstanceImpl::InstanceImpl(tgcalls::Descriptor&&)::<lambda()> >(rtc::Thread*, tgcalls::InstanceImpl::InstanceImpl(tgcalls::Descriptor&&)::<lambda()>&&)::<lambda()>)'
   22 |                 _thread->PostTask([valueHolder = _valueHolder.get(), generator = std::forward<Generator>(generator)]() mutable {
      |                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   23 |                         valueHolder->_value.reset(generator());
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   24 |                 });
      |                 ~~                

Operating system

linux

Version of Telegram Desktop

3.7.6

Installation source

Other (unofficial) source

Logs

tdesktop-45caa25e5518c8b0bece8cdfc9be22aed17858d3-qt631-error.log.gz

ilya-fedin commented 2 years ago

Apparently you have wrong tg_owt version

milahu commented 2 years ago

yes! thanks : )

milahu commented 2 years ago

does it make sense to add tg_owt as a git submodule to tdesktop?

ilya-fedin commented 2 years ago

This won't happen, sorry :(