Building libtgvoip

Requirements

  • Debian-based distributions

    $ apt install make autoconf automake gcc g++ openssl libssl-dev libopus0 libopus-dev
    
  • Archlinux-based distributions

    $ pacman -S make autoconf automake gcc openssl opus
    
  • macOS

    $ brew install make autoconf automake gcc g++ openssl opus
    

Build and install

$ cd /tmp
$ git clone https://github.com/grishka/libtgvoip/
$ cd libtgvoip
$ git checkout b6ac2911  # confirmed to work with this version, others would require testing

$ export CFLAGS="-O3"
$ export CXXFLAGS="-O3"
$ autoreconf --force --install
$ ./configure --enable-audio-callback --enable-static=no
$ make  # add "-jN" flag for multithreaded build, N=(cpu core count + 1) is recommended
$ make install