Installing Xten X-Lite VOIP softphone in 64bit Arch Linux
Counterpath X-Lite is free SIP based softphone that is pretty popular. The X-Lite is a stripped down version of the premium SIP solutions offered by the same company. X-Lite is available for GNU/Linux as well but only as a 32bit binary. Recently one of our customers walked in with X-Lite software and a 64bit Arch Linux installation requesting us to set up the 32bit X-Lite soft phone on the 64bit machine. The following steps describe how we did it on Arch Linux. It should work fine on any other 64bit GNU/Linux distributions with minor variations.
First download X-Lite
cd
wget http://counterpath.s3.amazonaws.com/downloads/X-Lite_Install.tar.gz
tar -xvzf X-Lite_Install.tar.gz
The binary is provided in the archive and you could run the binary rightaway if you had the necessary 32 bit libraries in your system. You could do this in two ways - a) Install 32 bit libraries into your 64 bit system and set library paths for the executable or b) Set up a chrooted environment with the 32 bit libraries.
We chose the former and set the phone up. But for that we had to install the following libraries
yaourt -S lib32-libglade
yaourt -S lib32-libstdc++5
yaourt -S lib32-libxdamage
yaourt -S lib32-qt
yaourt -S lib32-gtk2
The 32 bit libraries were installed to the /opt/lib32 folder and this had to be passed as environment variables for the executable. The following was created as a script for that the environment settings were passed correctly to the executable.
#!/bin/bash
GTK_PATH=/opt/lib32/usr/lib/gtk-2.0/ \
GCONV_PATH=/opt/lib32/usr/lib/gconv \
LD_LIBRARY_PATH="/opt/lib32/usr/lib/:/opt/lib32/lib/:$LD_LIBRARY_PATH" \
GDK_PIXBUF_MODULE_FILE="/opt/lib32/config/gdk/gdk-pixbuf.loaders" \
QTDIR=/opt/lib32/usr/lib/qt linux32 home/user/xten-lite/xtensoftphone
That did the trick and the 32 bit application ran perfectly fine on the 64bit box.