Build RetroShare 0.5.4f on Debian 7 Wheezy

install required packages

aptitude install libgpg-error-dev libupnp-dev libssl-dev libgnome-keyring-dev libxss-dev subversion gnupg-agent libupnp3 libqt4-dev g++ libgpgme11-dev
aptitude install g++ libgnome-keyring-dev libqt4-dev libxss-dev libssl-dev libupnp-dev subversion libbz2-dev libprotobuf-dev protobuf-compiler cmake

get latest SVN

svn co svn://svn.code.sf.net/p/retroshare/code/trunk retroshare

Compile/Make RetroShare

cd libbitdht/src && qmake && make clean && make -j2 && cd ../../
cd openpgpsdk/src && qmake && make clean && make -j2 && cd ../../
cd libretroshare/src && qmake && make clean && make -j2 && cd ../../
cd retroshare-gui/src && qmake && make clean && make -j2

Source
http://retroshare.sourceforge.net/wiki/index.php/UnixCompile