grishka / libtgvoip

VoIP library for Telegram clients
The Unlicense
387 stars 156 forks source link

video/VideoPacketSender.cpp is not compiled in, causing linking problems #96

Open zevlg opened 4 years ago

zevlg commented 4 years ago

I'm having problems linking against libtgvoip:

/usr/local/lib/libtgvoip.so: undefined reference to `tgvoip::video::VideoPacketSender::SetSource(tgvoip::video::VideoSource*)'
/usr/local/lib/libtgvoip.so: undefined reference to `tgvoip::video::VideoPacketSender::VideoPacketSender(tgvoip::VoIPController*, tgvoip::video::VideoSource*, std::shared_ptr<tgvoip::VoIPController::Stream>)'
/usr/local/lib/libtgvoip.so: undefined reference to `tgvoip::video::ParityFEC::Decode(std::vector<tgvoip::Buffer, std::allocator<tgvoip::Buffer> >&, tgvoip::Buffer&)'
collect2: error: ld returned 1 exit status

If I add video/VideoPacketSender.cpp to SRC list in Makefile.am, then everything is ok

Thanks

zevlg commented 4 years ago

Ah, my bad, still having this linking problem. What am I doing wrong?

zevlg commented 4 years ago

Adding video/VideoFEC.cpp as well in the SRC solves the problem!