Skip to content

Compiling

Kinshuk Bairagi edited this page May 4, 2022 · 5 revisions

Building on Ubuntu

  1. Install the dependent packages
sudo apt-get update
sudo apt-get install -y build-essential cmake libcurl4-openssl-dev pkg-config libboost1.71-all-dev libasound-dev

PS: This list has been created based on Ubuntu 20.04 LTS, In case any of any other OS, please refer to your distribution to find the corresponding package names.

  1. Clone Project
git clone --recurse-submodules https://github.com/voiceip/tinyphone.git
cd tinyphone
  1. Compile Libraries
pushd lib/cryptopp/
make
sudo make install
popd

pushd lib/pjproject
cat >./pjlib/include/pj/config_site.h <<EOL
#define ENABLE_SIP_TCP 1
#define PJ_HAS_TCP 1
#define PJMEDIA_AUDIO_DEV_HAS_WASAPI 0
#define PJMEDIA_AUDIO_DEV_HAS_WMME 0
EOL
cat ./pjlib/include/pj/config_site.h
./configure
make realclean
make dep
make
sudo make install
popd 
  1. Compile Tinyphone
cd tinyphone-linux
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
  1. Run tinyphone!
chmod +x ./tinyphone
./tinyphone
Clone this wiki locally