[Interest] Issue building Qt from source
Sean Murphy
Sean.M.Murphy at us.kbr.com
Tue Oct 25 14:59:54 CEST 2022
Yesterday I built Qt 6.3.2 from source (using qt-everywhere-src-6.3.2.zip) on Windows and had a couple snags.
I'm not trying to customize anything, so first attempt I just did:
configure.bat
cmake --build . --parallel
cmake --install .
All of those completed without errors, but when I compiled my first application, it built fine in debug mode, but couldn't link in release mode. I looked in C:\Qt\6.3.2\bin and sure enough, only debug versions of the Qt DLLs were present. I dug around in my Qt build directory and could only find debug versions of the DLLs there too.
So I cleaned out my build directory and modified my configure line to include "-debug-and-release" like so:
configure.bat -debug-and-release
cmake --build . --parallel
Once again it built fine. I checked my Qt build directory (under qtbase for example) and verified that indeed both the debug and release versions of the DLLs were built. Then I executed the install command
cmake --install .
This time, only the release versions of the DLLs were copied up into C:\Qt\6.3.2\bin, the debug versions didn't get copied over. I manually copied them over, and then I was able to build my application in either release or debug builds.
Did I miss something in the installation instructions? Or is this a bug in the build script?
Sean
This e-mail, including any attached files, may contain confidential information, privileged information and/or trade secrets for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
More information about the Interest
mailing list