BEST idea for getting all needed dependencies is to use command that will install development dependencies for given package. Oh howto there should be so example for it.
If you do not know how, than you can still try to find source package for mesa, and read dependencies and install them manually. (Did so on fedora!)
For ubuntu it should be:
sudo apt-get build-dep <package>
Change <package> for EVERY package starting with mesa in your system.
Last edited by przemoli; 03-03-2013 at 04:08 AM.