How can a current version of Linphone be installed?

To compile from source you need to install first the following packages as dependencies (be carefull to select the whole box and paste it into terminal):

sudo apt-get install git build-essential automake autoconf libtool   \
intltool libgtk2.0-dev libspeexdsp-dev libavcodec-dev libswscale-dev \
libx11-dev libxv-dev libgl1-mesa-dev libreadline-dev libgsm1-dev     \
libtheora-dev libsqlite3-dev libupnp-dev libsrtp-dev open-vm-tools   \
open-vm-tools-dev cmak* libmbedtls-dev libmbedtls-doc libmbedtls10   \
libcunit1 libcunit1-dev libantlr3c-dev libantlr3-runtime-java antlr3 \
libortp-dev libortp9 libmediastreamer-base3 libmediastreamer-dev     \
extra-cmake-modules yasm

For Ubuntu 18.04 you need the following packages as well:

python-pystache libv4l-dev libpulse-dev libglew-dev doxygen libbsd-dev \
qt5-default qttools5-dev qttools5-dev-tools libqt5svg5-dev \
libqt5texttospeech5-dev qtdeclarative5-dev qtdeclarative5-dev-tools \
qtquickcontrols2-5-dev qml-module-qtquick-controls qml-module-qtquick-controls2 \
qml-module-qtquick-dialogs  qml-module-qtqml-models2 qml-module-qtquick-templates2 \
qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings \ 
qml-module-qt-labs-platform

Now you can compile and install by doing the following steps:

git clone https://gitlab.linphone.org/BC/public/linphone-desktop.git
cd linphone-desktop
git submodule sync && git submodule update --init --recursive
./prepare.py
make
sudo make install

Happy building. Please let me know if this worked for you on my system it builds but I don't want to install it.


As I cannot comment I'll add this as another answer:

I tried the accepted answer today (on xubuntu 16.04) and got the message

Could not find a support sound driver API 

I fixed this by installing libasound2-dev:

sudo apt-get install libasound2-dev

To get rid of some other warnings I installed some more packages:

sudo apt-get install libv4l-dev libvpx-dev libgl1-mesa-dev

Also the make target install does not seem to exist anymore.

But linphone can be run directly from the output directory

OUTPUT/desktop/bin/linphone

Hope this helps!


Worked on 16.04

Must be root

sudo su

Install flatpak (It will compile everything for you)

sudo apt install flatpak

Install Linphone using flatpak

flatpak --user install --from https://linphone.org/flatpak/linphone.flatpakref