I want to have the Qt version we are building against under source control and would like to have a side by side build of both 32 and 64 bit Qt from the same source folder in order to save space in source control.
Setting up the library paths is easy, I just have QMAKE_LIBDIR_QT=$$PWD/Shared/Qt/$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}/lib/$${ARCH}
in my qmake file and a similar declaration for QMAKE_LIBDIR
.
However dividing the bin/
folder is less easy. When using qmake from a .../bin/x64
folder it detects QT_HOST_BIN
and QT_INSTALL_BINS
as .../bin/
and when I build it tries to run uic and other tools from this folder and fails.
The documentation states that these variables can be set by running qmake -set QT_HOST_BIN path
but this appears to be a system wide setting, which is undesirable and doesn't work anyway, neither does setting them as environment variables.
At this point I am inclined to give up and go for two separate Qt installations for 32 and 64 bit. Especially since I haven't even started to look at how to deal with the plugins
folder yet. It seems as if Qt just doesn't even begin to consider a multi-arch build setup.