Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Questions about building 32 bit and 64 bit version of QT.
cshong last edited by
Platform: Windows and Linux
QT version: 4.8.3
Compiler to be used on Windows: Microsoft Visual Studio 2012 on Windows (Using command prompt)
I would like to compile both 32 bit and 64 bit version on Windows and Linux.
Assume that I build 32 bit version first, and then followed by 64 bit version. If I build both in the same directory, will the files of 32 bit version being replaced (overwritten) by files of 64 bit version? On linux, even if I use different directories for building, when installing, will the 64 bit files being installed in the same directory as 32 bit files and replace (overwrite) the 32 bit files?
I may have more questions to ask in the future.
I hate saying this, but the framework is Qt, not QT (which stands for Quick Time).
I quite frankly don't know whether libs will be overwritten (but it seems likely), since I usually don't go into multiarch compilation.
What I do know, though, is that you can prevent the problem from happening by doing in-source builds. This way Qt is not being installled globally, but only locally. Here is how to do it (using Unix shell syntax. With minor adjustments it also works on Windows):
./configure -prefix $PWD // plus all other configure switches you need
make -j5 // number of cores + 1
And that is it. Do NOT run "make install" afterwards - Qt will be, as I've mentioned, installed locally, with libraries in lib/, includes in include/, and binaries and tools in bin/.