How do I build Nautilus 3.70/3.80 from source?

I have resolved this problem by installing a package using apt-get.

sudo apt-get install libtracker-sparql-0.16-dev.

If this gives a further set of errors as in Is there any way to Install Latest Nautilus File Manager in Ubuntu 12.04 LTS, Then add the repository mentioned there and it solved the problem for me.