How to install Twinkle version 1.9 on Trisquel 7

First, install new version of GCC and Twinkle's dependencies (the last commands makes GCC point to version 4.9):
$ sudo aptitude install libcommoncpp2-dev libucommon-dev libccrtp-dev libqt4-dev libzrtpcpp-dev libspeex-dev libspeexdsp-dev cmake libxml2-dev libmagic-dev libsndfile1-dev libreadline-dev bison flex libasound2-dev build-essential
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo aptitude update
$ sudo aptitude install gcc-4.9 g++-4.9
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9

Then, download and extract Twinkle:
$ wget https://github.com/LubosD/twinkle/archive/v1.9.0.tar.gz
$ tar xvf v1.9.0.tar.gz

Now compile Twinkle (I couldn't compile it with Diamondcard support or with Qt 5 so I used Qt 4 instead and disabled Diamondcard support - Diamondcard account can of course still be used - you just need to add it as a regular account. iLBC and G.729 codecs do not appear in Trisquel's repositories so I preferred to compile without them)
$ cd twinkle-1.9.0
$ mkdir build && cd build
$ cmake .. -DWITH_ALSA=On -DWITH_SPEEX=On -DWITH_ILBC=Off -DWITH_ZRTP=On -DWITH_G729=Off -DWITH_DIAMONDCARD=Off -DWITH_QT4=On
$ make
$ sudo make install

Revisions

02/28/2016 - 12:18
aloniv