Building
From GnuCash
Get the latest sources from Subversion and examine the README.svn file for notes on compiling gnucash, and the HACKING file for notes on hacking the code.
Debian
On Debian, the packages you'll probably need are (among many others):
libofx-dev