Skip to content

Instantly share code, notes, and snippets.

@bedefaced
Last active September 8, 2017 21:53
Show Gist options
  • Select an option

  • Save bedefaced/3dc4e58c700dada43054f49a3053dcad to your computer and use it in GitHub Desktop.

Select an option

Save bedefaced/3dc4e58c700dada43054f49a3053dcad to your computer and use it in GitHub Desktop.

Revisions

  1. bedefaced revised this gist Sep 8, 2017. 1 changed file with 18 additions and 7 deletions.
    25 changes: 18 additions & 7 deletions linphone-minimal-from-source.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@ if [[ "$EUID" -ne 0 ]]; then
    exit 1
    fi

    set -e

    # apt-get update
    # apt-get install -y autoconf file gcc git libc-dev make pkg-config git

    @@ -18,29 +20,38 @@ cd ..
    git clone git://git.linphone.org/belle-sip.git
    cd belle-sip
    apt-get install -y libantlr3c-dev antlr3 zlib1g-dev
    sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' CMakeLists.txt
    cmake . -DENABLE_TESTS=NO
    make && make install
    cd ..

    git clone git://git.linphone.org/ortp.git
    cd ortp
    sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' src/CMakeLists.txt
    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
    sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' CMakeLists.txt
    cmake . -DENABLE_UNIT_TESTS=NO -DENABLE_DOC=NO -DENABLE_SPEEX_DSP=NO -DENABLE_FFMPEG=NO -DENABLE_V4L=NO -DENABLE_VIDEO=NO
    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
    cmake . -DENABLE_VCARD=NO -DENABLE_SQLITE_STORAGE=NO -DENABLE_TOOLS=NO -DENABLE_NLS=NO -DENABLE_ASSISTANT=NO -DENABLE_UNIT_TESTS=NO -DENABLE_GTK_UI=NO -DENABLE_DOC=NO -DENABLE_VIDEO=NO -DENABLE_TUTORIALS=NO -DENABLE_JAVADOC=NO
    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 ..
  2. bedefaced revised this gist Apr 25, 2017. No changes.
  3. bedefaced created this gist Apr 25, 2017.
    46 changes: 46 additions & 0 deletions linphone-minimal-from-source.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    #!/usr/bin/env bash

    if [[ "$EUID" -ne 0 ]]; then
    echo "Sorry, you need to run this as root"
    exit 1
    fi

    # 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
    sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' CMakeLists.txt
    cmake . -DENABLE_TESTS=NO
    make && make install
    cd ..

    git clone git://git.linphone.org/ortp.git
    cd ortp
    sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' src/CMakeLists.txt
    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
    sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' CMakeLists.txt
    cmake . -DENABLE_UNIT_TESTS=NO -DENABLE_DOC=NO -DENABLE_SPEEX_DSP=NO -DENABLE_FFMPEG=NO -DENABLE_V4L=NO -DENABLE_VIDEO=NO
    make && make install
    cd ..

    git clone git://git.linphone.org/linphone.git
    cd linphone
    apt-get install -y libxml2-dev
    cmake . -DENABLE_VCARD=NO -DENABLE_SQLITE_STORAGE=NO -DENABLE_TOOLS=NO -DENABLE_NLS=NO -DENABLE_ASSISTANT=NO -DENABLE_UNIT_TESTS=NO -DENABLE_GTK_UI=NO -DENABLE_DOC=NO -DENABLE_VIDEO=NO -DENABLE_TUTORIALS=NO -DENABLE_JAVADOC=NO
    make && make install
    cd ..