grishka / libtgvoip

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

Building under Linux from CLI development tools #43

Closed kvishnivetsky closed 6 years ago

kvishnivetsky commented 6 years ago

Hi! Is it possible to build this library from a CLI Make/CMake under Linux? I did not find any Makefile in project root.

Infactum commented 6 years ago

See GYP file for build details. I think there is no seperate makefile cause library is a bit useless by itself, when not beeing a part of bigger project.

grishka commented 6 years ago

I do have plans to write a proper makefile for it sometime in the future.

grishka commented 6 years ago

@Infactum it turns out the Linux community doesn't think so since it is now available in many different package repos and it apparently builds as a shared library. I have no idea how would one use it without a Telegram client though.

kvishnivetsky commented 6 years ago

And it will be very well if there will be several separate componnents:

  1. p2p protocol
  2. Codec
  3. Integral MediaTerminal, which includes item 1,2 and Sound Devices interraction. I think, this will be an optional dev project structure.
grishka commented 6 years ago

Well for the codec I'd just say that it depends on libopus and that's it. That's already the way the package managers handle it. Maybe I'll also add audio I/O using a local socket for some advanced, bot-like usage, enabled through a define.

danog commented 6 years ago

That's what my wrapper can do using simple single FIFOs to write audio frames: https://github.com/danog/php-libtgvoip I could help adapting my code to include a simple CLI API, but you can also use the PHP API it already provides.

berkus commented 6 years ago

Automake, srsly, which year is this?