I would like to have multiple version of Qt installed on my Mac OS X (Mountain Lion) build server, as I need to build different applications against different versions of Qt. If I run a Qt installer, it seems to just overwrite whatever version was there before, with no option (that I can find) to install it anywhere else.
It is trivial to have multiple versions installed on other platforms (such as Windows and Linux), you can specify the path to which the Qt version will install.
Is there any way to achieve this on Mac OS X? Multiple installs of Mac OS X on the same machine is not a viable option for me (and Apple don't let you run virtual machines).
You can build any Version of Qt on your own. This requires a compiler and a lots of time and cpu.. Have a look at the documentation. You then just have to put every version in another folder. To use another version just change the path in your environment settings.
P.S. It is recommended to exclude things like examples, demos etc. This will reduce the build process to a minimum.