Last active
September 8, 2017 21:53
-
-
Save bedefaced/3dc4e58c700dada43054f49a3053dcad to your computer and use it in GitHub Desktop.
Minimal Linphone (https://www.linphone.org/technical-corner/linphone/overview) build from sources (https://github.com/BelledonneCommunications) on Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ "$EUID" -ne 0 ]]; then | |
echo "Sorry, you need to run this as root" | |
exit 1 | |
fi | |
set -e | |
# apt-get update | |
# apt-get install -y autoconf file gcc git libc-dev make pkg-config git | |
git clone git://git.linphone.org/bctoolbox.git | |
cd bctoolbox | |
apt-get install -y cmake libmbedtls-dev | |
cmake . -DENABLE_POLARSSL=NO -DENABLE_MBEDTLS=YES -DENABLE_TESTS=NO -DENABLE_TESTS_COMPONENT=NO | |
make && make install | |
cd .. | |
git clone git://git.linphone.org/belle-sip.git | |
cd belle-sip | |
apt-get install -y libantlr3c-dev antlr3 zlib1g-dev | |
cmake . -DENABLE_TESTS=NO | |
make && make install | |
cd .. | |
git clone git://git.linphone.org/ortp.git | |
cd ortp | |
cmake . -DENABLE_TESTS=NO -DENABLE_DOC=NO | |
make && make install | |
cd .. | |
git clone git://git.linphone.org/mediastreamer2.git | |
cd mediastreamer2 | |
apt-get install -y libasound2-dev libpulse-dev libsrtp0-dev libspeexdsp-dev libavdevice-dev libspeex-dev | |
cmake . -DENABLE_UNIT_TESTS=NO -DENABLE_DOC=NO -DENABLE_V4L=NO -DENABLE_VIDEO=NO -DENABLE_SRTP=YES -DENABLE_PULSEAUDIO=YES -DENABLE_ALSA=YES -DENABLE_SPEEX_DSP=YES -DENABLE_SPEEX_CODEC=YES | |
make && make install | |
cd .. | |
git clone git://git.linphone.org/belr.git | |
cd belr | |
cmake . | |
make && make install | |
cd .. | |
git clone git://git.linphone.org/bzrtp.git | |
cd bzrtp | |
cmake . -DENABLE_TESTS=NO | |
make && make install | |
cd .. | |
git clone git://git.linphone.org/linphone.git | |
cd linphone | |
apt-get install -y libxml2-dev libsqlite3-dev | |
cmake . -DENABLE_VCARD=NO -DENABLE_TOOLS=NO -DENABLE_ASSISTANT=NO -DENABLE_UNIT_TESTS=NO -DENABLE_GTK_UI=NO -DENABLE_DOC=NO -DENABLE_VIDEO=NO -DENABLE_TUTORIALS=NO -DENABLE_JAVADOC=NO -DENABLE_CSHARP_WRAPPER=NO -DENABLE_CXX_WRAPPER=NO -DENABLE_SQLITE_STORAGE=YES | |
make && make install | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment