You can try cross-compiling with cmake if the traditional approach doesn't work for you. Yesterday I tried mingw on Linux and it worked fine (apart from a bug related to mingw's binutils that appears late on the build process). http://www.llvm.org/docs/CMake.html -- Óscar