Build RetroShare v0.6.x (preAlpha) on Debian Wheezy




Install package requirements for Wheezy

First we need to install missing dependencies with apt-get. We can find build instructions and requirements in the README of the project. The packages and this instructions should also fit for Ubuntu.

apt-get update 
apt-get install libglib2.0-dev libupnp-dev qt4-dev-tools \
      libqt4-dev libssl-dev libxss-dev libgnome-keyring-dev libbz2-dev \
      libqt4-opengl-dev libqtmultimediakit1 qtmobility-dev \
      libspeex-dev libspeexdsp-dev libxslt1-dev libprotobuf-dev \
      protobuf-compiler cmake libcurl4-openssl-dev

Additionally we need some more basic packages from Debian. In most cases they are already installed. If not we need to add them

apt-get install subversion git make build-essential unzip screen

For the package libsqlcipher-dev we need to add the backports repository for Wheezy. There is no package libsqlcipher-dev available for Debian 6 Squeeze. If you still use Debian Squeeze, c’mon and update your system. If you are running Debian 8 Jessie, libsqlcipher-dev is already in the normal repositorys.

Edit /etc/apt/sources.list as described in official instructions from Debian.

root@kopimi:~# vi /etc/apt/sources.list

And add the line:

deb wheezy-backports main

and now we can install libsqlcipher-dev

root@kopimi:~# apt-get update
root@kopimi:~# apt-cache search libsqlcipher-dev
libsqlcipher-dev - SQLCipher development files
root@kopimi:~# apt-get install libsqlcipher-dev

done 😀


Download and Build libssh

Do not do this with root. We need to build libssh for retroshare-nogui.

user@kopimi:/home/user$ mkdir workbench
user@kopimi:/home/user$ cd workbench
user@kopimi:/home/user/workbench$ mkdir lib
user@kopimi:/home/user/workbench$ cd lib 
user@kopimi:/home/user/workbench/lib$ wget
user@kopimi:/home/user/workbench/lib$ tar -xzf libssh-0.6.4.tar.gz 
user@kopimi:/home/user/workbench/lib$ cd libssh-libssh-0.6.4/build/
user@kopimi:/home/user/workbench/lib/libssh-libssh-0.6.4/build$ cmake -DWITH_STATIC_LIB=ON -DWITH_GSSAPI=OFF ..
user@kopimi:/home/user/workbench/lib/libssh-libssh-0.6.4/build$ make

Download and Build RetroShare

Checkout Trunk from the Subversion Code Repository.

user@kopimi:/home/user/workbench$ svn co svn:// retroshare
user@kopimi:/home/user/workbench$ cd retroshare
user@kopimi:/home/user/workbench/retroshare$ qmake CONFIG=release && make clean && make -j 2

“make -j 2” tells make to use two threads – if you have more/less CPU cores/threads feel free to change the value


RetroShare Gui and NoGui are now available as binary’s. Small compile errors are maybe possible for the plugins. Ignore them for now.

user@kopimi:/home/user/workbench/retroshare/retroshare-gui/src$ ls RetroShare 
user@kopimi:/home/user/workbench/retroshare/retroshare-nogui/src$ ls retroshare-nogui

For easier handling i created symbolic links on the binary’s in my user directory

user@kopimi:/home/user$ ln -s /home/kopimi/workbench/retroshare/retroshare-gui/src/RetroShare RetroShare
user@kopimi:/home/user$ ln -s /home/kopimi/workbench/retroshare/retroshare-nogui/src/retroshare-nogui retroshare-nogui



Comments are closed.