Check the wiki for articles on cross compiling (as that is the term for what you are asking). The forum also has a lot of posts on this.
It's often easier to have a virtual machine with linux on it, and compile there, because you'll have to test the software anyway...