There are several ways to build an application that uses RetroShare.
Usefull Tools for the Development
Check the generic compile HOWTO.
To build RetroShare, you first need to get the Source Code.